Repository navigation
feat: run as UDA Orca beside the official Orca on Windows - #14
Merged
Merged
Conversation
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]>
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]>
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.com.stablyai.orcacom.ultramarine.uda-orcaOrcaUDA OrcaOrca.exe/orca-windows-setup.exe%APPDATA%\orca%APPDATA%\uda-orca(packagedextraMetadata.name; CLI, Codex-home and serve fallbacks read the module)%LOCALAPPDATA%\Programs\orca%LOCALAPPDATA%\Programs\uda-orca(NSIS one-click uses the package name)%LOCALAPPDATA%\Orca%LOCALAPPDATA%\UDA Orca~/.orca~/.uda-orca(credentials, keybindings, host terminal policy, orcad paths, agent-teams shim)orca(resources\bin on PATH)uda-orca(uda-orca.cmdforwarder in%LOCALAPPDATA%\UDA Orca\bin)orca://uda-orca://; both prefixes are accepted, generated links keeporca://stablyai/orcalurunzi/orcaOrca.Markdown/Orca.TabularUDAOrca.*; uninstall no longer kills the officialorca-terminal-daemon.exeDeliberately shared
~/.orca/agent-hooksscripts 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.jsonand report every event twice..orca/folders, ACPclientInfo.name, the bundledresources/bin/orcaused inside Orca terminals.~/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
mainbefore 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.tests/tools/win-update-e2e), the AppImage PATH command in the headless shutdown case, UpdateCard release links.ORCA_BACKGROUND_LAUNCH=1, temp home): startedUDA Orca.exewith 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 graphready,orca terminal create/readround-trip through the daemon, no visible window, foreground unchanged, home only got the shared.orca/agent-hooks, updater checkedlurunzi/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.cmdforwarder re-parses arguments through cmd.exe (same as upstream's dev forwarder); multi-line arguments from outside Orca terminals may need--*-fileflags.Dev builds are now named
UDA Orca Dev.🤖 Generated with Claude Code