anomalyco / anomalyco/opencode
Desktop: stale followup.paused marker persists after interrupting a turn with a new message
@Hona is already working on this.
Since Aug 4, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Describe the bug
On the desktop client (v1.18.11), if a running turn is interrupted because the user submits a new message (the client doesn't queue, it interrupts the old task), the old task lingers in the UI forever — it never updates to the new state. The followup.paused marker for the session is never cleared.
To reproduce
- Start a long-running task in a session (e.g. ask the agent to do something that takes a while).
- While it is still executing, submit a new message (which interrupts the current turn).
- The old task remains visible/stuck in the UI ("paused" state), never replaced by the new turn's state.
Expected behavior
Submitting a new message should clear the stale paused marker, just like sending a followup draft does.
Analysis (from inspecting the v1.18.11 renderer bundle)
- Interrupting sets the marker:
onAbort → setFollowup("paused", sessionID, true). - The marker is only cleared in two paths:
- manually resuming a followup item (
setFollowup("paused", sessionID, undefined)whenmanual), - sending a followup draft (
sendFollowupDraftclearsfailedandpaused).
- manually resuming a followup item (
- The normal prompt submission path (
api.prompt) does not clearfollowup.paused, so after an interrupt followed by a new message the session stays markedpausedforever.
Persisted evidence: the workspace state file (opencode.workspace.*.dat) contains "workspace:followup": "{\"items\":{},\"failed\":{},\"paused\":{\"ses_...\":true},\"edit\":{}}" — the paused flag survives client restarts.
Suggested fix
In the prompt submit handler (the same place sendFollowupDraft clears the flags), also clear the paused marker:
setFollowup("paused", sessionID, undefined) before/alongside api.prompt(...).
Environment
- Desktop client v1.18.11 (Windows 11)
- Server: bundled sidecar
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.