Commit Graph
20622 Commits
Author SHA1 Message Date
Brennan Benson 539c46bf17 Handle large pastes in structured chat goal mode (#34654)
* fix(native-chat): turn a big paste into a file in terminal-backed chats and goal mode

A paste of 32 KiB or more already became a "Pasted text" file in
structured chats, but terminal-backed chats and goal mode put the whole
text in the editor, where one long line can stall the window for seconds
(issue #32355). Every composer that can store the file now follows the
same rule.

- Terminal-backed chats on this machine save the file in the paste
  folder, where their pasted images already live; their sends claim
  nothing, so the attachment store's 30-day sweep must not reach it.
- Terminal-backed chats never get the structured 256 KB refusal.
- Setting a goal claims the uploads its objective names in the same
  journal write, so a goal's pasted file is not swept; a file already
  gone refuses the goal before the agent starts.

* Preserve paste sources until submitted and retire refused goal claims

* Recover staged paste reads and cancel preparation before option commands

* Stabilize paste ownership test setup and sweep clock

* Keep large-paste folding scoped to structured chats

* Restore journal prototype forwarding methods

* Prepare attachment receipts from actual journal output

* Align goal and deferred paste fixtures with current contracts
2026-10-29 00:32:31 -07:00
71f030fcd6 feat(wsl): default a new Windows-drive project under a WSL default to Git for Windows (D1c-5) (#33122)
* feat(wsl): default a new Windows-drive project under a WSL default to Git for Windows

* fix(wsl): judge a new project's worktree links with the prune guard's test, so a //wsl.localhost link counts as Windows Git's

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 00:32:19 -07:00
Neil 3d236c3b3a fix(wsl): don't start a stopped distro to read a repo's default base ref (#35778)
* fix(wsl): don't start a stopped distro to read a repo's default base ref

Opening a repo's Settings pane ran git for-each-ref and git remote through
the repo's WSL distro, which started it after the user had stopped it (E9).
Background reads now return the existing unknown result while the distro is
stopped; an explicit refresh can pass wakeWslDistro. The runtime RPC that
serves the same read to paired clients is gated the same way.

* fix(wsl): re-read a refused default base ref once its distro runs

A refused read now names the distro and defers a preflight:wslDistroRunning
broadcast; Settings and Source Control re-ask on it, so base comparison
returns without a repo switch. Drops the unused wakeWslDistro option.
2026-10-29 00:30:12 -07:00
Neil e6980deb58 test(agent-state): catch rewriting checks and look inside every container in the schema walker (#35797)
The walker that proves bundled rule files need no parsing missed value
rewriting checks (trim, toLowerCase, overwrite) and never entered
intersections, object catchalls, maps or records. It now reports each,
with a detection test per case.
2026-10-29 00:29:32 -07:00
Neil 78f2b32420 refactor: group native-chat merger with pair-window spec (#35714) 2026-10-29 00:28:27 -07:00
Neil 7f2d223211 fix(agent-session): report a CLI the supervisor could not spawn as missing, not a failed start (#35770)
* fix(claude): report a CLI the supervisor could not spawn as missing, not a failed start

The connection already flags a supervised exit 127 with a spawn ENOENT as a
missing executable, but the session's unexpected-exit settlement turned every
observed exit into providerExited, which startup then worded as
providerStartFailed. Route spawn absences through the startup failure fact so
they surface as cliMissing or launchFolderMissing.

* fix(codex): report a CLI missing during acquisition as missing, not an exit

Codex's acquisition-time exit had the same drop as Claude's unexpected exit:
a spawn ENOENT already marked on the error became providerExited. Share one
providerSpawnAbsent predicate and route marked errors through the startup
failure fact in both.
2026-10-29 00:27:20 -07:00
Neil 3633c1b074 test(orcad): guard an idle WSL-host orcad tree's resident memory in the node-server lane (#35772)
Boot the built orcad the way a WSL host launch does, open a repo and two
terminals, idle 90 s, and assert the whole process tree stays under
400 MB of RSS (about 251 MB today). It catches a new always-on worker or
a retained buffer between device runs of the 1 GB memory gate.
2026-10-29 00:24:01 -07:00
Brennan Benson 85a1d7ba04 Keep action model and effort choices out of Arguments (#34275)
* Unify dedicated agent launch choices and argument badges

* Enable action model and effort menus with argument migration

* Bound argument choice edit range processing

* Preserve independent action effort through launch and migration

* Preserve literal config arguments and explicit launch permissions

* Respect repository action argument groups and share launch controls

* Remove duplicate action launch command coverage

* Unify Source Control action choices and repository overrides

* Use precise types in action choice contracts

* Consolidate action choice test imports

* Correct action choice types and integration test boundaries

* Complete prepared terminal test result contract

* Align action integration expectations with canonical choices

* test(mobile): type the file preview retry test helpers so the test typecheck passes (#35431)

(cherry picked from commit 0774fc9373)

* Commit edited action arguments before planning and launch

Reconcile deliberate raw edits once into the submitted action recipe so replacement model and effort flags reach Save and Start together. Preserve captured sources and untouched load conflicts.

* Name portable Source Control dialog fixture results
2026-10-29 00:23:23 -07:00
Neil 25f4b45dc4 fix(wsl): close the session scanner's post-stop boot gaps (#35729)
* fix(wsl): close the session scanner's post-stop boot gaps

An OpenCode/ZCode WSL reader that exits notes its distro may have
stopped, so a respawn needs a settled running read. The Devin
sessions.db opens only on a running list from the transcript lease.
Queued transcript reads re-admit right before they run, and reads on
open 9P handles re-admit too. WSL roots and extra Codex homes come
from a confirmed running list (E9).

* fix(wsl): a failed running-list probe keeps WSL sessions and delete roots

Background discovery keeps confirmed-only WSL roots, but an unconfirmed
probe now carries over the last confirmed WSL rows (marked partial)
instead of dropping them. Path checks for user acts (delete, subagents,
transcript lookup) use last-known-good roots, since checking a path
against a root reads nothing.
2026-10-29 00:22:47 -07:00
NeilandClaude f2c97a1ced fix(wsl): cache the WSL hosts policy as downloaded, not re-serialized (#35782)
The live updater wrote JSON.stringify(parsed.policy), and parsing strips
fields this build doesn't know. Since an equal revision never rewrites the
cache, an older build that fetched a revision first would hide a field
such as movedProjects from a newer build on the same profile until the
server bumped the revision. It now writes the validated downloaded text
verbatim; the monotonic revision rule is unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 00:22:42 -07:00
Neil c89dd7c47e test(wsl): prove OpenCode chat inside the distro in the real-WSL lane (#35766)
* test(wsl): prove OpenCode chat inside the distro in the real-WSL chat lane

* test(wsl): one helper runs each scripted provider chat
2026-10-29 00:21:38 -07:00
NeilandClaude 1665a6e4b7 test(wsl): keep the child-side gate inheritance cases next to the gate (#35765)
#35667 pruned src/shared/wsl-host-internal-gate.test.ts as a lone suite,
dropping #35543's child-side cases. Two non-redundant ones return inside
wsl-host-gate.test.ts: a child of a blocked run trusts the published
closed over ORCA_INTERNAL_WSL_HOSTS=1 (and serve-only with no env), and
falls back to the env when nothing valid was published. The main-side
cases were already there.

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 00:20:20 -07:00
Neil 7fa3f9ccf5 test(native-chat): keep the at-rest Claude catalog's skill discovery out of the real home (#35781) 2026-10-29 00:18:56 -07:00
OrcaWinandOrcaWin 78876c01ba fix(runtime): reject non-object E2EE handshake JSON (#35583)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-29 00:18:00 -07:00
Neil c5f362831e test(runtime): give each start-retry spawn wait room for the retry backoff (#35744)
* test(runtime): give each start-retry spawn wait room for the retry backoff

* test(runtime): drop the redundant first-spawn wait the retry loop already covers
2026-10-29 00:17:54 -07:00
Neil 016cbe3cc0 fix(plugins): load installed plugins whose engines floor predates their fields (#35756)
* fix(plugins): load installed plugins whose engines floor predates their fields

The engines.orca floor rule is an authoring check. At runtime (install,
discovery, update, rollback) a manifest now loads when this host parses
every field and meets engines.orca; dev folders, validate:plugin and
catalog CI stay strict. Installed copies that can't load show user-facing
copy and offer Reinstall when the catalog has a loadable release with
different bytes.

* fix(plugins): give installed copies user-facing copy for every load failure
2026-10-29 00:15:36 -07:00
Neil 57c6fcf7b2 fix(plugins): installing a one-mode theme now visibly applies it (#35674)
* fix(plugins): installing a one-mode theme now visibly applies it

Most official themes are dark only. Installing one while the app was light
filled the unseen dark slot and nothing on screen changed. Switch the app to
the theme's mode (Switch back restores it), and put a lone terminal theme for
the other mode in the terminal slot that is showing.

* fix(plugins): lone terminal theme shows in the visible slot and reads as selected
2026-10-29 00:15:22 -07:00
Neil 084c7658e8 fix(wsl): forget an interrupted wake's token once its fence is settled (#35759)
A wake that finds the slot serving returned before the fence branch that
clears an interrupted wake's token, so a stale token kept WSL's one-fence
wake answering 'fenced' until restart. Before that early return, forget
the token when its fence is gone or names another owner.
2026-10-29 00:14:48 -07:00
Neil 6f6689f889 fix(daemon): log a terminal exit no client heard (#35734) 2026-10-29 00:13:08 -07:00
Neil 83ee93e442 perf(agent-state): use the bundled rule files without re-validating them at load (#35768)
orcad spent ~25 ms of every start zod-parsing the 14 checked-in rule files. A test now proves their parse output deep-equals the raw JSON and that the schema can't change output, so the runtime uses them as bundled. Downloaded and override rules keep full validation. Also corrects the Codex-deferral comment: every orcad host defers it, not only WSL.
2026-10-29 00:11:56 -07:00
Neil 3d812eb9bf fix(keybindings): show ⇧ for Shift in Windows/Linux shortcut labels (#35754)
* fix(keybindings): show the ⇧ glyph for Shift on Windows and Linux

Spelled-out Shift made non-mac shortcut labels long (Ctrl+Shift+Backspace).

* test(menu): expect the ⇧ glyph in non-mac app menu hints; align double-tap hint
2026-10-29 00:08:48 -07:00
Neil b6ffc2079b fix(windows): keep Orca's std handles out of every spawned child (#35678)
* fix(windows): keep Orca's std handles out of every spawned child

libuv spawns with bInheritHandles=TRUE, so an inheritable std handle reached
long-lived children such as the WSL holder and the daemon and held a
launcher's pipe open after Orca exited. Clear HANDLE_FLAG_INHERIT on the std
handles at the top of main startup; stdio 'inherit' still works because
libuv hands the child its own inheritable duplicate.

* test(windows): model Orca's Electron main, which keeps std handles inheritable

Plain Node clears its std handles' inherit flag at startup, so a Node child
never reproduced the leak. Electron main opts out of that, which is why Orca
leaks and why the control arm now runs Electron; a plain-Node arm pins the
difference.

* test(windows): say why the std-handle tests need longer timeouts
2026-10-29 00:08:27 -07:00
OrcaWinandOrcaWin 1bfba51e36 fix(i18n): code ephemeral VM provisioning and cleanup failures (#35747)
* fix(i18n): code ephemeral VM provisioning and cleanup failures

* fix(i18n): relocalize recipe-list errors on language change

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-29 07:06:15 +00:00
NeilandClaude 478a008299 feat(wsl): a WSL hosts block can ask for already-moved projects back (#35762)
The cached policy gains an optional movedProjects: keep | bring-back, read
only with a block. An unknown value reads as keep, so it never drops the
block, and older builds ignore the field. The gate records the choice for
the run (wslHostsBringBackMovedProjects) and telemetry reports it as
wsl_hosts_moved_projects. Nothing acts on it yet; bringing projects back
follows.

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 00:04:54 -07:00
OrcaWinandOrcaWin 4c963268d2 fix(i18n): code Mobile Emulator, PDF export, and diagnostics failures (#35742)
* fix(i18n): code Mobile Emulator, PDF export, and diagnostics failures

* fix(i18n): read emulator error params without Reflect.get

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-29 00:03:35 -07:00
a7f9888d01 feat(wsl): offer the drive-path conversion in project settings, and convert the window's stores (D1c-4d) (#33143)
* feat(wsl): offer the drive-path conversion in project settings, and convert the window's stores (D1c-4d)

* fix(wsl): tell the user why saved state blocked the drive-path conversion

A refusal over saved state now names the cause: a folder with different details under both its WSL
path and its drive path, or a project that also holds a repository that isn't converting. An older
host's refusal without a cause keeps the general message.

* fix(wsl): explain a conversion refused because the distro's /mnt/<letter> is not that Windows drive

Co-Authored-By: Claude <noreply@anthropic.com>

* test(wsl): give the renderer-rewrite journal fixture the profile the journal now records

* test(wsl): give the e2e conversion journal the profile field the journal now requires

* test(wsl): carry the #33135 startup tests onto the window-store journal: it waits for the window, and finishes on any platform once the gate is open

* test(wsl): off Windows the conversion IPC still reports startup's outcomes, as the journal can finish on any platform

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-10-28 23:58:39 -07:00
Hotragn PettuganiandNeil 1279d5f588 fix(cli): never register the bundled launcher as a link to itself (#35371)
* fix(cli): never register the bundled launcher as a link to itself

orca serve registers the CLI at startup. On macOS the installer walks
PATH for an existing orca command, and Orca's own terminals put the
bundled Resources/bin first on PATH. The bundled launcher reads as a
managed Orca launcher, so it was picked as the command slot, moved
aside, and replaced with a symlink to itself. The app's CLI then broke
until reinstalled.

Skip the launcher when scanning PATH, and refuse any symlink install
whose command path is the launcher.

Fixes #33872

* fix(cli): compare the launcher by directory entry, not path spelling

The self-link guards compared path strings, so a PATH entry or
ORCA_CLI_INSTALL_PATH that reached Resources/bin through a symlinked or
differently cased directory still replaced the bundled launcher with a
link to itself. Compare entry and parent-directory identity instead.

Co-authored-by: Hotragn <103170876+Hotragn@users.noreply.github.com>

* fix(cli): keep differently named hard links to the launcher replaceable

* fix(cli): treat a case-variant name as the launcher only when it is an alias, not a second hard link

* refactor(cli): compare the launcher by inode via existing entry snapshots

Replace the speculative isSameDirectoryEntry helper with isSameEntry beside
readEntrySnapshot/hasSameIdentity, and drop the hard-link test that only
pinned the removed behavior.

Co-authored-by: Hotragn <103170876+Hotragn@users.noreply.github.com>

* Revert "refactor(cli): compare the launcher by inode via existing entry snapshots"

This reverts commit f02f8c2a2ba0263fd611170af7c3f76d22e48ea7.

* test(cli): fold the bundled-launcher cases into the macOS command-path suite

* refactor(cli): move the launcher entry check beside the entry snapshots

Reuse readEntrySnapshot/hasSameIdentity for the entries, keep the parent
identity check (a hard link in another dir such as /usr/local/bin must stay
replaceable, which is why f02f8c2a2ba was reverted), and drop the readdir
case-folding branch. Pin the cross-directory hard link instead of the
speculative sibling one.

Co-authored-by: Hotragn <103170876+Hotragn@users.noreply.github.com>

* fix(cli): keep a case-variant hard link beside the launcher replaceable

---------

Co-authored-by: Neil <neil@stably.ai>
2026-10-28 23:55:31 -07:00
OrcaWinandOrcaWin 5450afd4db fix(i18n): code AI Vault scan issues and chat auto-name failures for the renderer (#35750)
* fix(i18n): code AI Vault scan issues and chat auto-name failures for the renderer

* fix(i18n): read scan issue params through the wire type

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-28 23:51:46 -07:00
OrcaWinandOrcaWin 924d757ad6 fix(i18n): code shared validation errors; translate speech model, setup source and project group copy (#35737)
* fix(i18n): code shared validation errors and translate speech model, setup source and project group copy

* fix(i18n): keep detected label for unknown setup import providers

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-28 23:49:27 -07:00
OrcaWinandOrcaWin f245dc7521 fix(editor): copy local Windows paths with native separators (#35647)
* fix: copy local Windows paths with native separators

Copy Path for a proven-local absolute Windows path now writes backslash
separators, the form native Open/Attach dialogs accept (#26204). Applied at
the clipboard boundary of the editor tab menu and header, File Explorer Copy
Path(s) and its shortcut, source control Copy Path, Monaco Copy Path to Line,
HTML document preview Copy file path, workspace sidebar and activity Copy
Path, skills Copy path, and AI Vault Copy Log Path, each with the owner its
Reveal/Open in action already resolves. Remote, unresolved, web-client, URL,
relative and non-Windows output is unchanged.

* fix: sync Copy Path owner refs after commit

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-28 23:44:11 -07:00
Neil 0e9ba2167b test(ssh): let Linux finish releasing upload fds before asserting they closed (#35612)
* test(ssh): let Linux finish releasing upload fds before asserting they closed

* test(ssh): pin abort teardown confirmation and reword the fd-release note
2026-10-28 23:37:42 -07:00
OrcaWinandOrcaWin 2fd71477c7 fix(i18n): translate feature wall tour and feature tip copy by id (#35736)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-28 23:36:33 -07:00
Neil d841f68785 fix(wsl): a holder exiting with code 1 notes its distro may have stopped (E9) (#35738)
The holder's code 1 means its distro stopped. Noting it, independent of bridge activity, closes
the window the bridge exit's burst cooldown or a still-open socket can leave: later background
reads must re-read the running list instead of trusting a cached "running". The holder's process
classification moves to its own module to keep the file under max-lines.
2026-10-28 23:35:26 -07:00
Kelvin Amoaba 5f60520d74 fix(dictation): cancelling dictation frees the speech engine at once (#35730)
* fix(dictation): drop audio on cancel so a re-tap starts at once

A cancelled or abandoned dictation was transcribed anyway, holding the
speech session until the upload or local decode finished.

Fixes #35681

* test(dictation): fake worker answers discard like the real one

* refactor(dictation): one session reset for worker stop and discard

* fix(dictation): exit a worker that cannot open a fresh stream
2026-10-29 06:34:22 +00:00
Neil 277c4a9bf8 perf(orcad): keep the Codex PATH scan off WSL readiness (#35718)
* perf(orcad): keep the Codex PATH scan off WSL readiness

orcad's startup Codex hook lookup and reconcile now wait for readiness to
publish (a launch still releases them at once), and the WSL Windows-copy
check reuses a recent verdict for the same PATH instead of re-statting
every Windows-drive PATH entry on each call.

* refactor(orcad): hand readiness to managed agent hooks through a returned handle
2026-10-28 23:32:17 -07:00
Neil 76f5568d30 fix(editor): highlight CMakeLists.txt with the CMake TextMate grammar (#35735)
Register a cmake Monaco language for CMakeLists.txt backed by Shiki's
CMake grammar, mapping its storage/entity/argument scopes to token
types the stock Monaco themes style. .cmake files stay with plugin
syntax packs.

Fixes #35452
2026-10-28 23:29:21 -07:00
Neil 4049bc77d6 feat(orcad): gate agent launches on readiness and refuse callers that leave while waiting (#35710)
* feat(orcad): gate agent launches on accounts and cancel feature waits for departed callers

requires: may read the parsed params, so terminal.create and
session.tabs.createTerminal wait on accounts only when they start an
agent; plain shells stay ungated. createAgentSession, ensureAgentSession,
agentSession.create, agent.launch (unless it reuses a terminal),
git.generateCommitMessage and the worker-launching orchestration methods
also wait on accounts. The feature wait races the request signal and the
connection close and refuses without running the handler.

* feat(orcad): gate terminal.ensureAgentSession only for explicit launches

An attach to an existing session is restore latency and needs no fresh
account state; only kind 'explicit' may start an agent.

* test: reset orcad feature readiness after every unit test

A startOrcad test that fails partway left latches closed, so later tests
in the same worker could wait 10 s on a gated method.
2026-10-28 23:25:44 -07:00
Neil 682ef86dfe fix(skills): start only the unread distros when Share retries discovery (#35725)
The share RPC's fallback now reads stopped roots only on the distros its first pass left unread, the directory matcher refuses an empty root, and the lowercasing is documented as widen-only.
2026-10-28 23:14:52 -07:00
Neil 571eb885ac fix(menus): let shortcut context menus grow to fit Windows shortcut labels (#35726)
Fixed menu widths clipped long labels like Ctrl+Shift+Backspace on Windows/Linux.
2026-10-28 23:13:36 -07:00
YiGeon(박이건)andNeil ae811d016d fix(github): keep same-repo PRs when origin uses a renamed repository's old URL (#35688)
GitHub serves a renamed repository under its old name, so branch discovery
finds the PR through a stale origin URL, then rejects it because the PR
reports the new head repository name. Accept the PR when the queried
repository is origin itself and GitHub reports it as a same-repository PR,
and share that same-repository check with the cached-number lookup path.

Fixes #35687

Co-authored-by: Neil <neil@stably.ai>
2026-10-28 23:08:42 -07:00
Neil c56d97bf05 perf(wsl): take one activation fence on a same-version connect (#35708)
* perf(wsl): take one activation fence on a same-version connect

A same-version WSL connect fenced twice: the deploy took the activation
fence only to read that the version was already active, released it, and
the wake took it again to start the stopped slot. Now the deploy skips its
fence for that case (WSL-only, when the connect snapshot saw the fence
open), and one wake fence re-reads the record, checks liveness and starts
the slot under its owner guard. Another version active by then, or a busy
fence, runs the full deploy and wake as before. SSH is unchanged.

* fix(wsl): leave an interrupted wake's fence to the wake that can reclaim it

The one-fence wake recorded its own token over an earlier interrupted
wake's, so the full wake could no longer prove that fence its own and the
host stayed fenced until stale recovery. With an interrupted wake on
record, the one-fence path now answers 'fenced' and the full wake runs.
2026-10-28 23:04:20 -07:00
Neil 4296f77d76 fix(wsl): WSL host bridge dials, ready clients and holder re-ensures never boot a stopped distro (E9) (#35707)
* fix(wsl): WSL host bridge dials, ready clients and holder re-ensures never boot a stopped distro (E9)

With a chat open on a WSL host, terminating the distro let the control connection's quick
redial reach the still-open loopback listener, whose per-socket `orca_node_bridge --exec`
spawned wsl.exe and booted it again.
1. The WSL bridge listener admits a dial only on a settled running read (the cached one, under
   the usual lease), refusing a stopped or unverifiable distro. Every wsl.exe launch from the
   WSL host transport notes the distro as launched, so a user act's connect is never refused its
   own bridges by a "stopped" read taken before it started the distro.
2. A bridge the guest ends first notes the distro may have stopped, so the next dial re-reads.
3. A ready runtime client skips the cold reachability check only while the last settled running
   list names the distro.
4. Background holder re-ensures (liveness) re-read the running list right before spawning; a user
   ensure never inherits a background one's refusal. The holder's types move to their own module.
The shared SSH bridge listener and the shared-control reconnect are unchanged.

* fix(wsl): note a possible stop only on the filtered bridge exit, not every guest-first close

A guest-first end is also how one-shot RPC sockets and WebSockets close normally; noting a stop
on each made the next dial wait out the settle and probe, flapped reachability, and fed false
stop notes to the session scanner. The note now rides WslOrcadBridgeActivity's exit signal: the
guest ending the last open bridge, outside the burst cooldown.
2026-10-28 23:02:44 -07:00
Neil b398b91857 fix(worktree): explain how to raise the limit when git worktree add times out (#35720)
A timed-out worktree add surfaced only "git timed out.". Rewrite the
GitCommandTimeoutError message on the add path to state the limit used and
point to ORCA_WORKTREE_ADD_TIMEOUT_MS, set where Git runs (the remote host
for SSH or orca serve workspaces). The advice is dropped once the limit is
already at its maximum. The error's class and timeout field are preserved.

Fixes #35174
2026-10-28 22:57:59 -07:00
OrcaWinandm4air fe1e179cde perf(rpc): reuse required primitive schemas by message (#35072)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-10-28 22:52:51 -07:00
Neil 1c33f515de perf(test): reuse Vitest transforms across local runs (#35715)
Enable Vitest's persistent module cache outside CI under node_modules/.cache/orca-vitest-modules,
keyed by the existing CI module-cache policy hash (lockfile, tsconfig/package manifests, runner
scripts) plus the Node version. reclaim-space removes caches unused for 7 days.
2026-10-28 22:47:07 -07:00
Neil de3a87f0cc test(dev): stop run-electron-vite-dev web tests from orphaning fixture processes (#35713)
Track the fake electron-vite CLI pids before the fallible web-build wait, give that wait 20s
on loaded hosts, and have the fake CLI exit once its parent wrapper is gone.
2026-10-28 22:46:43 -07:00
Neil 1529bb49ad refactor(plugins): remove dead plugin code (#35676)
- the command extension registry: workers registered every command into it,
  but nothing ever looked one up (commands run through the service directly)
- PluginListRow, a list row no screen renders anymore
- hasPluginSyntaxFailure, called only by tests
- six exported types nothing imports, and a re-export nothing uses
2026-10-28 22:40:47 -07:00
Neil d91c1aaeea Plugins: binary editors keep unsaved edits across renames, reloads and twin tabs (#35698)
* fix(plugins): keep binary editor edits across renames, reloads and twin tabs

- Renaming a binary file with unsaved plugin-editor edits gave its tab a new
  id, and the bytes store took the old id's disappearance as a close and
  dropped the edit. The bytes now move with the tab as the rename lands.
- Tabs of one file share one dirty flag, so they now share one bytes draft;
  before, saving one tab marked both clean and dropped the other's edit.
- A reload that reads the same bytes keeps the document, so the editor is not
  sent a new version that turns an edit in flight into a conflict.

* fix(plugins): finish a twin-tab bytes save through any tab still open

A tab that closed mid-save left its twin with the old hash, and a twin
adopting a shared draft no longer lets its own older read replace it.

* fix(plugins): hand a closed tab's bytes draft to its open twin; drop stale reads

A twin that had not shown the file yet lost the draft when the tab holding it
closed, and a read that started before an edit and save could replace the
newer saved bytes. Boxes now count edits and saves; a read only lands if none
happened since it started.
2026-10-28 22:40:41 -07:00
Neil b9996755b3 fix(wsl): a missing host gh or glab never boots a stopped default distro (#35709)
Cwd-less gh/glab calls whose host CLI is missing fell back to the default
WSL distro with no running check, so background work (rate limits, auth
status, Settings, task-source probes) booted a stopped distro. The
fallback now asks the background exec gate first: stopped or
unverifiable refuses with the distro-stopped error, running and user
acts fall back as before.
2026-10-28 22:39:49 -07:00
OrcaWinandOrcaWin 300b241fc6 fix(i18n): format renderer dates and numbers in the UI language (#35671)
* fix(i18n): format renderer dates and numbers in the UI language

About 80 renderer sites formatted with the OS locale: Intl constructors
given undefined (or nothing) and argless toLocale*String calls, while
nearby text followed the UI language.

- toLocale*String calls pass getIntlLocale().
- Module-level Intl formatters and collators use new ui-intl-formatters
  helpers, cached per options object and rebuilt on language switches;
  per-call constructors pass getIntlLocale().
- ReleaseBuildPicker's memoized labels re-run on language changes.
- An ast-grep rule (renderer-intl-ui-locale) rejects undefined/omitted
  locales in src/renderer; machine-facing code passes a fixed locale.

* fix(i18n): collators check their own locale support; re-sort memoized lists on language changes; widen the Intl guard

* fix(i18n): name the formatter options type

* fix(i18n): reuse the CSV viewer's existing language subscription

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-28 22:38:33 -07:00