Skip to content

bug(platform): pausing human-input turn with no content text triggers a spurious model-fallback banner #2767

Closed as not planned

Description

@yannickmonney

Problem

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)

  1. Boot the Mode-A docs stack (mock gateway :4141, app :3000).
  2. 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 no content deltas (the e2e e2e:humaninput scenario has this exact shape).
  3. 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.

Activity

  1. added
    priority: medium
    bug
    service: platform
    on Jul 17, 2026
  2. yannickmonney commented on Sep 27, 2026

    @yannickmonney
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions