Skip to content

Claude: reply to a mid-text steer is dropped (CLI answers it as a second turn after the first result) #1608

Closed

Description

@currentbits

Found by the replay harness (#1428), from a real claude 2.1.283 recording.

Repro

  1. Start a Claude run that streams plain text with no tool calls (e.g. "Do not use any tools. Write the numbers 1 to 200 as words…").
  2. While it's streaming, steer it (steerRun): "Change of plan: stop and reply with exactly: steered".

What happens

  • The CLI does not fold the steer into the current turn, because there's no tool boundary to inject at. It finishes the first answer and emits result (with queued_turn_count: 0). Then it emits a second system/init and a full turn whose result is "steered".
  • Solenta ends the run on the first result. The steer row is stored (steer: true), but the reply to it never reaches the thread. Its cost isn't counted either. The user sees their steer go unanswered.

Evidence

  • Fixture: electron/test/fixtures/replay/claude-2.1.283-steer.ndjson (the second init and "steered" result are at the end).
  • electron/test/replay-scenarios.test.js › "keeps the reply to a steer that the CLI answers as its own turn" is marked todo. Remove the todo once this is fixed.

Fix direction (unverified)

Keep the run open after a result while a steer that was sent during the run hasn't been answered yet. Steers consumed at a tool boundary produce no extra result, so counting results alone is unreliable. Check --replay-user-messages and the msg_lifecycle_v1 capability for a consumption signal, and record a tool-using steer with electron/test/support/recordCli.js before choosing.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Oct 12, 2026
  2. currentbits commented on Oct 13, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Claude: reply to a mid-text steer is dropped (CLI answers it" (PR #1614). Closed on merge.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions