Skip to content

Desktop Client: graceful shutdown during active Editor Session #116

Description

@messiwu

Parent

#112 — PRD: macOS Desktop Client (Electron, Intel x64 v1)

What to build

Extend Desktop Client lifecycle so quitting during an active Editor Session (SSE stream in progress, Coding Agent child running) aborts cleanly: in-flight conversion is cancelled, agent child processes are not left running, and the embedded server still shuts down.

End-to-end outcome: start generation → quit app mid-stream → no orphan agent CLI processes; relaunching works normally.

Acceptance criteria

  • Quit (menu, ⌘Q, or documented window-close behavior) aborts in-flight /api/convert SSE streams
  • No surviving Coding Agent child processes after quit during active generation (manual verification with at least one real agent CLI)
  • Embedded Node server still terminates on quit
  • Relaunch after abort shows a healthy editor; no port-bind failures from leaked processes
  • Automated test where feasible (supervisor shutdown while mock long-running child is active)

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions