Files
DeepTutor/deeptutor/learning
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-09-06 13:46:29 +08:00
2026-11-06 01:56:40 +08:00
2026-06-11 20:03:34 +08:00
2026-09-03 01:38:54 +08:00
2026-09-03 01:38:54 +08:00
2026-09-21 02:30:40 +08:00