Skip to content

Keep agent runs alive when the workspace closes and make notices selectable - #15

Merged
sionic-khope merged 1 commit into
mainfrom
fix/selectable-notices-and-background-runs
Jul 21, 2026
Merged

Keep agent runs alive when the workspace closes and make notices selectable#15
sionic-khope merged 1 commit into
mainfrom
fix/selectable-notices-and-background-runs

Conversation

@sionic-khope

Copy link
Copy Markdown
Contributor

Summary

  • Closing the workspace (clicking Miku) no longer cancels in-flight agent runs — runs keep streaming into their resident models in the background, and the transcript is waiting when the workspace reopens. Previously store.stop() cancelled every run, surfacing "The agent run was stopped" errors mid-task.
  • Cancellation moves to the new terminate() app-quit path, which still prevents orphaned full-access subprocesses; thread deletion still cancels its run.
  • Error notices (e.g. codex CLI version-mismatch diagnostics) and prompt text are now selectable/copyable like assistant messages.

Test plan

  • swift build -Xswiftc -warnings-as-errors clean
  • swift test -Xswiftc -warnings-as-errors: 207/207 (new: workspace-close keeps runs alive; app termination cancels runs)

🤖 Generated with Claude Code

https://claude.ai/code/session_015peMZyaHEmxDzyzNyhYeR5

…ctable

Clicking Miku to close the workspace was cancelling in-flight agent runs
(store.stop() cancelled every session's run), surfacing "The agent run was
stopped" errors mid-task. Closing now only stops the shells; runs keep
streaming into their resident models and the transcript is waiting when
the workspace reopens. Cancellation moves to terminate(), the app-quit
path, where it still prevents orphaned subprocesses (thread deletion is
unchanged).

Error notices carry CLI diagnostics the user needs to copy out (e.g.
codex version-mismatch errors), so notice and prompt text are now
selectable like assistant messages.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015peMZyaHEmxDzyzNyhYeR5
@sionic-khope
sionic-khope merged commit 76bc7ce into main Jul 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant