Skip to content

fix: recover desktop actions after daemon shutdown#2253

Open
ChiragArora31 wants to merge 1 commit into
AgentWrapper:mainfrom
ChiragArora31:fix-desktop-daemon-recovery
Open

fix: recover desktop actions after daemon shutdown#2253
ChiragArora31 wants to merge 1 commit into
AgentWrapper:mainfrom
ChiragArora31:fix-desktop-daemon-recovery

Conversation

@ChiragArora31

Copy link
Copy Markdown
Contributor

Summary

Fixes #2242.

The desktop UI could stay open after its Electron-managed daemon had stopped. In that state, project actions like creating a task or spawning an orchestrator still looked available, but they could only fail after the user clicked them.

This change makes that stopped-daemon state explicit in the UI and gives users a direct recovery path.

What changed

  • Disable task creation and orchestrator launch actions while the daemon is not ready.
  • Add a Restart daemon action that uses the existing Electron daemon IPC path.
  • Show spawn and restart failures inline instead of letting the action fail silently.
  • Keep the board integration test wired through the same shell daemon-status context used by the app.

Verification

  • npm --prefix frontend run test -- --run src/renderer/components/SessionsBoard.test.tsx src/renderer/__tests__/integration/pr-hydration.test.tsx src/renderer/components/ShellTopbar.test.tsx
  • npm --prefix frontend run typecheck

@ChiragArora31 ChiragArora31 changed the title Fix desktop actions after daemon shutdown fix: recover desktop actions after daemon shutdown Jun 28, 2026
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.

Electron keeps stale project actions enabled after daemon exit and silently fails with AO daemon is not ready

1 participant