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
claude-code: user message sent after stopping a thread with backgrounded work is dropped #1718
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-claude-codeBuilt-in plugin: provider-claude-codeprovidersCross-provider bridges, models, login
After stopping a claude-code thread that had backgrounded work, the next user message can be dropped: it produces an empty turn, and a later unsolicited turn answers the previous question instead.
Evidence (once-reproduced during #1640 QA, thread thr_e2crghhnis):
The thread had backgrounded a shell command; bb thread stop was issued.
The message sent after the stop produced an empty turn — turn/started → input/accepted → turn/completed, 0 tokens, no items.
Then an unsolicited turn arrived that answered the previous question, not the new message.
claude-code bridge in plugins/provider-claude-code/src/bridge/ (stop/interrupt handling and session resume after stop), and how a stop with in-flight background tasks interacts with the next turn/start.
Surfaced during #1640 final validation; believed pre-existing but not yet verified against pre-#1640 main (see step 1).
Root cause (short): On resume after a process died with a background shell task alive, Claude Code CLI 2.1.234 emits a zero-work result (num_turns 0, origin.kind=task-notification) before processing the new prompt, and bb's claude-code translator (resolveProviderTerminalTurn, added by Settle provider prompts that complete without starting a turn #1432) settles the pending user message on it, producing an empty turn and pushing the real answer into an unsolicited turn.
Proposed fix: In plugins/provider-claude-code/src/event-translation.ts case "result", do not call resolveProviderTerminalTurn (which opens a turn for pending accepted user input) when the SDK result carries origin.kind === "task-notification"; use state.currentTurnId only (so a live-session notification loop that already opened a turn still completes). Add origin to claudeResultMessageSchema in schemas.ts. Diff at /tmp/bb-reports/issues/1718/repro/1718-proposed-fix.diff; verified with the two new repro tests, the full plugin suite (263 pass) + typecheck, and an end-to-end rerun where the user's turn cor…
The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at 16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-claude-codeBuilt-in plugin: provider-claude-codeprovidersCross-provider bridges, models, login
Activity
SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1718.html
result(num_turns 0, origin.kind=task-notification) before processing the new prompt, and bb's claude-code translator (resolveProviderTerminalTurn, added by Settle provider prompts that complete without starting a turn #1432) settles the pending user message on it, producing an empty turn and pushing the real answer into an unsolicited turn.case "result", do not call resolveProviderTerminalTurn (which opens a turn for pending accepted user input) when the SDK result carries origin.kind === "task-notification"; use state.currentTurnId only (so a live-session notification loop that already opened a turn still completes). Addoriginto claudeResultMessageSchema in schemas.ts. Diff at /tmp/bb-reports/issues/1718/repro/1718-proposed-fix.diff; verified with the two new repro tests, the full plugin suite (263 pass) + typecheck, and an end-to-end rerun where the user's turn cor…if (state.currentTurnId)), not re-run. The date the CLI s…The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at
16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).Fix Claude resumed-input turn correlation (#2013)
Fix Claude resumed-input turn correlation (#2013)