You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): pausing human-input turn with no content text triggers a spurious model-fallback banner #2767
When an assistant turn emits a request_human_input tool call without any content text (reasoning + tool call only — a shape real models produce), the run pauses correctly and the approval card renders, but the fallback layer judges the generation empty/failed: it records a provider failure and injects a " was unavailable — switched to " system line into the chat. The resume then runs on the switched model.
Current behaviour (repro on the hermetic mock stack)
Boot the Mode-A docs stack (mock gateway :4141, app :3000).
In chat, send a prompt whose mocked turn streams reasoning_content deltas followed by a request_human_input tool call and finish_reason: tool_calls, with nocontent deltas (the e2e e2e:humaninput scenario has this exact shape).
Approve the card.
The thread shows the approval card plus an amber MODEL_FALLBACK line (e.g. "claude-sonnet-4.6 was unavailable — switched to claude-haiku-4.5"), and the circuit breaker records a failure for a model that answered fine. The gateway log shows the tool-call request served with HTTP 200 — no provider error occurred.
With the same tool call preceded by a single content sentence, no banner appears — that is the workaround the docs video mocks now use (DocsReply.toolIntro, services/platform/lib/mocks/overrides/docs-replies.ts).
Proposed change
Treat a turn that ends in an executed pausing tool call (request_human_input) as a successful generation regardless of whether it produced content text — neither record a breaker failure nor emit the MODEL_FALLBACK system line (convex/lib/agent_chat/internal_actions.ts).
Acceptance criteria
A reasoning+tool-call-only request_human_input turn pauses without a fallback banner and without a recorded provider failure.
The resume after approval keeps the originally routed model.
Regression coverage for the no-content pausing turn.
Closing as obsolete. The fallback emitter left with convex/lib/agent_chat/internal_actions.ts in #2857, and c9c11d3 (#3260) removed the last MODEL_FALLBACK vocabulary. The 0.5 turn pipeline has no routing, tiering or failover (services/platform/lib/chat/turn.ts), so a pausing turn cannot raise a fallback banner.
Activity
yannickmonney commentedon Sep 27, 2026
Closing as obsolete. The fallback emitter left with
convex/lib/agent_chat/internal_actions.tsin #2857, and c9c11d3 (#3260) removed the lastMODEL_FALLBACKvocabulary. The 0.5 turn pipeline has no routing, tiering or failover (services/platform/lib/chat/turn.ts), so a pausing turn cannot raise a fallback banner.