Skip to content

Agent Host steering starts a new turn instead of steering the active turn #336305

Open

Agent suggestions

Public preview

Description

  • Copilot Chat Extension Version: Built-in Agent Host
  • VS Code Version: Code - Insiders
  • OS Version: macOS
  • 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:

  1. Start an agent turn in the Agents Window.
  2. 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.

Activity

  1. romanrokon commented on Sep 28, 2026

    @romanrokon

    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:

    1. The user sends task A. The model starts it and runs a shell command.
    2. While that command runs, the user steers with an unrelated question B. The transcript records a queue-operation enqueue.
    3. When the tool result comes back, B is dequeued and written as a normal user message with "promptSource": "sdk" and plain text content.
    4. 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.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions