Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Error resuming chat after a long background Shell finishes. Toast: “A background task finished, but the chat couldn’t resume. Try again in a moment.” The Shell/watch itself succeeds (exit 0); only parent-chat reattach fails. Started happening frequently once we use long CI watches (~15–20 min) with notify_on_output.
Steps to Reproduce
- In Agent chat, start a long background Shell (block_until_ms: 0) that runs 10–20+ minutes (e.g. gh pr checks --watch / CI babysit watch).
- Arm notify_on_output so Cursor wakes when the Shell prints a completion sentinel.
- Leave the chat idle while it runs.
- When the Shell finishes, Cursor shows “Error resuming chat” instead of continuing the agent turn.
- Clicking Resume or sending a new message works; work was not lost.
Expected Behavior
When the background Shell completes, the parent Agent chat should resume automatically on the wake notification and continue the turn (same as short background jobs).
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Cursor IDE 3.12.17 (arm64)
For AI issues: which model did you use?
Grok 4.5 (parent Agent session). Background work was Shell (CI watch), not a model subagent.
For AI issues: add Request ID with privacy disabled
57b6008d-8c6b-4cce-86ac-59caf380ce4c
Additional Information
Not a project/CI failure — GitHub checks and the watch complete correctly. Correlates with heavy use of long background Shell + notify wakes for merge-queue babysitting. Related to other “Failed to resume after background task completed” reports; our toast is the generic reattach failure (no “model name is not valid” message).
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
