Skip to content

Sequential Copilot Agent Host steering stays pending after the first message is consumed #345884

Closed

Description

Environment

  • VS Code: source checkout at 80b58799654016b1c83e1eb2c14b517a3932b7fb (current main at investigation time)
  • Feature: Copilot Agent Host steering
  • Automated reproduction: fake SDK provider test on Linux; live SDK and UI were not independently verified
  • Model: not applicable to the automated reproduction

Steps to reproduce

  1. Start a long-running Copilot agent task.
  2. Send a steering message and wait until it is consumed while the agent continues working.
  3. Send another steering message before the execution finishes.

Expected: Each sequential steering message is delivered immediately during the ongoing execution.

Actual: The first message is consumed, but subsequent steering can remain pending until execution finishes.

Investigation

A provider test that emits the first SDK user.message and continues with an assistant delta reproduces the failure: the first steering message is admitted, but the second and third are rejected before reaching the SDK. _beginSteeringTurn marks the promoted CopilotTurn running, but its sdkSendInvoked remains false, so hasRunningTurn rejects subsequent steering. This was also identified in the review of #340432.

This is distinct from the session-recreation scenario in #334023 and the multiple simultaneously pending messages addressed by #340669. The readiness guard predates #340669; causation by that PR has not been established.

Activity

  1. vincasrazmabentley commented on Nov 4, 2026

    @vincasrazmabentley

    I have the exact same issue, and it really breaks orchestration agent setup - while the main agent is waiting for sub-agents to finish, it only processes the first message, and the second gets stuck until the sub-agent finishes. So, the orchestrator becomes impossible to steer while sub-agents are working. I started noticing this in last month or so.

    This looks like the hasRunningTurn rejection described above. A live sub-agent seems to keep it set.

    A test prompt via Copilot chat:


    Live-UI repro (Agent Host, Copilot, VS Code on macOS): a running background sub-agent triggers it too.

    Steps

    1. Ask the main agent to start a background sub-agent that runs about 30s (sleep 30), then end its turn ("waiting for the sub-agent").
    2. While it runs, send "test 1". It is answered.
    3. Send "test 2" before the sub-agent finishes.

    Expected: both messages are answered.

    Actual:

    • "test 1" is answered. "test 2" stays under "Steering" with "1 subagent running" and is never answered.
    • The queue stays stuck after the sub-agent finishes. The sub-agent shows as "idle" and the indicator doesn't clear.
    • The model does receive the queued messages later, so only the UI and delivery state is stuck.

    Tested on empty workspace. Result:

    Image

    Version: 1.145.0 (Universal)
    Commit: a717861
    Date: 2026-11-03T15:03:51-08:00
    Electron: 43.8.3
    ElectronBuildId: 15784459
    Chromium: 150.0.7871.250
    Node.js: 24.22.1
    V8: 15.0.245.31-electron.0
    @github/copilot: 1.0.103.r41379698026.g3219c66
    @github/copilot-sdk: 1.0.27.41379698026.g3219c66
    OS: Darwin arm64 27.0.0

  2. added
    bug
    on Nov 6, 2026
  3. added
    unreleased
    on Nov 6, 2026
  4. added this to the 1.146.0 milestone on Nov 6, 2026
  5. added
    insiders-released
    and removed
    unreleased
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions