Repository navigation
Conversation
Find orca (macOS), orca-ide (Linux) or orca.cmd (Windows) on PATH. On Windows, bypass orca.cmd and run the Electron binary it names with its CLI and env, so prompts never cross cmd.exe. The runtime RPC client is located from the launcher. OrcaCli resolves the launcher lazily, once; a missing CLI becomes an orca_unavailable error. execFile now hides console windows on Windows.
Use orca-ide on Linux, register the host for Chrome, Chromium, Brave and Edge (honouring XDG_CONFIG_HOME) and Firefox (~/.mozilla/native-messaging-hosts), warn about snap/flatpak browsers, and allow skipping the build with GITHUB_ORCA_SKIP_BUILD=1.
Writes a CRLF .bat wrapper pinning orca.cmd, gh, git and node directories, Chrome and Firefox manifests (UTF-8 without BOM) next to it, and registers them under HKCU for Chrome, Edge, Brave and Firefox. Runs on Windows PowerShell 5.1 and PowerShell 7.
cmd.exe decodes batch files in the OEM code page, so a UTF-8 .bat breaks paths with non-ASCII characters. Encode it with the OEM code page and fail with the offending paths when they cannot be represented.
…Windows The build job becomes an OS matrix. Each OS runs the tests, typecheck and build, a host smoke test (scripts/host-smoke.mjs sends one invalid native frame and expects invalid_request back) and an install smoke test: the installer runs against a stub Orca launcher, the browser manifest (or registry key) is checked and the installed wrapper is smoke-tested. Firefox lint and packaging stay on Ubuntu.
README: per-OS install sections (Chrome-family browsers and Firefox), Orca's shell command requirement (orca, orca-ide, orca.cmd), sandboxed browser caveat, Windows installer and its code page limitation, per-OS log paths, Windows clone folders and ssh-agent notes per OS. AGENTS.md: host platforms, orca-launcher.ts, log-dir.ts, install.ps1, the host smoke script and the rule to inject platform and path flavour in tests.
…dling on Windows Also drop the unused pathExt dependency and resolve the macOS launcher's real path once.
…rrow the flatpak warning PowerShell prefers npm.ps1, which inherits StrictMode and reads $MyInvocation.Statement (PowerShell 7.4+ only): the build aborted under Windows PowerShell 5.1.
… auto-start check
kermitsxb
force-pushed
the
feat/cross-platform-support
branch
from
October 1, 2026 14:38
f5b1ca6 to
0ba7556
Compare
kermitsxb
marked this pull request as ready for review
October 1, 2026 14:55
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.
Summary
The native host and its installation now work on Linux and Windows, not only macOS. CI builds, tests and smoke-tests on all three OSes.
host/src/log-dir.ts):~/Library/Logs/github-orca%LOCALAPPDATA%\github-orca\logs$XDG_STATE_HOME/github-orcaor~/.local/state/github-orca~\…. The options form accepts every OS's forms.host/src/orca-launcher.ts):orcaorca-ide. On Linux,orcais usually the GNOME screen reader, so it is never run.orca.cmdis parsed, and the Electron binary it names is run directly with the env the.cmdwould set. Prompts never go throughcmd.exe.chrome.runtime.getPlatformInfo).scripts/install.shnow also supports Linux:$XDG_CONFIG_HOME~/.mozilla/native-messaging-hostsscripts/install.ps1for Windows:.batwrapper in the OEM code page, and stops with a clear message if a path cannot be encodednpm test, typecheck, build, a host smoke test (scripts/host-smoke.mjs), and an install smoke test with stub Orca commands. On Windows the installer runs the real build under Windows PowerShell 5.1. Firefox lint and packaging stay on Linux..gitattributesforces LF line endings, so Windows checkouts keep fixtures and scripts intact.Test plan
npm test(293 tests),npm run typecheck,npm run build,npm run lint:firefox(0 errors)node:24containerinstall.ps1parsed and run with stub commands in a pwsh container. Registry writes are not checked there.actionlintcleanwindows-latestandmacos-latest. This is the first real run of the Windows installer: registry keys,.batlaunch,npm.cmdbuild.Not covered: Arc on Windows (registry key unknown); native messaging in sandboxed snap/flatpak browsers (documented caveat).