Skip to content

claude-code: user message sent after stopping a thread with backgrounded work is dropped #1718

Description

@ymichael

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/startedinput/acceptedturn/completed, 0 tokens, no items.
  • Then an unsolicited turn arrived that answered the previous question, not the new message.

Status/triage:

Where to look:

  • 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).

AGENT GENERATED: by Claude Fable 5

Metadata

Metadata

Assignees

Labels

confirmed-reproBug reproduced independently; see linked reportprovider-claude-codeBuilt-in plugin: provider-claude-codeprovidersCross-provider bridges, models, login

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions