Repository navigation
Description
Summary
On an ACP provider, a system notice (a child thread finishing, a wait resuming) that reaches a thread while its agent is running a command cancels that command. Claude Code then reports a user rejection and stops, though nobody rejected anything. Separately, with diagnostic events hidden, ordinary ACP provider/unhandled events are still stored, though nothing shows them.
Versions and environment
- bb 0.46.0, installed from npm (
bb-app). The code is the same in 0.46.1. - Ubuntu 24.04.5 LTS, Node v22.23.3.
- Claude Code 2.1.296 through a custom ACP provider plugin.
- Self-hosted server on a remote Linux machine, used through bb Connect.
Steps to reproduce
- In an ACP thread, have the agent run
timeout 30 tail -f /dev/null. - While it runs, let one of that thread's child threads finish, so bb sends it a system notice.
- Watch the tool call and the agent's next message.
Expected vs actual
Expected: the notice waits for the current turn to end, and the command finishes. A human steer can still interrupt.
Actual: the command is cancelled and the agent receives:
Tool permission request failed: Error: Tool use aborted
The user doesn't want to proceed with this tool use. The tool use was rejected ... STOP what you are doing and wait for the user to tell you how to proceed.
The agent then stops and waits for a user who never stepped in.
Evidence
- A notice for a thread with an active turn is queued with mode
"auto"(parent-system-messages.ts#L223-L251, #L311). The ACP bridge handles it asturn/steer, which callsrequestSteerCanceland sendssession/cancel(bridge.ts#L2935-L2955, #L2107-L2118). - Reproduced on 0.46.0 in thread
thr_eppka8ynn9, with an explicit steer standing in for the notice. In a long-running coordinating thread, real child-completion notices caused the same false stop repeatedly over one night. - In that thread, 1,134 of its 54,353 stored events were hidden
provider/unhandledrows. - Tested against
075826d6;parent-system-messages.tsis unchanged onmainsince.
What you ruled out
- Not a duplicate of Steering interrupts and cancels the previous request instead of add as a follow up #3151. There, a human steer cancels the request; here nobody steers, and the notice takes the steer path by itself. A bridge-level fix for Steering interrupts and cancels the previous request instead of add as a follow up #3151 might cover this too; the fix proposed here is in the server and leaves human steers unchanged.
- Not specific to the command:
tail -fonly holds the turn open.
Suggested priority and effort (optional)
Affects any ACP agent that is busy when one of its child threads finishes. The running command is lost and the stop is blamed on the user. Workaround: tell agents to rerun the command. Fix proposed in #5618.
Investigated, implemented and verified end to end by Timi's coding agents: gpt-6.1-sol at high reasoning level, coordinated by Claude Opus 5.5 at max thinking level.
AGENT GENERATED
Activity
bb-slop-cop commentedon Oct 16, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,threads,provider-acp,partial-repro.session/cancelwithout human rejection. Separately, diagnostic visibility filters the timeline, not persistence.01affc197. The exact Claude Code rejection text and real command termination remain unverified.k0d3r1s commentedon Nov 10, 2026
A complementary mitigation, separate from queueing the notice: make the notice text say who sent it.
The child-outcome and needs-attention notices are only
[bb system]plus the update:packages/templates/src/templates/system-message-child-thread-outcome-batch.mdpackages/templates/src/templates/system-message-child-thread-needs-attention.mdWhen one of them cuts off a tool call, the agent reads the cancelled call as a user rejection and stops. A short paragraph at the end of both templates tells the agent it was not a stop request:
This only changes how the agent reads the notice. It does not remove the cancellation, and model behavior is not guaranteed. Queueing the notice until the turn ends is still the right fix for the cancelled command.