Repository navigation
Description
Summary
Sending a message to an acp-omp thread at the wrong instant — steering into the final second of a turn, or sending while omp is still finishing internal (non-ACP) work — makes omp reject session/prompt with its typed session_busy error. The provider-acp bridge has no path for that typed rejection, so the turn fails, and every re-send fails the same way until bb's client-side request timeout (~8 min) expires. Mid-flight steers that land before the completion instant work fine; only the completion-instant / post-completion window rejects.
Versions and environment
- bb 0.41.1-nightly.33639578859.1 (desktop app, macOS arm64, arm64 host).
mainat debb58d is equally affected:git grep session_busy -- packages/provider-bridge-acpreturns nothing. - Provider
acp-omp: omp 18.1.6 (Homebrew). Earlier storms observed on 17.4.x/18.0.x (before the error was typed). - Codex threads are unaffected (38 audited, zero failures of this shape).
Steps to reproduce
Timing-dependent in production (a completion-instant race) — hit 11+ times across 3 threads over 3 days of normal use. The wire-level failure is deterministic and covered by unit tests in the fixing PR, whose fake ACP agent emits omp's exact rejection shape:
- Connect bb to
omp acpand start a turn long enough to steer into (30–60 s). - In the final second of that turn, send a steer:
bb thread tell <thread-id> "...". - Immediately after the turn completes, send another message.
- Intermittently, every send returns the error below, the turn completes
failed, and dispatch re-sends in a tight loop. Observed cadence: rejection at +3 ms afterturn/input/accepted, next turn started +23 ms later; worst storm 8 rejections over 105 s until bb's ~8-minute client timeout.
Expected vs actual
Actual (verbatim, per rejected send):
Agent is already processing. Use steer() or followUp() to queue messages, or wait for completion.: {"reason":"session_busy","hint":"steer|followUp|wait"}
Expected: the send joins the thread queue with waitingOn.kind: "thread-busy" and dispatches once the agent goes idle — bb's documented queue contract for a busy thread — instead of failing the turn and storming retries.
Evidence
- Thread
thr_8er33e2aiv, 2026-08-23 00:22:12 UTC: seq 7316turn/started→ seq 7317provider/error(above) at +3 ms → seq 7318turn/completed status:"failed"; retry turnt18started +23 ms later. Three such bursts in that thread's log (seq 7317, 7321 region through 48133). - Threads
thr_5esghkmr5x(8 rejections 04:04–04:05 UTC over 105 s; a 07:43:49 recurrence is that thread's last event ever — status stuckerror) andthr_4tm7g4ie78(×3, 07:01–07:05). In the 2026-08-20→22 audit of 45 threads, 11 of 14 real provider errors across omp threads carried this exact signature; the diagnosis is Issue 1 of the integration post-mortem produced in threadthr_cz6spq5br5. - omp side (main @
6b367ec7b): the ACP layer only queues/implicit-cancels when an ACP-owned turn is in flight (acp-agent.ts#L821-L840). When the session is busy with no ACP turn — the completion instant, or deferred agent-initiated continuations (provider-acp silently drops agent-initiated turns (unprompted session updates, e.g. OMP async-job delivery) #2122/provider-acp: no consumption path for agent-wake notifications — ACP agents with settled background work can't be resumed (OMP async-job delivery) #2461) — the prompt falls through to a barerecord.session.prompt(text, { images })(acp-agent.ts#L1028) which throwsAgentBusyError, deliberately typed for the wire as-32003/session_busysince omp#9825 (acp-agent.ts#L871-L886). Over ACP the host cannot act on thesteer|followUphint: steering issession/prompt, which is exactly what got rejected. - bb side (main @
debb58d10): the typed error falls into the bridge's generic error path — turn failed, error notification emitted, dispatch retries.
What I ruled out
- Not a duplicate of tell --mode auto injects into busy turn instead of queueing: provider error retry loop, status flips to error while turn continues #2370: that issue is the
tell --mode autosteer-vs-queue decision injecting into a busy turn; this one is the absence of any handling for omp's typedsession_busyrejection. Both produce retry loops, at different layers. - Complementary to provider-acp silently drops agent-initiated turns (unprompted session updates, e.g. OMP async-job delivery) #2122/provider-acp: no consumption path for agent-wake notifications — ACP agents with settled background work can't be resumed (OMP async-job delivery) #2461, not covered by them: those track agent-initiated turn delivery/wake consumption. This is the rejection face of the same busy-without-ACP-turn state and also covers the completion-instant race, which involves no agent wake at all. A bb-side fix is needed regardless of how the omp-side discussion in ACP: async-job auto-delivery turns reach clients unbracketed; allowAgentInitiatedTurns never enabled can1357/oh-my-pi#9157 lands.
- Not fixed by omp upgrades: 18.0.7 (omp#9825) only changed the wire shape from an opaque
-32603"Internal error" to the typed form; 18.1.6 still rejects the prompt; 18.1.7's "Agent is already processing" changelog entry is the internal provider-retry path, not this race. - Steers that land well before completion work; a clean data dir does not help; the failure is provider-specific to
acp-ompsessions.
Suggested priority and effort
High pain when hit (thread wedged in error, messages unsendable for minutes; one thread terminally stuck), moderate frequency for omp users who steer near turn boundaries. Workaround today: bb thread stop then re-send, or wait out the ~8-minute timeout. Fix is contained to the bridge's turn loop.
AGENT GENERATED
Activity
bb-slop-cop commentedon Sep 3, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-acp,confirmed-reprobottlebrushes commentedon Oct 1, 2026
Still reproduces on bb 0.43.4 + omp 18.4.3 (Linux x64). The installed
provider-acp/dist/host.jsstill has nosession_busyhandling. Note that #3004, which the triage bot cited as the reason not to open a new PR, was auto-closed unmerged on 2026-09-18 by the stale-PR rule. Nothing open targets this now.New trigger, not covered in the report: an IRC message from a subagent. This was not an async-job completion, and not a completion-instant race. Sequence (local time, thread event log + omp session transcript):
tasksubagents. The main agent then blocks inwait.session/canceland re-prompts, which aborts thewait("Operation aborted"). The agent answers, andturn/completedarrives at 10:56:16 with the subagents still running.DecodeAccesssends anirc:incomingmessage. omp wakes the main agent with no ACP turn. It writes back to the subagent and enterswaitagain. bb receives zero events (event log jumps from seq 2641 to 2642).session_busy. Each turn isfailedand the thread is left inerror.bb thread stop→ omp gets SIGTERM with thewaitstill pending. The resend then succeeds.Why this matters for the fix: the window was ~97 s after completion. That was ordinary user pacing, not a sub-second race. It is opened by bb's own steer semantics: cancelling the owning prompt leaves subagents alive, and any one of them can wake the agent later. A plain retry would have had to wait until
WallisCollectionfinished, which takes minutes. So the queue-until-idle behaviour in "Expected" (waitingOn.kind: "thread-busy") is what's needed, not a short retry backoff.ComicBit commentedon Oct 5, 2026
Independent recurrence on a separate project/thread
This reproduced in a separate
iw4Lproject with a normal user turn. BB had recorded the preceding turn as completed, then accepted a new turn; ACP-OMP rejected it with the same typedsession_busyerror and BB marked the new turn failed. Stopping the thread and retrying restored the session.Versions and environment
0.45.026.7.1, arm64acp-omp; the thread ran on remote hosthost_fzdx8fkmqu, and its remote OMP version was not capturedproj_xby4suzwdk(iw4L)thr_wmpwvc7yipenv_5t296y4pnnEvidence
Event seq
505: previous provider turndaf98e33f9-t3was recorded asturn/completedwith statuscompleted.Event seq
506: a new user request was submitted.Events seq
507–508: BB started and accepted provider turndaf98e33f9-t4on provider thread01a10ccb-432d-7049-9cf2-5c789c43bb9c.Event seq
509:Event seq
510: BB completeddaf98e33f9-t4with statusfailed.Event seq
511: BB emitted the same message as a provider warning.Manual recovery with
bb thread stop thr_wmpwvc7yipfollowed bybb thread retry thr_wmpwvc7yipsucceeded on retry attempt 2.Events seq
515–518: fresh turnda9ff2b79c-t1started and executed a command successfully.The preceding turn completion and the next request were separated by about 8 minutes, so this is not limited to a sub-second completion-boundary race. It demonstrates that OMP can remain busy after BB records the prior turn completed, including for a normal new user turn.
What this adds
This is an independent recurrence of the issue on another project and provider session. The current workaround is operational only: stop the thread, then retry. Expected behavior is to reconcile or queue/wait on the provider's busy state rather than fail the turn and require manual recovery.
Thread:
thr_wmpwvc7yipAdd an opt-in rebuilt ACP adapter, agent options in the model picker,…
doonto commentedon Oct 24, 2026
After updating BB to 0.47.0 yesterday, I reproduced the same
session_busyfailure with OMP 18.12.6.The failing prompt was not typed by the user. BB's event log shows it as an agent-originated
client/turn/requested(source: tell,initiator: agent): an automatic message from a parent thread to its child. The child turn then surfaced:Agent is already processing. Use steer() or followUp() to queue messages, or wait for completion.: {"reason":"session_busy","hint":"steer|followUp|wait"}The turn was recorded as failed. BB 0.47.0's bundled
provider-acpcontains the-32003/data.reason === "session_busy"handling and quiet-wait retry logic. The thread event log does not expose the bridge's internal retry count, so I cannot tell whether all retries were exhausted or why the session was not considered idle.Could this issue be reopened to investigate why the retry handling still ends in a failed turn when the incoming prompt is an automatic agent-to-agent message? This is a post-fix reproduction of the same ACP/OMP
session_busyfailure, rather than a user manually steering at the end of a turn.