Files
DeepTutor/deeptutor
cookerpapa 8e40d72364 fix(questions): fail a plan with no templates, warn on a short one (#1325)
Rebased onto dev, where c31bed8a now gives a planner that spent its budget
reasoning a second pass at lower effort. "The plan came back empty" is
therefore the state *after* a retry, not the first thing that happens, and
this narrows accordingly.

The two outcomes are not the same outcome. No templates is not a small quiz,
it is no quiz — phase 3 iterates the templates, which is how #1318 shipped a
zero-question result with no error anywhere. Fewer templates than asked is a
smaller quiz, and three real questions beat a failure, so that case keeps the
warning and proceeds. `_parse_plan` already caps the other direction, so
"more than asked" cannot reach here.

Two notices rather than one key doing both jobs: `plan_unusable` for the
failure, `plan_count_mismatch` keeping its "proceeding with what we have".

`test_plan_still_empty_after_the_retry_keeps_the_existing_behaviour` was
written as a placeholder naming this PR, pinning that the retry had not
quietly answered the question. It has an answer now, so it asserts it.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 13:51:30 +08:00
..
2026-08-30 12:10:26 -04:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-04-23 19:29:16 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-04-23 19:29:16 +08:00
2026-09-11 00:24:23 +08:00