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
Steering interrupts and cancels the previous request instead of add as a follow up #3151
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-acpBuilt-in plugin: provider-acpthreadsTurns, timeline, messaging, forks
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.
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 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:
In the bridge's initialize handling, record initializeResult._meta?.steering?.supported === true on the session.
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).
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.
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
Configure omp 18.12.6 as an ACP agent in bb (omp acp).
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."
While the turn waits on the subagents, send: "When you reply FINISHED, add the word BANANA."
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.
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:
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.
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)
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-acpBuilt-in plugin: provider-acpthreadsTurns, timeline, messaging, forks
Activity
bb-slop-cop commentedon Sep 5, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Medium priority · Medium effort
Labels:
threads,provider-acp,confirmed-reproReport: https://get-bb.github.io/reports/issues/3151.html
Verdict: REPRODUCED · root-cause confidence: high
Root cause: the ACP bridge sends
session/cancelfor every active steer, then submits only the steer input as a new prompt. A focused regression test failed identically on trustedmainand 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.
jjanousek commentedon Oct 22, 2026
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 theinitializeresponse as_meta.steering.supported: true:@agentclientprotocol/claude-agent-acp0.94.0 (STEER_METHOD = "_session/steering"indist/acp-agent.js)@agentclientprotocol/codex-acp2.2.2 (SESSION_STEERING_METHODindist/index.js)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 answersinjectedwhen the message joined the running turn. It answerspromptRequiredwhen no turn is running, and then the client sends a normalsession/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 withsession/cancelplus a new prompt:turn/steerpushes the input ontoqueuedInputsand callsrequestSteerCancel: bridge.ts#L3900 and bridge.ts#L2921-L2935initializedeclaressteerMode: "queue": bridge.ts#L3733Proposed change
initializehandling, recordinitializeResult._meta?.steering?.supported === trueon the session.turn/steer, when that flag is set and a prompt request is pending, send_session/steeringwithidleBehavior: "promptRequired".injected, emitinput.acceptedfor the steer'sclientRequestIdand answer the RPC.promptRequired,failedor an error, keep today's path (queuedInputsplussession/cancel).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 acpover stdio the way the bridge does:_session/steeringrequest returnedinjected. The agent followed the steered instruction in the same turn, and thesession/promptended withend_turnafter both subagents finished._session/steeringreturnedpromptRequired, 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.
jjanousek commentedon Oct 22, 2026
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
tasktool 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 sendssession/canceland then a newsession/promptwith 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 declaresteerMode: "inject"and do not have this problem.Steps to reproduce
omp acp).sleep 60and replies DONE, the other runssleep 120and replies DONE. Then wait for both and reply FINISHED."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 acpover stdio with shorter sleeps._session/steeringreturnedinjectedand the turn ended withend_turnafter 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.
AnobleSCM commentedon Nov 5, 2026
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'ssession/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:Sometimes the
: context canceledpart 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 showedProvider 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:
session/updateyet (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.session/promptonly after the cancelledsession/prompthas answered withstopReason: "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.