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
Agent Host steering starts a new turn instead of steering the active turn #336305
Feature: Agents Window steering during an active turn
Selected model: gpt-5.6-sol
Logs: Agent Host debug-log bundle available privately
Steps to Reproduce:
Start an agent turn in the Agents Window.
While the agent is still responding, enter another instruction and submit it as steering.
Expected:
The new instruction steers the active agent turn.
Actual:
The active answer continues, and the steering instruction is handled as a separate follow-up turn, making it appear concatenated with the original answer rather than steering it.
Additional diagnostics:
The debug logs show the chat/pendingMessageSet action was correctly marked as kind: steering, but the SDK recorded the message with delivery: idle and started a separate turn.
This also happens with the Claude harness (VS Code 1.139.1, @anthropic-ai/claude-agent-sdk 0.3.258, macOS 27), and there it drops the original task.
What the session transcript (~/.claude/projects/<project>/<session>.jsonl) shows:
The user sends task A. The model starts it and runs a shell command.
While that command runs, the user steers with an unrelated question B. The transcript records a queue-operationenqueue.
When the tool result comes back, B is dequeued and written as a normal user message with "promptSource": "sdk" and plain text content.
The model reads B as the new request. It answers B, says it will continue with A, and then ends the turn with stop_reason: end_turn. Task A is never resumed, and nothing is left running.
The Claude Code CLI delivers a message typed mid-turn differently: it becomes an attachment of type queued_command, which the model sees as a note inside the current turn. The model then answers it and keeps working on A. Because the agent host sends steering as a plain user message, a steer behaves like a new turn that replaces the task in progress.
A likely fix is to deliver steering to Claude in the same form the CLI uses, instead of as a new user prompt.
Related: #337904 (steering messages are not shown in the conversation). Together the two bugs make this confusing: the steer is invisible, so the answer to B appears to be the reply to A.
Activity
romanrokon commentedon Sep 28, 2026
This also happens with the Claude harness (VS Code 1.139.1,
@anthropic-ai/claude-agent-sdk0.3.258, macOS 27), and there it drops the original task.What the session transcript (
~/.claude/projects/<project>/<session>.jsonl) shows:queue-operationenqueue."promptSource": "sdk"and plaintextcontent.stop_reason: end_turn. Task A is never resumed, and nothing is left running.The Claude Code CLI delivers a message typed mid-turn differently: it becomes an attachment of type
queued_command, which the model sees as a note inside the current turn. The model then answers it and keeps working on A. Because the agent host sends steering as a plain user message, a steer behaves like a new turn that replaces the task in progress.A likely fix is to deliver steering to Claude in the same form the CLI uses, instead of as a new user prompt.
Related: #337904 (steering messages are not shown in the conversation). Together the two bugs make this confusing: the steer is invisible, so the answer to B appears to be the reply to A.