multi_agents: an empty console reply at plan review re-plans without counting toward max_plan_revisions

Author: hesam-shamsCreated Sep 26, 2026Updated Sep 26, 2026

With include_human_feedback on and the plan reviewed in the console (no websocket), pressing Enter at the plan-review prompt returns "".

  • "" is not the "no" approval. is_human_plan_approval("") is False, as tests/test_none_accept_sentinels.py pins, so route_human_feedback sends it to revise.
  • review_plan increments plan_revision_count only for truthy replies (if user_feedback: in multi_agents/agents/human.py), so that lap is never counted.
  • The planner drops empty feedback, so each Enter re-plans with the same prompt, and max_plan_revisions cannot end a run of them.

The web feedback form maps a blank submit to null (HumanFeedback.tsx, "leave blank for 'no'"), which route_human_feedback accepts, so the two paths disagree. I found this reading the code and confirmed it with a unit test that feeds "" to review_plan. I'm opening a PR with a one-line fix that makes the console match the web form, plus a regression test; it notes the alternative (counting the empty lap).

Source: assafelovic/gpt-researcher