Interrupted Bugbot subagent card stuck at Working forever, survives restart

Summary

A Bugbot subagent card in a local agent chat has been stuck at “Working…” for over a day. It survives a full quit/restart and the UI offers no way to dismiss or delete it.

Environment

  • Cursor version: 3.27.22 (commit b1aa50cb6db84fd3e8c808259cb172ea73425c10, build date 2026-10-27)
  • OS: macOS 26.6.2 (build 25G83, Darwin 25.6.0)
  • Network: through a local HTTP proxy (127.0.0.1:7890); direct GitHub connections were timing out at the time

Steps that led to it

  1. In a local agent chat, the agent launched a Bugbot subagent (Task tool, subagent_type “bugbot”, foreground) to review branch changes.
  2. The request was cut off before the subagent returned (most likely network instability; not confirmed).
  3. The agent continued the work by other means; the subagent never reported back.

Expected

The card ends in a failed/cancelled state, or can be dismissed/deleted.

Actual

  • Card shows “Working…” indefinitely (over 24 h so far).
  • Full quit (Cmd+Q) and relaunch did not clear it.
  • No delete/dismiss/archive option on the card.
  • The subagent (id 69150451-bbad-4716-abf7-466577b1e763) has no transcript file of its own; its id only appears inside the parent chat transcript (parent chat id 539e053d-63c5-4322-bc92-5754334624ad). The running state appears to be persisted with the parent chat and never reconciled.
  • No backend work appears to be running; it is a stale UI/state record.
  • Only workaround: delete the whole parent chat, which loses its history.

Suggestion

On load, reconcile subagent cards whose run is no longer alive into a terminal state, and add a dismiss/delete action to subagent cards.

Happy to provide a Request ID or logs if needed.

Hi @lcw!

We fixed some Subagent functionality in the latest release of v3.28. Can you see if you can still reproduce it after upgrading (Cursor · Download)?

Thanks @Colin — upgraded to 3.28.7 and the card is gone. Details, in case they help you confirm the fix:

What I observed after upgrading

  • The stuck card is no longer shown in the chat. The subagent id (69150451-bbad-4716-abf7-466577b1e763) is no longer listed in the parent chat’s subagentComposerIds (118 entries, none match it).
  • It also has no row in composerHeaders any more (no subagent header exists for that id).
  • The only remaining trace is a stale UI-layout key in ItemTable (__$__targetStorageMarker, entry glass/cursor.editorPanelVisibility.agent/69150451-... set to 0). That is harmless leftover state, not a live run.
  • The parent chat itself is intact, so nothing was lost.

One thing that may still be worth hardening
The original report was that the card could not be dismissed while it was stuck. If a run is cut off in a future version, the reconcile-on-load behaviour plus a dismiss action on subagent cards would keep the user from being stuck with an unremovable card. Not blocking for me now — just noting it in case the fix only covers cleanup on upgrade.

Happy to test a specific build if you want a repro attempt on the interrupted-subagent path.