Jinjing 6b18a1ce28 fix: centralize updater restart deferral in main process (#313)
* fix: defer updater quitAndInstall to allow React/UI state to settle

PR #299 introduced a regression where the one-click auto-update flow
would synchronously invoke `quitAndInstall` immediately upon receiving
the `downloaded` state transition. This triggered a synthetic `beforeunload`
event (to capture terminal buffers) and an IPC call to quit in the exact
same event loop tick that React and the Toast library were processing
state updates. This disrupted the renderer's synchronous shutdown and flush
logic, causing the app to fail to quit and install properly.

This adds a `setTimeout` to defer `quitAndInstall`, pushing it to the
bottom of the event queue. This allows the UI state to settle and ensures
the `beforeunload` flush sequence executes cleanly.
Test cases have also been updated to use fake timers.

* fix: centralize updater restart deferral in main process
2026-04-05 13:34:25 -07:00
2026-03-16 20:29:24 -07:00
2026-03-16 22:27:51 -07:00
2026-03-19 00:36:36 -07:00
2026-03-28 10:19:14 -07:00
2026-04-05 11:55:08 -07:00
2026-04-04 00:36:15 -07:00
2026-03-16 22:27:51 -07:00
2026-03-17 01:40:24 -07:00
2026-03-17 01:40:24 -07:00

Orca

Orca

GitHub stars Supported Platforms Follow on X

The cross-platform AI Orchestrator for 100x builders.
Available for macOS, Windows, and Linux.
Seamlessly manage multiple worktrees, run multiple AI agents concurrently, and track their progress.
Whether it's Claude Code, Codex, or OpenCode, Orca makes coordinating multiple features across multiple repos effortless.

Download at onOrca.dev

Orca Screenshot

Introducing the Orca CLI

Agent orchestration from your terminal.

Let your AI agent control your IDE. Use AI to add repos to your IDE, spin up worktrees, and update status directly from the terminal. Ships with the Orca IDE (install under Settings).

npx skills add https://github.com/stablyai/orca --skill orca-cli

Features that Supercharge your Workflow

  • Worktree Management: Spin up, manage, and switch between multiple Git worktrees instantly. Keep your context clean.
  • Agent-Ready Terminals: Robust support for multiple terminals, tabs, and panes. Run Claude Code, Codex, OpenCode, or your own agents side-by-side.
  • Smart Notifications & Status Tracking: See exactly which worktrees have active agents. Get worktree notifications and manually mark threads as unread (like Gmail ).
  • Deep GitHub Integration: Automatically track PRs, link GitHub issues (via the gh CLI), and view GitHub Actions checks right from your workspace.
  • Integrated Dev Tools: Built-in file editor, lightning-fast search, and a comprehensive source control tab to review diffs, make quick edits, and commit effortlessly.
  • CLI to Control the IDE: Give your agent first-class control over Orca from the terminal.

Install

Get started today:


Community & Support

  • Twitter / X: Follow @orca_build for updates and announcements.
  • Feedback & Ideas: We ship fast. Missing something? Request a new feature.
  • Show Support: Star this repo to follow along with our daily ships.

Developing

Want to contribute or run locally? See our CONTRIBUTING.md guide.

S
Description
Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
Readme MIT
1.4 GiB
Languages
TypeScript 95.2%
JavaScript 4.1%
Swift 0.2%
CSS 0.1%
HCL 0.1%