Files
DeepTutor/deeptutor
elvisgraho 55442c3bb5 fix: trim over-long lesson page selections instead of failing
prepare_lesson tells the model to pick at most MAX_LESSON_PAGES pages, but
models regularly return more (a free reasoning model did so in most runs on a
real course). The whole preparation then failed with "Invalid source selection
count: too many distinct physical pages", and the tutor retried it in a loop.

Keep the model's ranked picks within the cap and drop context-only neighbour
pages first. The lesson stays bounded; every kept page is still inspected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:02:47 +01:00
..
2026-11-06 01:56:26 +08:00
…
2026-11-06 02:06:45 +08:00
2026-11-06 01:56:24 +08:00
2026-11-06 16:41:21 +08:00
2026-11-06 16:41:21 +08:00
2026-11-06 16:41:21 +08:00