Skip to content

feat: run as UDA Orca beside the official Orca on Windows - #14

Merged
lurunzi merged 7 commits into
mainfrom
feat/uda-orca-identity
Nov 16, 2026
Merged

lurunzi merged 7 commits into
mainfrom
feat/uda-orca-identity

Conversation

@lurunzi

@lurunzi lurunzi commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Step B1 of the UDA Orca plan: give the fork its own identity so it can run on the same Windows machine as the official Orca without sharing a profile, daemon, installer entry, URL scheme or PATH command.

What changes

All fork names live in one module, src/shared/product-identity.ts; upstream files only switch to reading it, so future upstream merges conflict in few places.

Item Before After
appId / AUMID com.stablyai.orca com.ultramarine.uda-orca
Product name (shortcuts, uninstall entry) Orca UDA Orca
Windows executable / installer file Orca.exe / orca-windows-setup.exe unchanged: NSIS detects a running app by install path, so a new exe name only added churn in upstream CI and test files
userData %APPDATA%\orca %APPDATA%\uda-orca (packaged extraMetadata.name; CLI, Codex-home and serve fallbacks read the module)
Per-user install folder %LOCALAPPDATA%\Programs\orca %LOCALAPPDATA%\Programs\uda-orca (NSIS one-click uses the package name)
Daemon host root %LOCALAPPDATA%\Orca %LOCALAPPDATA%\UDA Orca
User state in home ~/.orca ~/.uda-orca (credentials, keybindings, host terminal policy, orcad paths, agent-teams shim)
PATH command orca (resources\bin on PATH) uda-orca (uda-orca.cmd forwarder in %LOCALAPPDATA%\UDA Orca\bin)
OS URL scheme orca:// uda-orca://; both prefixes are accepted, generated links keep orca://
Update feed stablyai/orca lurunzi/orca
NSIS ProgIDs Orca.Markdown / Orca.Tabular UDAOrca.*; uninstall no longer kills the official orca-terminal-daemon.exe

Deliberately shared

  • ~/.orca/agent-hooks scripts and install lock: upstream designs one user-wide hook script for parallel Orca instances, routed by PTY env. Moving it would put two managed hook sets in ~/.claude/settings.json and report every event twice.
  • Claude theme-sync record: upstream shares it across instances keyed by profile; splitting it makes the two apps overwrite each other's restore point.
  • Project .orca/ folders, ACP clientInfo.name, the bundled resources/bin/orca used inside Orca terminals.
  • Default workspace folder ~/orca/workspaces (a user content setting): UDA Orca replaces the fork build, so existing worktrees keep working.

Not in this PR: macOS-only identifiers (bundle ids, launchd labels, TCC list, LOCAL_BUILD_COMPATIBILITY_CONTRACT) — B2, verified on a Mac; first-run copy from the old profile — B3.

Verification

  • Typecheck (all projects) 0 errors; oxlint 0 errors on changed files; oxfmt clean; import boundaries, layout-writer, main-sync-fs and flaky-test ratchets, localization catalog and generated skill/plugin references all pass.
  • Tests in the changed directories: 140 files. 8 failing cases fail identically on main before this change (POSIX file modes, WSL/mac-only paths, timing) — not regressions. New tests cover the identity module, builder/launcher/NSIS consistency, ~/.uda-orca, both URL prefixes and the Windows PATH forwarder.
  • CI-side names updated where the fork's identity is now asserted: Linux package marker lookup, the Windows installer harness (tests/tools/win-update-e2e), the AppImage PATH command in the headless shutdown case, UpdateCard release links.
  • Side-by-side smoke (packaged, ORCA_BACKGROUND_LAUNCH=1, temp home): started UDA Orca.exe with its default profile while the existing Orca (8 processes) kept running. Single-instance lock acquired (no hand-off), userData %APPDATA%\uda-orca, daemon under %LOCALAPPDATA%\UDA Orca, runtime and graph ready, orca terminal create/read round-trip through the daemon, no visible window, foreground unchanged, home only got the shared .orca/agent-hooks, updater checked lurunzi/orca (no releases yet). The existing Orca and its data were untouched; the test's profile folders were removed afterwards.

Known follow-ups

  • Linux: the AppImage extraction cache ($XDG_CACHE_HOME/orca/appimage) is still shared with the official Orca; Linux coexistence is not covered by B1.

  • Uninstalling UDA Orca runs the agent-hook removal because its install check no longer sees the official install (new GUID); the official Orca reinstalls its hooks on next start. To fix in B2/B3.

  • The Windows uda-orca.cmd forwarder re-parses arguments through cmd.exe (same as upstream's dev forwarder); multi-line arguments from outside Orca terminals may need --*-file flags.

  • Dev builds are now named UDA Orca Dev.

🤖 Generated with Claude Code

Files Added Deleted Net
Test 21 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​165 $\color{#cf222e}{\Huge{\mathbf{−}}}$​64 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​101
Prod 35 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​205 $\color{#cf222e}{\Huge{\mathbf{−}}}$​88 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​117

lurunzi and others added 3 commits November 16, 2026 02:34
UDA Orca now has its own identity, so one machine can run it next to
the official Orca without the two sharing a profile, daemon, installer
entry or PATH command.

- src/shared/product-identity.ts holds every fork name (appId
  com.ultramarine.uda-orca, product "UDA Orca", userData "uda-orca",
  home dir ~/.uda-orca, CLI command uda-orca, scheme uda-orca://,
  releases from lurunzi/orca). The builder config and the Windows CLI
  launcher repeat a few literals; product-identity.test.ts keeps them
  equal.
- Packaged builds set package name uda-orca (userData), executable
  "UDA Orca.exe", their own NSIS ProgIDs, and LOCALAPPDATA\UDA Orca for
  the daemon host. The uninstaller no longer kills the official
  orca-terminal-daemon.exe.
- User state moves from ~/.orca to ~/.uda-orca (credentials,
  keybindings, host terminal policy, orcad paths, agent-teams shim).
  The shared ~/.orca/agent-hooks scripts and the Claude theme-sync
  record stay shared, as upstream designs them for parallel instances.
- The PATH command is uda-orca (a forwarder in LOCALAPPDATA\UDA Orca\bin
  on Windows) so it never shadows the official orca; the bundled
  resources/bin/orca is unchanged inside Orca terminals.
- The OS scheme is uda-orca://; both uda-orca:// and orca:// links are
  accepted, and generated links keep the orca:// format.
- The updater reads lurunzi/orca releases.

macOS-only identifiers (bundle ids, launchd labels, TCC list) follow in
a separate change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…opt folder

Isolation from the official Orca comes from appId, userData, install
directory, home dir, PATH command and URL scheme. NSIS checks a running
app by install path, so renaming Orca.exe added nothing but churn in the
CI and test files that name it. Orca.exe and orca-windows-setup.exe stay
upstream's; the Windows CLI launcher returns to upstream's source.

- The Linux package marker check locates resources/package-type instead
  of naming /opt/Orca, which now follows productName.
- The packaged-launcher directory list also knows /opt/UDA Orca.
- UpdateCard tests expect lurunzi/orca release links.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ames

The Windows installer harness named the official Orca's paths: the
per-user install folder (now Programs\uda-orca, from the package name),
%APPDATA%\uda-orca, the "UDA Orca" product and uninstaller, the
uninstall registry match, and the LOCALAPPDATA\UDA Orca daemon host the
serve-switch check expects (it failed on #14 while the daemon ran from
the right place).

The Linux package marker check no longer uses grep -m1: exiting early
SIGPIPEd tar under pipefail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
lurunzi added a commit that referenced this pull request Nov 16, 2026
* fix: restore the fork's package scripts lost in the v1.4.259 merge

The upstream sync took upstream's package.json whole to settle the
version conflict, which dropped three fork lines:

- ci:local, the local CI entry AGENTS.md tells agents to run;
- prepare:cross-version-releases, which the cross-version wire job calls
  (it failed with "Missing script" on #14);
- --no-error-on-unmatched-pattern on the two lint-staged oxlint configs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(cross-version): import the v1.4.259 RPC error mapper from its new path

With the v1.4.259 tag merged, the cross-version baseline is v1.4.259
itself, where src/main/runtime/rpc/errors.ts moved to
responses/rpc-response.ts (stablyai#41475). Upstream main made the same change
when its baseline moved past that release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
lurunzi and others added 2 commits November 16, 2026 05:31
The headless serve shutdown case checked ~/.local/bin/orca-ide, the official Orca's command. UDA Orca registers ~/.local/bin/uda-orca (product-identity cliCommandName); the launcher it links to is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lurunzi
lurunzi merged commit 427ee8f into main Nov 16, 2026
82 checks passed
@lurunzi
lurunzi deleted the feat/uda-orca-identity branch November 16, 2026 06:08
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