Jinwoo Hong 6731f08c0b fix(mobile): hold every hybrid shell switch on a neutral state while the flag is unresolved (OTA phase C, ruling 33.7) (#22077)
* feat(mobile): give the hybrid shell switches a third answer for the unresolved flag

Every route switch read the flag as `enabled !== true`, which spends the
window before the read settles on the native screen. With the flag on
that window costs a full native mount — subscriptions opened, screen
painted — that the shell then tears down and replaces.

`shellSwitchDecision` answers `pending` there instead, and
`ShellSwitchPendingScreen` is what a switch paints while it waits: the
base background with nothing on it, lifted out of the `web` route where
this view already was rather than written again.

A route the shell could never open is still answered `native` with no
wait, because the flag cannot change that outcome and a neutral frame in
front of a decided one is the flash this removes.

No switch is wired to it yet.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* fix(mobile): hold every hybrid shell switch on the neutral state while the flag is null

All ten switches read the flag as `enabled !== true`, so the window
before the storage read settles was spent on the native renderer. With
the flag on that window costs a full native mount — the session screen
opens its terminal, chat and tab subscriptions — which the shell then
tears down and replaces, and the user sees the native screen flash
before the page.

Each now asks `useShellSwitchDecision` and paints
`ShellSwitchPendingScreen` while the answer is `pending`, so exactly one
renderer mounts and it mounts once. `tasks` and `agent-history` build
their route before the decision rather than after it, because the
decision needs to know whether the shell is a possible outcome at all.
`web` already had this frame inline and now takes the shared one; its
spinner's accessible name moves from "Checking host" to "Loading".

The two cases that pinned the old behaviour — "renders the native panel
while the flag read is still settling" on the files and agent-history
routes — now assert that neither renderer mounts there.
`shell-switch-null-flag.test.tsx` drives all nine switched routes
through the three states and counts committed mounts rather than
renders. Five route tests gain a `react-native` mock, which the neutral
screen's `View` is the first thing in their graphs to need.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): fence the neutral state across every hybrid shell switch

Reading the flag through the shared decision is not on its own enough.
A tenth switch could ask `useShellSwitchDecision`, ignore `pending` and
fall through to its native screen, satisfying the reader rule and still
flashing native in front of a flag-on user. So the census also says
every switch names the neutral screen — existence, not shape; where it
names it is the route tests' business.

`matchesOf` is the snippet reader beside the three rules: the needles
are identifiers, and a list of paths says which file moved but nothing
about what in it did. Verified as a fence by deleting the `pending`
branch from the tasks switch, which the rule caught and named.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): measure what the neutral window costs a released phone

The only thing this change costs a user with the flag off is the window
itself, so it is worth a number rather than a claim.
`loadMobileWebShellEnabled` answers `false` outside `__DEV__` before it
looks at the key, so a release build reaches AsyncStorage zero times:
the window is React's own passive-effect flush and one microtask, not a
bridge round trip, and the switch has its answer on the first turn after
the first commit. Pinned per switch, because a reader that grew a
storage call would move it from a microtask to a bridge hop.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): type the switch table so the tests-typecheck ratchet reads it

`as const` on the table made the catch-all's `page` a readonly tuple,
which `useLocalSearchParams`' own param type does not admit, and the
file dropped out of `tsconfig.test.json`. An explicit element type says
the same thing and checks.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* fix(mobile): keep release builds out of the neutral state entirely

Review round 1 (pullfrog). The hook started at `null` on every build, so
a store build committed one neutral frame before its native renderer —
the one cost this change landed on every released phone, and it bought
nothing there, because the flag cannot be turned on outside `__DEV__`.

`mobileWebShellFlagCanBeOn` names that build-kind test once, beside the
reader that already made it, and the hook starts its state on the answer.
Outside `__DEV__` the hook holds `false` from its first render, the
`pending` branch is unreachable, and a store build commits native on
frame one. The effect still runs and still answers `false`; the
initialiser is a starting point, not a second read path.

Red-first, both build kinds pinned rather than inherited from the runner:
18 of 54 cases failed — "commits native on its first frame" and "does the
same when the bundler defined no `__DEV__` at all", nine switches each.
The neutral screen is mocked with a mount counter now, because a frame
committed and replaced inside one `act` leaves nothing in the tree; its
shape stays pinned in the web route's test, which renders the real one.
The census gains the build-kind fence as a third rule.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-21 18:24:30 -04:00
2026-05-04 20:42:03 -07:00
2026-03-16 22:27:51 -07:00
2026-03-28 10:19:14 -07:00

Orca Orca

GitHub stars Total downloads across all releases License: MIT Join the Orca Discord Follow Orca on X Supported platforms: macOS, Windows, and Linux

中文 · 日本語 · 한국어 · Español · Français · Português

The AI Orchestrator for 100x builders.
Run Codex, ClaudeCode, OpenCode or Pi side-by-side — each in its own worktree, tracked in one place.

Download Orca

Orca desktop app running agents in parallel worktrees, with the Orca mobile companion app in the corner

Features

Mobile Companion

Monitor and steer your agents from your phone — get notified when an agent finishes and send follow-ups from anywhere.

iOS App Store · TestFlight · Android APK 0.0.50 · Docs →

Orca desktop with the mobile companion app

Parallel Worktrees

Fan one prompt across five agents, each in its own isolated git worktree — compare the results and merge the winner.

Docs →

Parallel worktree orchestration

Terminal Splits

Ghostty-class terminals with WebGL rendering, infinite splits, and scrollback that survives restarts.

Docs →

Terminal splits

Design Mode

Click any UI element in a real Chromium window to send its HTML, CSS, and a cropped screenshot straight into your agent's prompt.

Docs →

Embedded browser and Design Mode

GitHub & Linear, Native

Browse PRs, issues, and project boards in-app — open a worktree from any task and review without a context switch.

Docs →

GitHub and Linear task workflows in Orca

SSH Worktrees

Run agents on a beefy remote box with full file editing, git, and terminals — auto-reconnect and port forwarding included.

Docs →

Remote worktrees over SSH

Annotate AI Diffs

Drop comments on any diff line and ship them back to the agent — review, edit, and commit without leaving Orca.

Docs →

Annotate AI-generated diffs

Drag Files to Agents

VS Code's editor with autosave everywhere — drag files or images straight into an agent prompt.

Docs →

Drag files and images into an agent prompt

Orca CLI

Agents drive Orca too — script every workflow with orca worktree create, snapshot, click, and fill.

Docs →

Script Orca from the CLI

Also in the box:

  • Quick open — Search across worktrees, files, agents, commands, and repo context without leaving your flow.
  • Account switcher & usage tracking — See Claude and Codex usage and rate-limit resets, and hot-swap accounts without re-logging in.
  • Rich repo previews — Preview Markdown, images, PDFs, and repo docs in the workspace.
  • Computer Use — Let agents operate desktop apps and visible UI when a workflow needs real interaction.
  • Notifications and unread state — Know when an agent finishes or needs attention, then mark threads unread to come back later.
  • And many, many more — we ship daily, so this list is perpetually behind. The changelog is the real feature list.

Supported Agents

Works with any CLI agent — if it runs in a terminal, it runs in Orca.

Claude Code logo Claude Code   Codex logo Codex   Grok logo Grok   Cursor logo Cursor   GitHub Copilot logo GitHub Copilot   OpenCode logo OpenCode   MiMo Code logo MiMo Code   Amp logo Amp   OpenClaude logo OpenClaude   Antigravity logo Antigravity   Pi logo Pi   oh-my-pi logo oh-my-pi   Hermes Agent logo Hermes Agent   Devin logo Devin   Goose logo Goose   Auggie logo Auggie   Autohand Code logo Autohand Code   Charm logo Charm   Cline logo Cline   Codebuff logo Codebuff   Command Code logo Command Code   Continue logo Continue   Droid logo Droid   Kilocode logo Kilocode   Kimi logo Kimi   Kiro logo Kiro   Mistral Vibe logo Mistral Vibe   Qwen Code logo Qwen Code   Rovo Dev logo Rovo Dev   + any CLI agent


Install

Desktop — macOS, Windows, Linux

Or via a package manager:

# macOS (Homebrew)
brew install --cask stablyai/orca/orca

# Arch Linux (AUR) — or stably-orca-git to build from source
yay -S stably-orca-bin

Mobile Companion — iOS, Android

Pair with your desktop app to monitor and steer your agents from your phone.


Community & Support

  • Discord: Join the community on Discord.

  • Twitter / X: Follow @orca_build for updates and announcements.

  • WeChat: Scan to join the Orca community WeChat group 9.

    WeChat group 9 QR code for the Orca community
  • Feedback & Ideas: We ship fast. Missing something? Request a new feature.

  • Privacy: See the privacy & telemetry docs for what anonymous usage data Orca collects and how to opt out.

  • Show Support: Star this repo to follow along with our daily ships.


Developing

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

The relay that pairs the mobile app with a desktop host is also in this repository under cloud/, with a separate pnpm workspace and setup guide.

Orca contributors

GitHub star history chart for stablyai/orca

Signed Builds

Windows code signing sponored/provided by SignPath.io, certificate by SignPath Foundation.

License

Orca is free and open source under the MIT License.

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%