Skip to content

Steering interrupts and cancels the previous request instead of add as a follow up #3151

Open

Description

@hungv47

Summary

As in the title, happens all the time

Image

Versions and environment

  • bb 0.41.0 (desktop app, mobile app), macOS 26
  • Cursor Grok 4.5 xhigh, latest
  • worktree environment

Steps to reproduce

  • make 2 separate requests, the second one as steer

Expected vs actual

Expected: steered message wired in as a follow up
Actual: Agents only handle steered message

Evidence

No response

What you ruled out

No response

Suggested priority and effort (optional)

No response

Checks

  • I reproduced this on the latest release or on main, or I say above that I could not.
  • I searched open and closed issues for the same problem.
  • If an agent wrote this, the body ends with > AGENT GENERATED and links the thread or report.

Activity

  1. added theissue type on Sep 5, 2026
  2. added
    threads
    provider-acp
    confirmed-repro
    on Sep 5, 2026
  3. bb-slop-cop commented on Sep 5, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Bug · Medium priority · Medium effort
    Labels: threads, provider-acp, confirmed-repro

    Report: https://get-bb.github.io/reports/issues/3151.html
    Verdict: REPRODUCED · root-cause confidence: high
    Root cause: the ACP bridge sends session/cancel for every active steer, then submits only the steer input as a new prompt. A focused regression test failed identically on trusted main and a second clean checkout.

    No pull request was opened: ACP v1 cannot inject into an active prompt, so choosing deferred queueing versus interrupting cancellation requires a product/architecture decision and is not a safe simple fix.

  4. jjanousek commented on Oct 22, 2026

    @jjanousek

    New evidence for this issue. ACP agents now ship a non-cancelling steer, so the provider no longer has to choose between queueing and cancel-and-reprompt.

    The triage note above says ACP v1 cannot inject into an active prompt. That is still true of the core spec, but three ACP agents now implement the same extension request, _session/steering, and advertise it in the initialize response as _meta.steering.supported: true:

    • @agentclientprotocol/claude-agent-acp 0.94.0 (STEER_METHOD = "_session/steering" in dist/acp-agent.js)
    • @agentclientprotocol/codex-acp 2.2.2 (SESSION_STEERING_METHOD in dist/index.js)
    • oh-my-pi (omp) 18.12.6, released 2026-10-21 (packages/coding-agent/src/modes/acp/acp-agent.ts)

    The spec proposal for the same behavior is session/inject, agentclientprotocol/agent-client-protocol#1261 (open).

    The request is { sessionId, prompt: ContentBlock[], _meta: { steering: { idleBehavior: "promptRequired" } } }. The agent answers injected when the message joined the running turn. It answers promptRequired when no turn is running, and then the client sends a normal session/prompt. omp also accepts _meta.steering.queue: "followUp" to queue the message instead of steering.

    bb's ACP bridge on main (9c3c56f) still handles every steer with session/cancel plus a new prompt:

    Proposed change

    1. In the bridge's initialize handling, record initializeResult._meta?.steering?.supported === true on the session.
    2. In turn/steer, when that flag is set and a prompt request is pending, send _session/steering with idleBehavior: "promptRequired".
      • On injected, emit input.accepted for the steer's clientRequestId and answer the RPC.
      • On promptRequired, failed or an error, keep today's path (queuedInputs plus session/cancel).
    3. Optionally declare steerMode: "inject" for sessions whose agent supports it, as the Claude Code, Codex and Pi providers already do.

    What we tested

    We run this as a local patch to the bundled provider-acp (bb 0.46.0; the same code ships in 0.46.1) with omp 18.12.6. We have not run it with the Claude or Codex adapters.

    We drove omp acp over stdio the way the bridge does:

    • Two background subagents were running and the agent was waiting on them. A _session/steering request returned injected. The agent followed the steered instruction in the same turn, and the session/prompt ended with end_turn after both subagents finished.
    • The agent had ended its reply while a subagent was still running. Here _session/steering returned promptRequired, and the fallback cancel plus prompt behaved as it does today.

    This would also take most of the pain out of #2461 for omp users: a message sent while background work runs no longer has to interrupt the agent.

    AGENT GENERATED. Written by an agent working for @jjanousek from a private bb thread; the evidence is quoted above.

  5. jjanousek commented on Oct 22, 2026

    @jjanousek

    A follow-up to my comment above, with the workflow that hits this and steps to reproduce it with omp.

    The workflow

    I run omp (oh-my-pi) 18.12.6 as an ACP agent in bb. A common turn starts several background subagents with omp's task tool and then waits for them, often for many minutes. The turn stays open the whole time. While it runs, I want to add an instruction or correct the agent without losing the work in progress.

    Today a message sent normally waits in the queue until the turn ends, because the bridge declares steerMode: "queue". A steer sends session/cancel and then a new session/prompt with only the steer text, so the turn ends as cancelled and the agent stops waiting on its subagents. The Claude Code, Codex and Pi providers declare steerMode: "inject" and do not have this problem.

    Steps to reproduce

    1. Configure omp 18.12.6 as an ACP agent in bb (omp acp).
    2. Start a thread and send: "Use the task tool to start two background subagents. One runs sleep 60 and replies DONE, the other runs sleep 120 and replies DONE. Then wait for both and reply FINISHED."
    3. While the turn waits on the subagents, send: "When you reply FINISHED, add the word BANANA."
    4. Sent normally, the second message waits until the turn ends. Sent as a steer, the turn ends as cancelled and the steer runs as a new prompt.

    Expected: the steer joins the running turn, the agent keeps waiting on its subagents, and its final reply in the same turn is "FINISHED BANANA".

    We saw both behaviors in step 4 on real bb threads. With the patch described above, we sent the same requests to omp acp over stdio with shorter sleeps. _session/steering returned injected and the turn ended with end_turn after both subagents finished. We have not run the patched bridge through bb's UI.

    Related: #2461 (consuming agent-wake notifications) and can1357/oh-my-pi#9157, its omp side. Steering does not fix those, but a message sent while background work runs would no longer have to interrupt the agent.

    AGENT GENERATED. Written by an agent working for @jjanousek from a private bb thread.

  6. AnobleSCM commented on Nov 5, 2026

    @AnobleSCM

    Another effect of the cancel-and-reprompt steer, with an ACP agent that loads its MCP servers at the start of every turn (Google Antigravity's ACP server, bb 0.48.1 desktop, macOS).

    What happens. A user sends a message, then a second one about a second later. BB steers: it sends session/cancel, then the steer's session/prompt. The cancel lands while the agent is still loading MCP servers for the first turn. The agent then writes a run-failure report to stderr, for example:

    harness stderr: Agent run failed: executor run failed: MCP load failed for <server>: failed to get tools: context canceled
    

    Sometimes the : context canceled part comes on a separate line. Nothing in the report says which turn it belongs to. A wrapper that stops the agent on a genuine run failure (to avoid a hang) cannot tell this cancelled turn from a failure of the steer's turn. Ours stopped the agent, and BB showed Provider error / ACP agent exited (code 70), losing the steer. We now excuse one such report within 10 s of each cancel. That works in live tests, but it is a timing guess.

    Repro. Start a thread on an ACP agent whose turn start takes a second or more (several MCP servers). Send a message, then a steer within about one second. Watch the agent's stderr for a run-failure report after the cancel.

    Asks. Either would remove the guess:

    1. While the active turn has produced no session/update yet (the agent is still starting), queue the steer as a follow-up instead of cancelling. This is the behaviour this issue asks for, applied at least to the startup window.
    2. Or send the steer's session/prompt only after the cancelled session/prompt has answered with stopReason: "cancelled". The ACP prompt-turn spec says the agent must answer the original request that way, and that "once a prompt turn completes, the Client may send another session/prompt". Then any report written before that answer belongs to the cancelled turn.

    If BB already waits for that answer before sending the steer, please say so; then the remaining gap is on the agent side, which we will take to its vendor.

    AGENT GENERATED (Claude Code, from a debugging session on the reporter's machines)

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

    confirmed-reproprovider-acpthreads

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions