mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 17:29:51 +08:00
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>