Repository navigation
Add Orca logo and polish README header - #13
Merged
Merged
Conversation
Center-aligned the app icon, title, description, and screenshot for a polished landing page feel. Co-Authored-By: Claude Opus 4.6 <[email protected]>
3 of 7 tasks
Jinwoo-H
added a commit
that referenced
this pull request
May 4, 2026
…reamble+ask, QoL (#1403) * feat(orchestration): transport keepalive + delivered_at split for check --wait Implements the four §3 fixes from the check-wait design doc: - §3.1 Transport keepalive: long-poll RPCs (orchestration.check --wait) emit `{"_keepalive":true}` frames every 10s so neither server nor client tears the socket down on idle. A `longPoll` admission counter capped at 16 fails fast with `runtime_busy` when saturated; an AbortController wired through the RPC dispatcher cancels the inner waiter the moment the socket closes. - §3.2 delivered_at split: push-on-idle now stamps `delivered_at` instead of flipping `read`, so the check caller remains the sole consumer of its queue. Adds a synchronous idempotent schema migration that hard-fails on error. - §3.3 inbox/check parity: `orchestration inbox --terminal <handle>` and `orchestration check --all` agree on the same rows (sequence DESC, no mark-read). `check --unread=false` kept for one release as a compat shim. - §3.4 CLI heartbeat: `orca orchestration check --wait` emits JSON heartbeat lines to stderr every 15s so Claude Code's Bash tool sees continuous output and doesn't auto-background the subprocess. Tests: extends runtime-rpc, orca-runtime, envelope-schema, orchestration method, and formatter suites; adds a subprocess test that spawns the built CLI and verifies stderr line-flushing, heartbeat cadence, and stdout cleanliness end-to-end. Co-authored-by: Orca <[email protected]> * feat(orchestration): preamble rules + heartbeat schema - Preamble (#7, #15, #9): worker_done body ("3-sentence summary" + reportPath), BEHAVIOR RULE #1 forbidding AskUserQuestion, heartbeat every 5 minutes with taskId+dispatchId payload, AFTER YOU SEND grace window. - Schema v2 migration: adds 'heartbeat' to messages.type CHECK, adds dispatch_contexts.last_heartbeat_at, gated by user_version PRAGMA with transactional rebuild + explicit CREATE INDEX to avoid silent perf regress. - DB helpers: recordHeartbeat (dispatched-only), getStaleDispatches, getThreadMessagesFor (thread+handle scoped for ask). Co-authored-by: Orca <[email protected]> * feat(orchestration): coordinator heartbeat + stale detector Handle incoming 'heartbeat' messages by calling recordHeartbeat keyed on payload.dispatchId (strict — log-and-skip if missing, no taskId fallback so a straggler heartbeat from a previously-failed dispatch cannot mask a hung retry per §5.3.4). On every tick after the 10-minute threshold, emit one log per stale dispatched row — no auto-fail. Also threads dispatchId through buildDispatchPreamble so workers can attribute their heartbeats back to the correct dispatch context. Co-authored-by: Orca <[email protected]> * feat(orchestration): orca orchestration ask verb Adds a CLI verb that sends a decision_gate message and blocks on the coordinator's reply, scoped to the outbound message's thread. Group addresses (@ALL, @idle, …) are rejected — fan-out questions must use send --type decision_gate explicitly. --json emits bare single-line JSON (bypassing printResult) so workers can pipe `orca orchestration ask … --json | jq -r .answer` without unwrapping an RPC envelope; human mode prints just the answer. On timeout the verb exits 1 and returns {answer: null, timedOut: true}. This is the CLI surface BEHAVIOR RULE #1 in the dispatch preamble points workers at instead of AskUserQuestion. Co-authored-by: Orca <[email protected]> * feat(orchestration): QoL bundle — preamble visibility, status enum, dispatch cross-ref, inbox --full Addresses four items from ORCHESTRATOR_FEEDBACK: - #5 preamble visibility: `dispatch-show --preamble` regenerates the preamble text for a task; `dispatch --inject --dry-run` previews without mutating state; `dispatch --return-preamble` echoes the injected preamble in the JSON response so coordinators can audit what a worker received. - #6 status enum validation: CLI rejects unknown `task-update --status` values with `invalid status '<x>', expected one of: pending, ready, dispatched, completed, failed, blocked` before the RPC's generic Zod message. Valid statuses are listed under Notes in `task-update --help`. - #13 task-list dispatch cross-ref: `task-list --json` now includes `assignee_handle` and `dispatch_id` for tasks in status=dispatched via a read-only LEFT JOIN on dispatch_contexts. Non-dispatched rows keep their legacy shape so existing consumers are unaffected. - #14 inbox body visibility: `inbox --full` prints body + payload verbatim; default output is unchanged (id/from/to/subject only). No DB migrations; join-only change on dispatch_contexts so the sibling preamble PR's `last_heartbeat_at` column addition will not conflict. Co-authored-by: Orca <[email protected]> * fix(worktree): prevent stale-base worktree creation and dispatch Addresses feedback #16 per DESIGN_DOC_STALE_BASE_FIX.md §0. Four v1 components coordinated by a single shared fetch cache on the runtime: 1. Concurrent-fetch-with-gate in UI create path: `createLocalWorktree` fires `git fetch` BEFORE the suffix loop / PR probe / path resolution, then awaits right before `addWorktree` so the new branch always spawns from a fresh remote tip. Renderer sees a two-phase spinner via the new `createWorktree:progress` IPC event. The cache is a `Map<repoPath::remote, Promise<void>>` + 30s success-only timestamp on `OrcaRuntimeService` (§7.1 — shared with dispatch). 2. Dispatch pre-flight drift guard in `Coordinator.dispatchTask`: probes `rev-list --left-right --count` against the target worktree and silently returns (preserves `ready`, no circuit-breaker burn) when `behind > 20` unless the task spec carries `allow-stale-base: true`. Parsing strips the flag so it never leaks into the worker's `--- TASK ---` block. 3. Preamble drift section: populated only when dispatch detected drift. Workers see `--- BASE DRIFT ---` with the N-most-recent subjects they don't have, so they can pull them in before running. 4. §3.3 Lifecycle: `.finally()` evicts Map entries on BOTH success and rejection; timestamp is written ONLY on success. Prevents a single DNS hiccup from wedging every future create on the repo until restart, and keeps the freshness window honest. Defers the DB `allow_stale_base` column (§0.2) and the create-time warn toast; both can layer in later without migration. Tests: 35 new/updated unit tests covering drift preamble, dispatch refusal, spec-text flag parsing, fetch Map eviction after rejection, freshness-window short-circuit, and concurrent-caller serialization. Co-authored-by: Orca <[email protected]> * test(orchestration): seed v2 DB in migration hard-fail test After consolidating the schema bump, fresh DBs are initialized directly at v3 via createTables(), so the v2→v3 ALTER TABLE is skipped on new installs and the prior test's stub never fired. Seed a v2-shape file on disk so the guarded ALTER actually runs and the "simulated migration failure" stub propagates as intended. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>
Jinwoo-H
added a commit
that referenced
this pull request
May 11, 2026
Address must-fix and should-fix findings from the parallel triple review of 26d1666: - Surface RelayVersionMismatchError to ssh.ts on initial establish() (not just reconnect), so the user sees the typed terminal error instead of silent retry on first connect (#13). - Give the sentinel timeout a 500ms grace window for the close handler to deliver exit-42, so a slow remote does not misclassify a wire-handshake mismatch as a generic timeout (#D11). - Drain the handshake decoder's residue at the handshake -> dispatcher transition on both daemon and --connect sides; pipelined frames that were coalesced with the handshake are now forwarded into the dispatcher / stdout instead of silently dropped (#A1, #A2). - Reset the install-lock acquire timer after a stale-lock recovery so a single post-recovery race does not immediately exhaust the budget (#E14). - Treat a stale install-lock as recoverable in the GC pass when .install-complete is present (covers an interrupted finalize where the rm-lock failed) (#E15). - GC legacy relay-v\d+\.\d+\.\d+ install dirs whose daemons have died, now that .install-complete is no longer required for them (#12). - Resolve symlinks in readLaunchVersion() so a daemon launched via a symlinked entry script still reads .version next to the real file (#G21). - Flush stderr before exit-42 in --connect handshake mismatch path so the diagnostic line reaches the client before the process tears down (#C8). Tests: - Round-trip handshake over a real Socket pair: matching version, mismatch exit-42, leftover bytes preserved on both sides when frames are coalesced with the handshake. - waitForSentinel exit-42 -> RelayVersionMismatchError, exit-1 -> generic. - SshRelaySession terminal-error callback fires on both establish() and reconnect() when deployAndLaunchRelay throws RelayVersionMismatchError. - acquireInstallLock concurrent BUSY -> OK polling, stale-lock recovery with reset timeout window, and fresh-lock timeout failure path. - gcOldRelayVersions stale-lock-with-complete branch, legacy-dead path, legacy-alive path; existing locked-test asserts fresh-lock now keeps. - Cross-version isolation test now asserts a blanket invariant that every v1-referencing command from a v2 deploy is a read-only liveness probe. Lint and typecheck clean across all 3 tsconfigs; 426 SSH/relay tests pass. Co-authored-by: Orca <[email protected]>
Jinwoo-H
added a commit
that referenced
this pull request
May 11, 2026
…e typing lag (#1660) (#1679) * fix(ssh): enable TCP_NODELAY on ssh2 client to eliminate per-keystroke typing lag (#1660) ssh2 leaves Nagle's algorithm on by default. For single-byte keystrokes through a remote PTY, Nagle interacts with the kernel's delayed-ACK timer and adds up to ~40 ms per keystroke — visible as the typing lag reported in #1660. OpenSSH's `ssh` client sets TCP_NODELAY whenever a PTY is allocated; this change mirrors that on the ssh2 client right after the `ready` event in doSsh2Connect, covering both initial connect and auto-reconnect. Proxy-command / proxy-jump connections (where ssh2's underlying socket is a custom Duplex over a child-process pipe) are a no-op by design, gated by the public Client.setNoDelay()'s own type guard. A discriminating log line records which path each connect took. Tests cover initial connect and a full reconnect cycle to guard against the regression class "Nagle is re-enabled because someone refactored only the initial connect path." Co-authored-by: Orca <[email protected]> * fix(ssh): bound relay-lost reconnect with exponential backoff When the relay exec channel keeps dying (e.g. a remote-side bug closes every fresh --connect channel right after handshake, or a stale bridge keeps being replaced), the unguarded _onRelayLost handler reconnects as fast as the network allows — spawning relay deploy attempts in a tight loop until the user force-quits. Each iteration spawns a fresh ssh2 exec channel, hammers sshd's MaxSessions counter, and floods the renderer with state churn. Add per-target exponential backoff (500ms → 15s, capped at 6 attempts) so the loop terminates instead of running forever. After the cap the session goes to 'error' state with a 'Relay channel kept dropping. Please reconnect.' message — visible in the renderer instead of an invisible failure where typing in remote terminals just stops working. Successful 'ready' resets the attempt counter only if the session stabilized for >= 5s; faster flaps preserve the counter so a flaky remote backs off rather than retrying indefinitely on every brief ready→lost cycle. Backoff state is cleared on explicit disconnect, on session replacement during reconnect, and on connect failures, so a real reconnect attempt after backoff exhaustion always starts from zero. Co-authored-by: Orca <[email protected]> * fix(ssh): detect stale relay daemons via running-version marker The on-disk relay version check compares local .version against the remote .version file in the relay dir. A daemon launched by an earlier deploy keeps running its in-memory copy of the OLD relay code, so when the client later rewrites relay.js + .version on disk and bridges in via --connect, the new bridge process drives a stale daemon. Protocol or behavior changes between the two versions then tear down the channel in a tight reconnect loop (observed against PR #1672 on a daemon predating that change). The daemon now writes its running version into a .running-version sidecar at startup, anchored to the relay-script directory rather than process.cwd() so test spawns cannot pollute the repo root. Before attaching to an existing socket, the client probes that marker and, on mismatch with the locally-deployed .version, kills the stale daemon (TERM only, never KILL) and falls through to a fresh launch. Conservative defaults: when either marker is unreadable, attach so older builds keep their live PTYs. Co-authored-by: Orca <[email protected]> * Revert "fix(ssh): detect stale relay daemons via running-version marker" This reverts commit e58acf0. * fix(ssh): isolate relay versions via per-version install dirs and wire handshake The relay's previous single-dir layout (~/.orca-remote/relay-v0.1.0/) let the deploy step rewrite relay.js in place while a daemon was still loaded in memory at the previous version. New clients then drove that stale daemon, surfacing as a reconnect loop (issue #1660 follow-up) and the field failure observed against an 8-day-old daemon on openclaw. Switch to a VS Code-style versioned layout where each (RELAY_VERSION + content-hash) bundle installs into its own directory and is never mutated after install. A v2 client's --connect socket path is rooted in relay-${v2-hash}/ and structurally cannot reach a v1 daemon's socket. Defense-in-depth: the daemon now reads exactly one Handshake-typed frame on each newly-accepted Unix socket before attaching the JSON-RPC dispatcher (mirrors VS Code's remoteExtensionHostAgentServer.ts:340). Mismatch closes the socket; the bridge exits with code 42; client maps that to a typed RelayVersionMismatchError and skips the relay-lost backoff loop instead of retrying through 6 attempts. Other deploy hardening: - atomic mkdir-based install lock with stale-lock recovery serialises concurrent first-installs of the same version - .install-complete sentinel distinguishes a finished install from a crashed-mid-install partial that should be retried - gcOldRelayVersions removes unreferenced sibling dirs (allowlist regex, skips locked or incomplete dirs, skips dirs with a live socket) - readLocalFullVersion fails fast on a missing/empty local .version rather than silently falling back to a path where a daemon from a different code generation may already be running Includes a cross-version isolation test that fails any future refactor which collapses the per-version layout back to a shared dir. Co-authored-by: Orca <[email protected]> * fix(ssh): harden relay versioning per review feedback Address must-fix and should-fix findings from the parallel triple review of 26d1666: - Surface RelayVersionMismatchError to ssh.ts on initial establish() (not just reconnect), so the user sees the typed terminal error instead of silent retry on first connect (#13). - Give the sentinel timeout a 500ms grace window for the close handler to deliver exit-42, so a slow remote does not misclassify a wire-handshake mismatch as a generic timeout (#D11). - Drain the handshake decoder's residue at the handshake -> dispatcher transition on both daemon and --connect sides; pipelined frames that were coalesced with the handshake are now forwarded into the dispatcher / stdout instead of silently dropped (#A1, #A2). - Reset the install-lock acquire timer after a stale-lock recovery so a single post-recovery race does not immediately exhaust the budget (#E14). - Treat a stale install-lock as recoverable in the GC pass when .install-complete is present (covers an interrupted finalize where the rm-lock failed) (#E15). - GC legacy relay-v\d+\.\d+\.\d+ install dirs whose daemons have died, now that .install-complete is no longer required for them (#12). - Resolve symlinks in readLaunchVersion() so a daemon launched via a symlinked entry script still reads .version next to the real file (#G21). - Flush stderr before exit-42 in --connect handshake mismatch path so the diagnostic line reaches the client before the process tears down (#C8). Tests: - Round-trip handshake over a real Socket pair: matching version, mismatch exit-42, leftover bytes preserved on both sides when frames are coalesced with the handshake. - waitForSentinel exit-42 -> RelayVersionMismatchError, exit-1 -> generic. - SshRelaySession terminal-error callback fires on both establish() and reconnect() when deployAndLaunchRelay throws RelayVersionMismatchError. - acquireInstallLock concurrent BUSY -> OK polling, stale-lock recovery with reset timeout window, and fresh-lock timeout failure path. - gcOldRelayVersions stale-lock-with-complete branch, legacy-dead path, legacy-alive path; existing locked-test asserts fresh-lock now keeps. - Cross-version isolation test now asserts a blanket invariant that every v1-referencing command from a v2 deploy is a read-only liveness probe. Lint and typecheck clean across all 3 tsconfigs; 426 SSH/relay tests pass. Co-authored-by: Orca <[email protected]> * fix(ssh): bypass npm init for content-hashed relay dirs and harden install probe The versioned-install dirs land at `relay-${version}+${hash}/` (e.g. `relay-0.1.0+07994a7870e1`). npm 11 / Node 26 reject the `+` in derived package names and `npm init -y` exits 1 — silently, since both stderr and the failure landed inside the `2>/dev/null && ...` chain. The catch swallowed the throw, `.install-complete` was written anyway, and every reconnect surfaced 'node-pty is not available' at first pty.spawn. Sidestep `npm init` entirely: SFTP-write a hardcoded minimal package.json (`name: orca-relay`, `type: commonjs`) and run `npm install node-pty` directly. `type: commonjs` pins the module system against future Node default flips or remote-side .npmrc overrides. Also harden the install path against the same class of silent failure: - npm install errors now propagate (no more `.install-complete` on hard fail; future reconnects retry instead of stranding the user) - Replace the weak `test -d node-pty` post-install probe with `node -e 'require("node-pty")'` so built-but-unloadable installs (missing prebuild, wrong arch, broken native binding) surface clearly - Add a session-level error handler on the SFTP write so a torn-down session rejects the promise instead of hanging until enclosing timeout Separate fix: add `for-each-ref` to the relay's git subcommand allowlist. Client code (`src/main/git/repo.ts` ref-search and worktree-listing) calls `git for-each-ref` over SSH; the relay was rejecting it. The `--shell`/`--python`/`--perl`/`--tcl` format flags only control output quoting (no eval) and the relay invokes git via execFileAsync (no shell), so the read-only allowlist treatment matches `rev-parse`, `log`, etc. Co-authored-by: Orca <[email protected]> * comment(ssh-relay): TODO link to #1693 for VS Code-style pre-bundled node-pty Co-authored-by: Orca <[email protected]> * fix(ssh): harden node-pty install probe and tighten review-fix tests Round-3 review fixes on top of 963f56d. deploy.ts: - Replace endsWith('OK') with includes('ORCA-NPTY-PROBE-OK'). Node can emit deprecation/experimental warnings to stderr after our stdout 'OK' write, and 2>&1 would push them past 'OK' producing false NPTY-MISSING warnings. A unique sentinel survives any trailing stderr noise. - Switch sftpPkg/ws .on -> .once for error/close. A late session 'error' after the promise had already settled would otherwise become an unhandled EventEmitter error and crash main. - Trim per-block comments to 1-2 lines per AGENTS.md (was 7-9). Tests: - Pin the BEFORE-ordering contract: SftpWriteCapture now records the count of execCommand calls observed at the moment ws.end() ran for each path, and the test asserts that count <= the index of npm install. Catches a future Promise.all-style refactor that would still pass final-state checks. - Strengthen the SSH-channel-failure test: assert the rejection actually came from the probe call (not an earlier exec) by finding the probe invocation in mock.calls. Also assert NPTY-INSTALL-FAIL is NOT logged (channel failure must not be conflated with install failure) and that abandonInstall was called so the lock is released. - Fix misleading clearAllMocks comment: it claims to wipe mockReturnValue, but actually clearAllMocks only resets .mock.calls. Re-priming was defense-in-depth, not a correctness requirement. Validator: - Add for-each-ref negative cases (--git-dir, --output, --work-tree) to the global-denied-flags it.each. The first round of for-each-ref enablement trusted that the post-subcommand GLOBAL_DENIED_FLAGS check applied; this pins it so a future allowlist refactor that bypasses the global check fails loudly. Co-authored-by: Orca <[email protected]> * fix(ssh): split node-pty probe into test-d guard + load-test Round-4 review fixes for the install probe in installNativeDeps: (1) test -d guard runs before the load-test. If the install dir vanished between npm install and probe (concurrent rm, fs unmount, permission flip), the deploy now throws and the next reconnect retries fresh — previously the cd failure flowed into '|| echo MISSING' and we'd write .install-complete, stranding the user in degraded mode. (2) Load-test discards stderr (2>/dev/null) so customized .bashrc output (NVM init, conda greetings, etc.) can't pollute the sentinel match. The shell-level '|| echo MISSING' is preserved so SSH-channel rejections still propagate as exec errors, distinct from require failures which exit the node process nonzero. (3) PROBE_OK is passed via process.argv[1] so the JS literal stays trivial regardless of future sentinel characters. Test changes: - New 'dir-gone' probe mode in makeExecResponses - New test pinning that vanished-dir throws (not silent MISSING) - SSH-channel test now asserts probeCallIdx > npmInstallIdx - cross-version-isolation feeds an extra '' for the test -d slot Co-authored-by: Orca <[email protected]> * fix(ssh): simplify node-pty probe and harden test ordering pins Round-5 review fixes for installNativeDeps: Production: - Drop redundant test -d guard. `cd ${dir} && (...)` short-circuits on cd-failure (dir-vanished) and propagates as exec reject already; the separate guard added a round trip without preventing anything. - Capture probe stderr to a per-deploy file rather than 2>&1 or 2>/dev/null. .bashrc noise can't pollute the sentinel match, but the require() error message is preserved in the [NPTY-MISSING] log breadcrumb so bug reports point at the real cause (e.g. GLIBC version mismatch). - Mirror the install command's PATH (export PATH=${binDir}:$PATH) so any future require-time child_process call resolves the same node binary used during install. - Add platform tuple to [NPTY-MISSING] and [NPTY-INSTALL-FAIL] logs for triageable bug reports without asking users to dig out their arch. - Trim probe comment per AGENTS.md (why-only, no mechanism narration). Tests: - Pin full installNativeDeps ordering: npm install < chmod prebuilds < probe. Catches refactors that probe before install or move chmod after. - Pressure-test .includes(PROBE_OK) survives bashrc/MOTD noise prefixed to probe stdout (corporate banner / NVM init / conda greeting case). - Pressure-test MISSING detection survives Node deprecation warnings prepended to the MISSING token. - Pin platform tuple appears in [NPTY-MISSING] log. - Pin finalizeInstall called exactly once + abandonInstall not called on happy paths; reverse on failure paths. - Strengthen dir-gone test: assert probeIdx > npmInstallIdx so a refactor that swaps order doesn't silently let the test pass on its own injected error string. - New probeStdoutOverride option in makeExecResponses for shell-noise injection tests. Cross-version-isolation: dropped obsolete test -d slot, added rm-stderr cleanup slot to match the new probe shape. eslint-disable max-lines on both files with rationale (pattern used widely in this repo for cohesive single-responsibility modules). 441/441 tests pass; lint clean; typecheck clean. Probe shape verified end-to-end on real remote. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>
Mi0uno
added a commit
to Mi0uno/orca
that referenced
this pull request
Jul 29, 2026
- Gate track-community-pr on stablyai/orca: the job authenticates as the stablyai bufo-bot App and writes to stablyai project stablyai#13, but the fork has no BUFO_BOT_PRIVATE_KEY secret, so create-github-app-token failed on every fork PR. - Retry the Electron native rebuild in rebuild-native-deps.mjs to ride out transient node-gyp header download timeouts (ETIMEDOUT to electronjs.org), which failed the package job and cascaded into verify. Retry skips Windows file-lock failures and is bounded/configurable via ORCA_NATIVE_REBUILD_RETRY_DELAYS_MS.
Mi0uno
added a commit
to Mi0uno/orca
that referenced
this pull request
Jul 29, 2026
The job generates a bufo-bot app token (BUFO_BOT_PRIVATE_KEY) and pushes into the stablyai org project stablyai#13 — inputs that only exist upstream, so on forks it fails at token generation and drags the verify gate red. Guard it with `if: github.repository == 'stablyai/orca'` (same pattern as release-cut.yml). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Mi0uno
added a commit
to Mi0uno/orca
that referenced
this pull request
Aug 7, 2026
- Gate track-community-pr on stablyai/orca: the job authenticates as the stablyai bufo-bot App and writes to stablyai project stablyai#13, but the fork has no BUFO_BOT_PRIVATE_KEY secret, so create-github-app-token failed on every fork PR. - Retry the Electron native rebuild in rebuild-native-deps.mjs to ride out transient node-gyp header download timeouts (ETIMEDOUT to electronjs.org), which failed the package job and cascaded into verify. Retry skips Windows file-lock failures and is bounded/configurable via ORCA_NATIVE_REBUILD_RETRY_DELAYS_MS.
Mi0uno
added a commit
to Mi0uno/orca
that referenced
this pull request
Aug 7, 2026
The job generates a bufo-bot app token (BUFO_BOT_PRIVATE_KEY) and pushes into the stablyai org project stablyai#13 — inputs that only exist upstream, so on forks it fails at token generation and drags the verify gate red. Guard it with `if: github.repository == 'stablyai/orca'` (same pattern as release-cut.yml). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Merged
3 tasks done
5 tasks done
Jinwoo-H
added a commit
that referenced
this pull request
Sep 4, 2026
Jinwoo-H
added a commit
that referenced
this pull request
Sep 4, 2026
Jinwoo-H
added a commit
that referenced
this pull request
Sep 4, 2026
Jinwoo-H
added a commit
that referenced
this pull request
Sep 4, 2026
scolety1
added a commit
to scolety1/orca
that referenced
this pull request
Sep 11, 2026
Documents the fresh 2-pass stability sequence run after finding stablyai#18 reset the counter: 3 consecutive real OOM kills (runs stablyai#13/stablyai#14/stablyai#15, each retried per the owner's own explicit >95%-used-only memory rule, never blindly), then Pass stablyai#1 (run stablyai#16, PASS) and Pass stablyai#2 (run stablyai#17, PASS -- 2 new-signature failures isolated-confirmed clean, 7/7, before being accepted as resource-contention artifacts, never hand-waved). Updates the session-status header, §12 stability declaration, §13 SHA ledger, §17 next-highest-value work, and the terminal declaration block to reflect STABILITY_PASS = 2 of 2 at current tip SHA c51e61c. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CdU7C6R8tKG5diqfdjNCPp
scolety1
added a commit
to scolety1/orca
that referenced
this pull request
Sep 11, 2026
Re-confirmed by direct code reading (not just citing the prior mission's own finding stablyai#13 disclosure): server/self-improvement- adoption.mjs's attemptRepairAdoption had NEITHER of command-adoption- execution.mjs's own two real safety properties -- (1) no per-project lock around its read-readiness-then-merge sequence (the exact TOCTOU shape findings stablyai#12/stablyai#14 fixed on the main path), and (2) zero project- execution-hold awareness at all (a real, active hold an operator set specifically to stop work on a project was silently ignored, never checked). Fixed by reusing the SAME proven primitives directly -- no new mechanism: - Exported withAdoptionLock from command-adoption-execution.mjs. attemptRepairAdoption now wraps its entire body in it, keyed by finding.projectId ?? missionId -- the SAME lock path convention the main path uses, so a main-path adoption and a self-improvement repair adoption for the SAME project correctly serialize against EACH OTHER too, not just against themselves. - assessRepairAdoptionReadiness gains a holdActive parameter (default false, backward compatible), folded into its existing blocker list. - A fresh hold re-check runs immediately before the real merge, mirroring the main path's own exact pattern -- catches a hold that appeared while the several awaited git subprocess round-trips were still in flight, refusing on current state, never stale state. Real bug caught and fixed during this fix's own verification: a missionId can contain colons (e.g. "mission:selfimprove:fixture"), invalid in a Windows file path segment -- adoptionExecutionLockPath now sanitizes its key. Live-reproduced (ENOENT) before fixing, not guessed. 5 new regression tests covering the owner's own explicit test list: competing adoption (real mutual exclusion via the shared lock), cross-engine lock (main-path + self-improvement serialize against each other), hold appears mid-flight, hold already active upfront, and the colon-safe lock-key fallback. Mutation-verified: disabling the fresh hold re-check reproduced exactly 1 new test failing, 0 others. 126 relevant tests clean (self-improvement-adoption / self-improvement-adoption-readiness / command-adoption-execution / self-improvement-adoption-authorization-gate). Autonomous self-improvement adoption stays DISABLED throughout -- this makes the path correct and consistent with the main path's own safety envelope for whenever it IS reachable; the GATE_CLOSED check, unchanged, still runs first and still blocks every real production path today. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CdU7C6R8tKG5diqfdjNCPp
sinkerine
added a commit
to sinkerine/orca
that referenced
this pull request
Sep 12, 2026
Contributor
scolety1
added a commit
to scolety1/orca
that referenced
this pull request
Sep 15, 2026
… -- resolved, verified, adoption status Moves Findings stablyai#2-stablyai#11 to Resolved with real worktree commit SHAs and live browser-dogfood evidence (isolated disposable runtime, real owner instance never touched); re-verifies Findings stablyai#12/stablyai#13/stablyai#14/stablyai#16 as still Good As-Is; honestly flags stablyai#15 as not independently re-exercised (no active research mission in the fixture data used) but unregressed (no file in this diff touches that code path). Records adoption status: implemented and tested in the isolated worktree, not yet merged to canonical tsf/main. Discloses three real, pre-existing gaps found while verifying this batch, none introduced by it: the Projects-grid LifecycleBadge still computing a separate 8-bucket vocabulary (Findings stablyai#5/stablyai#11's own "apply consistently everywhere" requirement, not fully met on that one surface); a divergence between Command's NEEDS_YOU_QUERY and HQ's own Needs You count (two separate, pre-existing aggregation systems); and a genuine-directive/question- awareness gap in domain/command-act-model.mjs's VERB_REGISTRY decomposer, found via a real Codex adversarial-review dispatch and independently re-verified live (a question like "Should I put X on hold?" can set a real hold) -- pre-existing across the whole mechanism, not specific to this batch's own two new hold-phrase additions, and out of scope for a UI-findings batch to fix. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CdU7C6R8tKG5diqfdjNCPp
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Co-authored-by: Claude Opus 4.6 <[email protected]>
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
…reamble+ask, QoL (stablyai#1403) * feat(orchestration): transport keepalive + delivered_at split for check --wait Implements the four §3 fixes from the check-wait design doc: - §3.1 Transport keepalive: long-poll RPCs (orchestration.check --wait) emit `{"_keepalive":true}` frames every 10s so neither server nor client tears the socket down on idle. A `longPoll` admission counter capped at 16 fails fast with `runtime_busy` when saturated; an AbortController wired through the RPC dispatcher cancels the inner waiter the moment the socket closes. - §3.2 delivered_at split: push-on-idle now stamps `delivered_at` instead of flipping `read`, so the check caller remains the sole consumer of its queue. Adds a synchronous idempotent schema migration that hard-fails on error. - §3.3 inbox/check parity: `orchestration inbox --terminal <handle>` and `orchestration check --all` agree on the same rows (sequence DESC, no mark-read). `check --unread=false` kept for one release as a compat shim. - §3.4 CLI heartbeat: `orca orchestration check --wait` emits JSON heartbeat lines to stderr every 15s so Claude Code's Bash tool sees continuous output and doesn't auto-background the subprocess. Tests: extends runtime-rpc, orca-runtime, envelope-schema, orchestration method, and formatter suites; adds a subprocess test that spawns the built CLI and verifies stderr line-flushing, heartbeat cadence, and stdout cleanliness end-to-end. Co-authored-by: Orca <[email protected]> * feat(orchestration): preamble rules + heartbeat schema - Preamble (stablyai#7, stablyai#15, stablyai#9): worker_done body ("3-sentence summary" + reportPath), BEHAVIOR RULE stablyai#1 forbidding AskUserQuestion, heartbeat every 5 minutes with taskId+dispatchId payload, AFTER YOU SEND grace window. - Schema v2 migration: adds 'heartbeat' to messages.type CHECK, adds dispatch_contexts.last_heartbeat_at, gated by user_version PRAGMA with transactional rebuild + explicit CREATE INDEX to avoid silent perf regress. - DB helpers: recordHeartbeat (dispatched-only), getStaleDispatches, getThreadMessagesFor (thread+handle scoped for ask). Co-authored-by: Orca <[email protected]> * feat(orchestration): coordinator heartbeat + stale detector Handle incoming 'heartbeat' messages by calling recordHeartbeat keyed on payload.dispatchId (strict — log-and-skip if missing, no taskId fallback so a straggler heartbeat from a previously-failed dispatch cannot mask a hung retry per §5.3.4). On every tick after the 10-minute threshold, emit one log per stale dispatched row — no auto-fail. Also threads dispatchId through buildDispatchPreamble so workers can attribute their heartbeats back to the correct dispatch context. Co-authored-by: Orca <[email protected]> * feat(orchestration): orca orchestration ask verb Adds a CLI verb that sends a decision_gate message and blocks on the coordinator's reply, scoped to the outbound message's thread. Group addresses (@ALL, @idle, …) are rejected — fan-out questions must use send --type decision_gate explicitly. --json emits bare single-line JSON (bypassing printResult) so workers can pipe `orca orchestration ask … --json | jq -r .answer` without unwrapping an RPC envelope; human mode prints just the answer. On timeout the verb exits 1 and returns {answer: null, timedOut: true}. This is the CLI surface BEHAVIOR RULE stablyai#1 in the dispatch preamble points workers at instead of AskUserQuestion. Co-authored-by: Orca <[email protected]> * feat(orchestration): QoL bundle — preamble visibility, status enum, dispatch cross-ref, inbox --full Addresses four items from ORCHESTRATOR_FEEDBACK: - stablyai#5 preamble visibility: `dispatch-show --preamble` regenerates the preamble text for a task; `dispatch --inject --dry-run` previews without mutating state; `dispatch --return-preamble` echoes the injected preamble in the JSON response so coordinators can audit what a worker received. - stablyai#6 status enum validation: CLI rejects unknown `task-update --status` values with `invalid status '<x>', expected one of: pending, ready, dispatched, completed, failed, blocked` before the RPC's generic Zod message. Valid statuses are listed under Notes in `task-update --help`. - stablyai#13 task-list dispatch cross-ref: `task-list --json` now includes `assignee_handle` and `dispatch_id` for tasks in status=dispatched via a read-only LEFT JOIN on dispatch_contexts. Non-dispatched rows keep their legacy shape so existing consumers are unaffected. - stablyai#14 inbox body visibility: `inbox --full` prints body + payload verbatim; default output is unchanged (id/from/to/subject only). No DB migrations; join-only change on dispatch_contexts so the sibling preamble PR's `last_heartbeat_at` column addition will not conflict. Co-authored-by: Orca <[email protected]> * fix(worktree): prevent stale-base worktree creation and dispatch Addresses feedback stablyai#16 per DESIGN_DOC_STALE_BASE_FIX.md §0. Four v1 components coordinated by a single shared fetch cache on the runtime: 1. Concurrent-fetch-with-gate in UI create path: `createLocalWorktree` fires `git fetch` BEFORE the suffix loop / PR probe / path resolution, then awaits right before `addWorktree` so the new branch always spawns from a fresh remote tip. Renderer sees a two-phase spinner via the new `createWorktree:progress` IPC event. The cache is a `Map<repoPath::remote, Promise<void>>` + 30s success-only timestamp on `OrcaRuntimeService` (§7.1 — shared with dispatch). 2. Dispatch pre-flight drift guard in `Coordinator.dispatchTask`: probes `rev-list --left-right --count` against the target worktree and silently returns (preserves `ready`, no circuit-breaker burn) when `behind > 20` unless the task spec carries `allow-stale-base: true`. Parsing strips the flag so it never leaks into the worker's `--- TASK ---` block. 3. Preamble drift section: populated only when dispatch detected drift. Workers see `--- BASE DRIFT ---` with the N-most-recent subjects they don't have, so they can pull them in before running. 4. §3.3 Lifecycle: `.finally()` evicts Map entries on BOTH success and rejection; timestamp is written ONLY on success. Prevents a single DNS hiccup from wedging every future create on the repo until restart, and keeps the freshness window honest. Defers the DB `allow_stale_base` column (§0.2) and the create-time warn toast; both can layer in later without migration. Tests: 35 new/updated unit tests covering drift preamble, dispatch refusal, spec-text flag parsing, fetch Map eviction after rejection, freshness-window short-circuit, and concurrent-caller serialization. Co-authored-by: Orca <[email protected]> * test(orchestration): seed v2 DB in migration hard-fail test After consolidating the schema bump, fresh DBs are initialized directly at v3 via createTables(), so the v2→v3 ALTER TABLE is skipped on new installs and the prior test's stub never fired. Seed a v2-shape file on disk so the guarded ALTER actually runs and the "simulated migration failure" stub propagates as intended. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
…e typing lag (stablyai#1660) (stablyai#1679) * fix(ssh): enable TCP_NODELAY on ssh2 client to eliminate per-keystroke typing lag (stablyai#1660) ssh2 leaves Nagle's algorithm on by default. For single-byte keystrokes through a remote PTY, Nagle interacts with the kernel's delayed-ACK timer and adds up to ~40 ms per keystroke — visible as the typing lag reported in stablyai#1660. OpenSSH's `ssh` client sets TCP_NODELAY whenever a PTY is allocated; this change mirrors that on the ssh2 client right after the `ready` event in doSsh2Connect, covering both initial connect and auto-reconnect. Proxy-command / proxy-jump connections (where ssh2's underlying socket is a custom Duplex over a child-process pipe) are a no-op by design, gated by the public Client.setNoDelay()'s own type guard. A discriminating log line records which path each connect took. Tests cover initial connect and a full reconnect cycle to guard against the regression class "Nagle is re-enabled because someone refactored only the initial connect path." Co-authored-by: Orca <[email protected]> * fix(ssh): bound relay-lost reconnect with exponential backoff When the relay exec channel keeps dying (e.g. a remote-side bug closes every fresh --connect channel right after handshake, or a stale bridge keeps being replaced), the unguarded _onRelayLost handler reconnects as fast as the network allows — spawning relay deploy attempts in a tight loop until the user force-quits. Each iteration spawns a fresh ssh2 exec channel, hammers sshd's MaxSessions counter, and floods the renderer with state churn. Add per-target exponential backoff (500ms → 15s, capped at 6 attempts) so the loop terminates instead of running forever. After the cap the session goes to 'error' state with a 'Relay channel kept dropping. Please reconnect.' message — visible in the renderer instead of an invisible failure where typing in remote terminals just stops working. Successful 'ready' resets the attempt counter only if the session stabilized for >= 5s; faster flaps preserve the counter so a flaky remote backs off rather than retrying indefinitely on every brief ready→lost cycle. Backoff state is cleared on explicit disconnect, on session replacement during reconnect, and on connect failures, so a real reconnect attempt after backoff exhaustion always starts from zero. Co-authored-by: Orca <[email protected]> * fix(ssh): detect stale relay daemons via running-version marker The on-disk relay version check compares local .version against the remote .version file in the relay dir. A daemon launched by an earlier deploy keeps running its in-memory copy of the OLD relay code, so when the client later rewrites relay.js + .version on disk and bridges in via --connect, the new bridge process drives a stale daemon. Protocol or behavior changes between the two versions then tear down the channel in a tight reconnect loop (observed against PR stablyai#1672 on a daemon predating that change). The daemon now writes its running version into a .running-version sidecar at startup, anchored to the relay-script directory rather than process.cwd() so test spawns cannot pollute the repo root. Before attaching to an existing socket, the client probes that marker and, on mismatch with the locally-deployed .version, kills the stale daemon (TERM only, never KILL) and falls through to a fresh launch. Conservative defaults: when either marker is unreadable, attach so older builds keep their live PTYs. Co-authored-by: Orca <[email protected]> * Revert "fix(ssh): detect stale relay daemons via running-version marker" This reverts commit e58acf0. * fix(ssh): isolate relay versions via per-version install dirs and wire handshake The relay's previous single-dir layout (~/.orca-remote/relay-v0.1.0/) let the deploy step rewrite relay.js in place while a daemon was still loaded in memory at the previous version. New clients then drove that stale daemon, surfacing as a reconnect loop (issue stablyai#1660 follow-up) and the field failure observed against an 8-day-old daemon on openclaw. Switch to a VS Code-style versioned layout where each (RELAY_VERSION + content-hash) bundle installs into its own directory and is never mutated after install. A v2 client's --connect socket path is rooted in relay-${v2-hash}/ and structurally cannot reach a v1 daemon's socket. Defense-in-depth: the daemon now reads exactly one Handshake-typed frame on each newly-accepted Unix socket before attaching the JSON-RPC dispatcher (mirrors VS Code's remoteExtensionHostAgentServer.ts:340). Mismatch closes the socket; the bridge exits with code 42; client maps that to a typed RelayVersionMismatchError and skips the relay-lost backoff loop instead of retrying through 6 attempts. Other deploy hardening: - atomic mkdir-based install lock with stale-lock recovery serialises concurrent first-installs of the same version - .install-complete sentinel distinguishes a finished install from a crashed-mid-install partial that should be retried - gcOldRelayVersions removes unreferenced sibling dirs (allowlist regex, skips locked or incomplete dirs, skips dirs with a live socket) - readLocalFullVersion fails fast on a missing/empty local .version rather than silently falling back to a path where a daemon from a different code generation may already be running Includes a cross-version isolation test that fails any future refactor which collapses the per-version layout back to a shared dir. Co-authored-by: Orca <[email protected]> * fix(ssh): harden relay versioning per review feedback Address must-fix and should-fix findings from the parallel triple review of 26d1666: - Surface RelayVersionMismatchError to ssh.ts on initial establish() (not just reconnect), so the user sees the typed terminal error instead of silent retry on first connect (stablyai#13). - Give the sentinel timeout a 500ms grace window for the close handler to deliver exit-42, so a slow remote does not misclassify a wire-handshake mismatch as a generic timeout (#D11). - Drain the handshake decoder's residue at the handshake -> dispatcher transition on both daemon and --connect sides; pipelined frames that were coalesced with the handshake are now forwarded into the dispatcher / stdout instead of silently dropped (#A1, #A2). - Reset the install-lock acquire timer after a stale-lock recovery so a single post-recovery race does not immediately exhaust the budget (#E14). - Treat a stale install-lock as recoverable in the GC pass when .install-complete is present (covers an interrupted finalize where the rm-lock failed) (#E15). - GC legacy relay-v\d+\.\d+\.\d+ install dirs whose daemons have died, now that .install-complete is no longer required for them (stablyai#12). - Resolve symlinks in readLaunchVersion() so a daemon launched via a symlinked entry script still reads .version next to the real file (#G21). - Flush stderr before exit-42 in --connect handshake mismatch path so the diagnostic line reaches the client before the process tears down (#C8). Tests: - Round-trip handshake over a real Socket pair: matching version, mismatch exit-42, leftover bytes preserved on both sides when frames are coalesced with the handshake. - waitForSentinel exit-42 -> RelayVersionMismatchError, exit-1 -> generic. - SshRelaySession terminal-error callback fires on both establish() and reconnect() when deployAndLaunchRelay throws RelayVersionMismatchError. - acquireInstallLock concurrent BUSY -> OK polling, stale-lock recovery with reset timeout window, and fresh-lock timeout failure path. - gcOldRelayVersions stale-lock-with-complete branch, legacy-dead path, legacy-alive path; existing locked-test asserts fresh-lock now keeps. - Cross-version isolation test now asserts a blanket invariant that every v1-referencing command from a v2 deploy is a read-only liveness probe. Lint and typecheck clean across all 3 tsconfigs; 426 SSH/relay tests pass. Co-authored-by: Orca <[email protected]> * fix(ssh): bypass npm init for content-hashed relay dirs and harden install probe The versioned-install dirs land at `relay-${version}+${hash}/` (e.g. `relay-0.1.0+07994a7870e1`). npm 11 / Node 26 reject the `+` in derived package names and `npm init -y` exits 1 — silently, since both stderr and the failure landed inside the `2>/dev/null && ...` chain. The catch swallowed the throw, `.install-complete` was written anyway, and every reconnect surfaced 'node-pty is not available' at first pty.spawn. Sidestep `npm init` entirely: SFTP-write a hardcoded minimal package.json (`name: orca-relay`, `type: commonjs`) and run `npm install node-pty` directly. `type: commonjs` pins the module system against future Node default flips or remote-side .npmrc overrides. Also harden the install path against the same class of silent failure: - npm install errors now propagate (no more `.install-complete` on hard fail; future reconnects retry instead of stranding the user) - Replace the weak `test -d node-pty` post-install probe with `node -e 'require("node-pty")'` so built-but-unloadable installs (missing prebuild, wrong arch, broken native binding) surface clearly - Add a session-level error handler on the SFTP write so a torn-down session rejects the promise instead of hanging until enclosing timeout Separate fix: add `for-each-ref` to the relay's git subcommand allowlist. Client code (`src/main/git/repo.ts` ref-search and worktree-listing) calls `git for-each-ref` over SSH; the relay was rejecting it. The `--shell`/`--python`/`--perl`/`--tcl` format flags only control output quoting (no eval) and the relay invokes git via execFileAsync (no shell), so the read-only allowlist treatment matches `rev-parse`, `log`, etc. Co-authored-by: Orca <[email protected]> * comment(ssh-relay): TODO link to stablyai#1693 for VS Code-style pre-bundled node-pty Co-authored-by: Orca <[email protected]> * fix(ssh): harden node-pty install probe and tighten review-fix tests Round-3 review fixes on top of 963f56d. deploy.ts: - Replace endsWith('OK') with includes('ORCA-NPTY-PROBE-OK'). Node can emit deprecation/experimental warnings to stderr after our stdout 'OK' write, and 2>&1 would push them past 'OK' producing false NPTY-MISSING warnings. A unique sentinel survives any trailing stderr noise. - Switch sftpPkg/ws .on -> .once for error/close. A late session 'error' after the promise had already settled would otherwise become an unhandled EventEmitter error and crash main. - Trim per-block comments to 1-2 lines per AGENTS.md (was 7-9). Tests: - Pin the BEFORE-ordering contract: SftpWriteCapture now records the count of execCommand calls observed at the moment ws.end() ran for each path, and the test asserts that count <= the index of npm install. Catches a future Promise.all-style refactor that would still pass final-state checks. - Strengthen the SSH-channel-failure test: assert the rejection actually came from the probe call (not an earlier exec) by finding the probe invocation in mock.calls. Also assert NPTY-INSTALL-FAIL is NOT logged (channel failure must not be conflated with install failure) and that abandonInstall was called so the lock is released. - Fix misleading clearAllMocks comment: it claims to wipe mockReturnValue, but actually clearAllMocks only resets .mock.calls. Re-priming was defense-in-depth, not a correctness requirement. Validator: - Add for-each-ref negative cases (--git-dir, --output, --work-tree) to the global-denied-flags it.each. The first round of for-each-ref enablement trusted that the post-subcommand GLOBAL_DENIED_FLAGS check applied; this pins it so a future allowlist refactor that bypasses the global check fails loudly. Co-authored-by: Orca <[email protected]> * fix(ssh): split node-pty probe into test-d guard + load-test Round-4 review fixes for the install probe in installNativeDeps: (1) test -d guard runs before the load-test. If the install dir vanished between npm install and probe (concurrent rm, fs unmount, permission flip), the deploy now throws and the next reconnect retries fresh — previously the cd failure flowed into '|| echo MISSING' and we'd write .install-complete, stranding the user in degraded mode. (2) Load-test discards stderr (2>/dev/null) so customized .bashrc output (NVM init, conda greetings, etc.) can't pollute the sentinel match. The shell-level '|| echo MISSING' is preserved so SSH-channel rejections still propagate as exec errors, distinct from require failures which exit the node process nonzero. (3) PROBE_OK is passed via process.argv[1] so the JS literal stays trivial regardless of future sentinel characters. Test changes: - New 'dir-gone' probe mode in makeExecResponses - New test pinning that vanished-dir throws (not silent MISSING) - SSH-channel test now asserts probeCallIdx > npmInstallIdx - cross-version-isolation feeds an extra '' for the test -d slot Co-authored-by: Orca <[email protected]> * fix(ssh): simplify node-pty probe and harden test ordering pins Round-5 review fixes for installNativeDeps: Production: - Drop redundant test -d guard. `cd ${dir} && (...)` short-circuits on cd-failure (dir-vanished) and propagates as exec reject already; the separate guard added a round trip without preventing anything. - Capture probe stderr to a per-deploy file rather than 2>&1 or 2>/dev/null. .bashrc noise can't pollute the sentinel match, but the require() error message is preserved in the [NPTY-MISSING] log breadcrumb so bug reports point at the real cause (e.g. GLIBC version mismatch). - Mirror the install command's PATH (export PATH=${binDir}:$PATH) so any future require-time child_process call resolves the same node binary used during install. - Add platform tuple to [NPTY-MISSING] and [NPTY-INSTALL-FAIL] logs for triageable bug reports without asking users to dig out their arch. - Trim probe comment per AGENTS.md (why-only, no mechanism narration). Tests: - Pin full installNativeDeps ordering: npm install < chmod prebuilds < probe. Catches refactors that probe before install or move chmod after. - Pressure-test .includes(PROBE_OK) survives bashrc/MOTD noise prefixed to probe stdout (corporate banner / NVM init / conda greeting case). - Pressure-test MISSING detection survives Node deprecation warnings prepended to the MISSING token. - Pin platform tuple appears in [NPTY-MISSING] log. - Pin finalizeInstall called exactly once + abandonInstall not called on happy paths; reverse on failure paths. - Strengthen dir-gone test: assert probeIdx > npmInstallIdx so a refactor that swaps order doesn't silently let the test pass on its own injected error string. - New probeStdoutOverride option in makeExecResponses for shell-noise injection tests. Cross-version-isolation: dropped obsolete test -d slot, added rm-stderr cleanup slot to match the new probe shape. eslint-disable max-lines on both files with rationale (pattern used widely in this repo for cohesive single-responsibility modules). 441/441 tests pass; lint clean; typecheck clean. Probe shape verified end-to-end on real remote. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>
This was referenced Oct 26, 2026
This was referenced Oct 26, 2026
Merged
fix(mobile): use desktop's rules for queued messages, turn status, Stop and the chat composer
#34000
Merged
This was referenced Nov 18, 2026
This was referenced Nov 25, 2026
nwparker
pushed a commit
to dbsghdz1/orca
that referenced
this pull request
Nov 25, 2026
Five Korean UI lines are built by appending a translated piece to other text, and the code relies on the leading or trailing space the piece carries. The Korean values had dropped that space, so the joined text ran together (e.g. "5시간— 2시간 후 초기화", "포함됨: stablyai#12, stablyai#13.GitHub는 ..."). Restore the spacing in 9 ko.json values, use the particle "와 " for the skill delete join, show the Warp theme source as " ({{value0}})", and pin every changed value in locale-ko-key-overrides.json so catalog repair keeps them. Fixes stablyai#48948
nwparker
pushed a commit
that referenced
this pull request
Nov 25, 2026
…#48949) Five Korean UI lines are built by appending a translated piece to other text, and the code relies on the leading or trailing space the piece carries. The Korean values had dropped that space, so the joined text ran together (e.g. "5시간— 2시간 후 초기화", "포함됨: #12, #13.GitHub는 ..."). Restore the spacing in 9 ko.json values, use the particle "와 " for the skill delete join, show the Warp theme source as " ({{value0}})", and pin every changed value in locale-ko-key-overrides.json so catalog repair keeps them. Fixes #48948
Kotori0629
referenced
this pull request
in Kotori0629/orca
Nov 26, 2026
* fix(bots): keep card highlights off the Bots list scrollbar (#48827) The Bots list and its search results padded only their left edge, so a selected or hovered card's background ran straight into the always-on 6px scrollbar. Pad the right edge by the same 4px the Projects list uses. Fixes #48826 * fix(chat): keep the chat-open error card until Dismiss or Retry (#48833) * fix(chat): keep the chat-open error card until Dismiss or Retry Opaque card with the error icon, a collapsed Show details disclosure and right-aligned Dismiss/Retry. Re-shown on resize so opening the details no longer pushes Retry off the toaster. * fix(chat): let a still-starting notice replace the error card Sonner merges a reused toast id into the live toast, so the info toast kept the card's content and endless duration. Drop the nested alert role. * fix(chat): drop a replaced still-starting notice's info icon from the card --------- Co-authored-by: m4air <[email protected]> * feat(bots): set up WSL distros from the Computer picker (#48818) * feat(bots): set up WSL distros from the Computer picker * fix: design system and timer ratchet * fix(bots): keep verbatim WSL setup errors behind Details; cap the distro list height * fix(bots): hold the WSL list open across the gap, keyboard into it, unstick setup, wake sleeping picks * test: annotate the fixture cast * fix(run-target): focus the first distro even when the list mounts a frame late * refactor: move the focus retry out of the component * fix(bots): wake a sleeping pick once, follow main's connect, keep the WSL list through diagonal paths and Escape * refactor: delayed submenu close as a hook * fix(run-target): keep the WSL list open while the pointer heads for it * fix(bots): wake through the shared start, re-read the host when main finishes, ignore stale wakes * fix(build): keep ajv out of the packaged main bundle for shared MCP servers (#48851) The shared server process used the SDK's Client and Server, which build its ajv JSON Schema validator; ajv's generated-code require strings then failed the packaged-main runtime-deps check. Both ends are now bare Protocol peers. Every non-test change under src/main/mcp-servers/ now runs the package jobs. * fix(build): don't count ajv's codegen strings as packaged main imports (#48849) * fix(build): don't count ajv's codegen strings as packaged main imports The packaged main-bundle check found bare imports with a regex, so the require("ajv/...") text that ajv keeps for its standalone code generator counted as runtime imports once the MCP SDK's Client and Server reached main (#48770). Packaging then failed with "ajv, ajv-formats". ajv only reads that text in standalone mode, which the SDK never uses. The regex still finds candidates. A file with a candidate whose package isn't copied is now parsed, and only real require()/import() calls count, using the CLI runtime verifier's import reader. * fix(build): match escaped import specifiers by their decoded package * fix(app-rail): Keyboard Shortcuts from the account menu leaves focus on the account button (#48852) The menu yields its close-focus when a choice opens Settings so the page's search keeps focus. The Keyboard Shortcuts deep link turns that autofocus off and its pane takes none, so focus was left on the page body. The menu now hands focus back to its button when nothing took it a frame later, as the rail Help menu did. The account menu's UI-behaviour unit tests are removed per the repo's test policy; the name logic test stays. * feat(mcp): give agent terminals the host's MCP servers, with orca mcp exec and a restart offer (#48814) * feat(mcp): give agent terminals the host's MCP servers, with orca mcp exec and a restart offer Behind the MCP servers switch. Claude, Codex, Copilot, Amp, OpenCode and Pi terminals get the host list at spawn without Orca editing their own config, and no saved value or relay token goes on the command line. A command server with saved env runs through `orca mcp exec`, which fetches it with mcpServers.connect. mcpServers.sessions.stale and .restart count and restart terminals still on an older list. * fix(mcp): a Codex terminal's own -c mcp_servers overrides keep their names * fix(mcp): terminals reach a shared command server through the relay * fix(bots): fold settled bot chats untouched for a day under Show N older (#48722) * fix(bots): fold settled bot chats untouched for a day under Show N older in the sidebar * fix(bots): hold attention, focus, reveal and fresh outcomes when folding old chats; no new folds while the list has focus * fix(bots): keep the older toggle in place, hold rows under the pointer, fold only 2+, keep folds across remounts * i18n(bots): translate Hide older, and Show N older where it was missing * fix(bots): fold only dated settled chats; light older rows; fresh-read admission; host-qualified holds; deadline-gated clock * fix(bots): older toggle reports removal through the list's ref, not a ref written in render * fix(bots): fold holds on unread change notices, live agent panes and every undated outcome; one front-tab read per list; Open keeps the bot's host * fix(bots): fold list passes callbacks, not mutable ref props; front tab type from Tab * fix(bots): fold only with no signal of any kind and an unambiguous root; shared change-notice tracking; Open, marker and Reveal back to main * fix(bots): keep workspace ids whole in the attention read; forget a focused older chat once it lifts out * fix(bots): fold holds travel up the whole lineage graph, loops included; twin ids counted under every root * fix(bots): fold reads a working title before the card's rank; a later read clears an unread notice; admission on the wall clock * fix(agents): temporarily disable agent CLI update notification card (#48864) * fix(agent-cli-update): compact CLI updates toast; stuck updates fail with Retry (#48850) * fix(agent-cli-update): one compact CLI updates toast; stuck updates fail and can be retried The toast is one card: a download icon (spinner, check or alert by state), "N CLI updates" with a Show list toggle under it, and Later + Update N. Updating shows "Updating X of N CLIs" with Hide; failures show "K of N CLI updates failed" with Retry K; done shows "N CLIs updated" and leaves on its own. The list scrolls inside the toast, lists updatable CLIs first and hand-updated ones under Manual with Copy. An update could stay "Updating" for good: this computer's runtime calls ignore the RPC timeout, so the renderer waited as long as the updater, and the host gave an updater that never exits ten minutes. The host now stops an updater after two minutes (its whole process group) and fails it, and the renderer fails any run with no answer after three, so Retry appears. * fix(agent-cli-update): one-line titles, queued updates, one trailing status column (UX-I1) * fix(agent-cli-update): stop silent or orphaned updaters, not slow ones; late answers settle the row (C1) The host stops an updater after 3 minutes without output or 10 minutes in all, and 5 seconds after it exits when a child it left holds its output; the whole process group is still killed. The renderer deadline is back to the host cap plus margin, and a host answer that arrives after it still settles the row. "Copied" is announced to screen readers. --------- Co-authored-by: m4air <[email protected]> * fix(settings): cache remote host scope selector by catalog identity (#48866) Memoize the environment-name Zustand selector in useScopeServerName by state.runtimeEnvironments reference identity (matching WorkspaceBranchPicker) so unrelated app-store publications skip scanning the runtime environment catalog while remote-scoped Integrations or API-budget cards are mounted. Refs STA-18159, #48678 * perf(mobile): look up closing terminal handles from map in O(1) (#48869) * fix(process): start plain runProcess children off the main thread on macOS/Linux (#48600) * fix(process): start plain runProcess children on the spawn worker on macOS/Linux posix_spawn blocks its calling thread even for async spawns. Under memory/disk pressure a launch on Electron main froze every window for ~2 minutes (hang capture: main thread in uv_spawn -> __posix_spawn for 116s during worktree create). Main now installs a default runProcess launcher that hands plain piped specs to the existing child-process worker on POSIX, as Windows already does. Barrier/detached specs keep their launch on main. * fix(process): preserve tail/onStderr capture and harden POSIX worker fallback * fix(process): kill a POSIX child whose spawn worker was lost before its exit was reported * fix(codex): drop cursor payloads and bound interrupted subagents (STA-18052) (#48871) * fix(wsl): shorten WSL host dialog and settings copy (#48870) * fix(wsl): shorten WSL host dialog and settings copy * fix(wsl): name the Move to host menu item in the Add WSL distro copy * fix(computer-use): match the System Settings window by bundle id on non-English macOS (#48846) kCGWindowOwnerName is UI-localized ("系统设置" on a Chinese Mac), so the permission drag assistant never found the System Settings window, flashed for a moment at the bottom of the screen, and hid itself again. Match the window by the owner pid of the running com.apple.systempreferences processes instead, which is locale-independent. Fixes #48845 Co-authored-by: Neil <[email protected]> * fix(mobile): close only the photo viewer on system Back (#48877) In the web shell, system Back (Android back gesture, iOS edge swipe) reaches the shell's back-claim stack, not the viewer's Modal. The fullscreen image viewer claimed nothing, so Back fell through to the sheet underneath and closed the whole item instead of just the photo. The viewer now claims Back while open and runs its own close animation. Fixes #48843 * fix(terminal-pane): quiet the worker auto-close banner (#48875) * fix(terminal-pane): quiet the worker auto-close banner One muted line ("Worker · closes 2 min after finishing") with a ghost Keep open and a 2px countdown line, instead of the icon, tinted strip and filled pill. Text starts at the terminal's first column; Keep open clears the pane's floating controls. The banner and the host now read one close-delay constant. * fix(terminal-pane): put the quiet worker banner on the terminal surface Drop the "Worker" prefix so the minute count survives narrow panes. In a terminal the banner takes the pane header's surface colours instead of the app background, and its countdown line spans the terminal box. Find the floating controls by a header-only data-pane-title-leaf-id, and re-measure when the header overlay changes, so a late or changing header still clears. * fix(terminal-pane): run the worker countdown line along the banner's full bottom edge --------- Co-authored-by: m4air <[email protected]> * ci(wsl): route moved WSL IPC, daemon and host sources to the real-WSL lane (STA-13698) (#48878) * fix(process): run POSIX terminationBarrier: true runProcess children on worker thread (#48853) * fix(process): start plain runProcess children on the spawn worker on macOS/Linux posix_spawn blocks its calling thread even for async spawns. Under memory/disk pressure a launch on Electron main froze every window for ~2 minutes (hang capture: main thread in uv_spawn -> __posix_spawn for 116s during worktree create). Main now installs a default runProcess launcher that hands plain piped specs to the existing child-process worker on POSIX, as Windows already does. Barrier/detached specs keep their launch on main. * fix(process): preserve tail/onStderr capture and harden POSIX worker fallback * fix(process): run POSIX terminationBarrier: true runProcess children on worker thread * fix(process): kill a POSIX child whose spawn worker was lost before its exit was reported * test(process): cover worker loss after a barrier root's exit * fix(i18n): make Korean sentences split around inline code read correctly (#48861) Three Korean UI sentences are assembled from separately translated fragments around an inline element (branch name, remote name, session id). The fragments followed English word order, so the joined Korean read as broken grammar. Rewrite the six Korean fragments so the assembled sentences read naturally, and pin them in the ko key overrides so a catalog rebuild keeps them. Fixes #48860 Co-authored-by: Neil <[email protected]> * fix(bots): wrap long Done means and close notes in the item page (#48872) A long unbroken token (a hash, a path) in an item's Done means or its done/canceled note never broke, so the item page scrolled sideways and clipped its header and Activity. Both now wrap like the item's Markdown. Co-authored-by: m4air <[email protected]> * fix(provider-process): offload POSIX orca-provider-exec fallback spawns to worker thread (#48854) * fix(process): start plain runProcess children on the spawn worker on macOS/Linux posix_spawn blocks its calling thread even for async spawns. Under memory/disk pressure a launch on Electron main froze every window for ~2 minutes (hang capture: main thread in uv_spawn -> __posix_spawn for 116s during worktree create). Main now installs a default runProcess launcher that hands plain piped specs to the existing child-process worker on POSIX, as Windows already does. Barrier/detached specs keep their launch on main. * fix(process): preserve tail/onStderr capture and harden POSIX worker fallback * fix(process): run POSIX terminationBarrier: true runProcess children on worker thread * fix(provider-process): offload POSIX orca-provider-exec fallback spawns to worker thread * fix(process): kill a POSIX child whose spawn worker was lost before its exit was reported * test(process): cover worker loss after a barrier root's exit * test(provider-process): cover fallback when the worker cannot start the owner * Keep Codex config checks fast on Mac, Linux and Windows, and keep WSL changes in more cases (#48799) * fix(codex): skip the ~/.codex link check on clean native passes, and never lose kept WSL values * fix(codex): keep unchanged plugin tables on the native fast path, and slim an over-size guest baseline instead of freezing it * fix(codex): confirm a trusted native ~/.codex off the hot path, so a later link into a distro is set up like a probed pass * fix(codex): resolve the background ~/.codex check with the same realpath as the sync path * fix(codex): retire the native mark with a rename-over write, and resolve an untrusted source before native promotion reads * fix(codex): keep the guarded swap when retiring the native mark, and put back a baseline a cut-off swap held aside * fix(codex): treat an unreadable managed config as changed when confirming a re-point * ci(package): run packaging when a PR adds a package import to main, CLI or shared code (#48865) * ci(package): run packaging when a PR adds a package import to main, CLI or shared code #48778 and #48770 both added an MCP SDK import that only the package jobs check, and both skipped them because no listed path changed. The router now also reads the PR's diff of src/main, src/cli and src/shared and runs the package jobs when it adds a runtime import of a non-builtin package outside tests. It reads only the changed files, so the router's sparse blob:none checkout stays cheap. * ci(package): run packaging when the router can't read the PR's diff * ci(package): print the diff error's message, not the object * ci(package): count require-named loaders and multi-line imports made runtime * ci(package): compare each changed file's package loads before and after Reading added lines alone kept missing loads whose text didn't change: a type import made runtime inside an unchanged multi-line declaration, or a loader call split across lines. The router now rebuilds each changed file's old and new text from one full-context diff (no extra blobs) and runs packaging when the new text loads a package specifier the old didn't. * feat(mcp): Settings page for each host's MCP servers, with Add and per-server pages (#48844) * feat(mcp): Settings › MCP servers page, server page and Add dialog A host's MCP servers get their own Settings page under Agents, shown only when the host serves mcp-servers.v1: the list by source (Yours, From plugins, In your agents) with Move/Copy to Orca, a page per server (sign-in, launch or connection fields, agents, workspaces, shared process, Remove), the Add catalog and Custom server editor shared with bots, the browser sign-in, and a change toast with the restart offer. * fix(mcp): keep 'Workspaces added later' inactive until the host lists its workspaces * feat(mcp): give Claude Agent Teams leads and teammates the host's MCP servers (#48895) * feat(mcp): give Claude Agent Teams leads and teammates the host's MCP servers * test(mcp): pin the teammate relay env at the team's launch env * fix(sidebar): keep sibling agents visible after closing a split pane (#48810) After a pane closes in a split, runtime pane slot ids stay sparse (for example 2 and 3). Legacy `tab:N` agent status keys were mapped to a layout leaf by replay-creation order, which is only valid for dense ids, so a status for slot 2 hid slot 3's title row: one agent showed twice and a running sibling disappeared. Title-derived rows now carry their live `runtimePaneId`, and `legacyStatusTitleRowKey` maps a legacy key to the row built from the same slot, falling back to replay order only for rows without a live slot. The sidebar projection and the done-worker parent suppression in the full row builder use it, and dashboard naming reads the raw title of the row's own slot. Fixes #48699 Co-authored-by: Neil <[email protected]> * fix(settings): re-read settings after a failed runtime registry lookup (#48890) readSettingsWithRuntimeEnvironmentPreference captured the settings, then awaited the runtime environment registry. When that lookup failed it returned the captured object, dropping any change that landed during the wait (a View menu toggle, another window's update), and the renderer published those stale values over its store. Return store.getSettings() instead, matching the read the successful path already makes. Fixes #48712 Co-authored-by: Neil <[email protected]> * feat(mcp): WSL terminals get relayed, shared and secret-env MCP servers (#48898) Behind the MCP servers switch. In a WSL distro, a server that goes through the relay (saved headers, Orca's sign-in or a shared process) runs as `orca mcp connect` through the guest's managed launcher, and a command server with saved env runs in the guest under a bash wrapper that reads its env from a new `orca mcp env` over a pipe, so no value is on argv or in history. Guest paths follow the distro's own mount root. * fix(bots): keep every claimant of a shared workspace id, and undated settles, out of Show N older (#48897) * fix(bots): hold every chat that claims a shared workspace id, and never date a settle with no completion time Two limits left by the bot sidebar fold: - Two physical workspaces on different hosts can share an id. The read maps the id to the chat that ran there last, so only that chat was held and an earlier claimant could still fold. Now every chat with a worker the read shows on such an id holds too. The id counts as shared when two listed workspaces carry it or when the read's workers name it on two hosts. One workspace reused by several chats on one host is not ambiguous and still lets the earlier chats fold. - Failed Dispatches written by the first failure path have no completion time, and adopted legacy runs are never retired, so such rows can still be read. The read coalesced them to their creation time and the fold trusted it as the settle time. The host now flags them (`settledUndated`); they keep their place in the list but date nothing, so their chat holds. * test(bots): pin that an undated settle still reads as failed * fix(bots): take shared-id evidence from every chat of the read, and let a fallback row claim - Host evidence that a workspace id is shared now comes from every chat in the read, including chats the sidebar doesn't list (no tab, closed). Holds still apply only to listed chats, and only workers the read shows count. - A row whose worker record couldn't be read keeps its Dispatch's workspace as `placedWorktreeId`. It claims the id when two hosts already share it, but names no host, so it never creates a collision. `worktreeId` is unchanged for every other consumer. - The claims tests now run through the desktop sidebar's own listing, and each arm stands alone. * test(bots): read the created time without a cast * fix(accounts): keep the WSL target on remote system-default selects (STA-18102) (#48882) * fix(accounts): keep the WSL target on remote system-default selects (STA-18102) * chore: record ClaudeSwitcherForOwner react-compiler baseline improvement * fix(accounts): clear remote WSL lanes from Settings System default; keep concrete IDs on selectCodex * test: type System default lane fixtures * fix(accounts): System default resets lanes in one action, WSL first; Claude keeps host reset * fix(accounts): keep partial System default results, one restart prompt, local WSL copy * test: complete Codex identity fixture * fix(accounts): block remote WSL Claude lane, name every replaced account in one restart prompt * fix(editor): reload tabs and diffs for decomposed (NFD) files changed on disk (#48808) On macOS the file watcher reports a name as stored, often decomposed (NFD) for names made in Finder, while tabs and diffs opened from Source Control or links hold the composed (NFC) spelling. Change events matched open files by exact path, so those tabs and diffs kept stale content. IndexedOpenFileLookup now also indexes clean non-ASCII edit tabs and clean staged/unstaged diffs by their composed comparison path, and matchingOpenFiles looks the change's composed identity up there. Dirty tabs and diffs still match only by exact path, so a different file on a byte-exact filesystem never marks unsaved edits as changed on disk. Windows roots skip the cross-spelling index, since NTFS keeps NFC and NFD names as separate files. Fixes #48807 Co-authored-by: Neil <[email protected]> * fix(usage): show a focused WSL host's distro usage in the status bar (#48892) * fix(usage): show a focused WSL host's distro usage in the status bar Since 1.4.272 a WSL host owner showed "WSL usage isn't shown yet" instead of its distro's Claude and Codex usage. Main now reads one runtime target's selected-account usage without switching the desktop's fetch target, and returns which accounts the reading belongs to. The renderer keeps one cached read per distro and account selection (in-flight dedupe, 90 s TTL, reads on mount, focus, account change and explicit refresh), discards readings for an account that is no longer selected, uses live local state when the desktop already fetches for that distro, and fails closed for other providers and for web clients. WSL-host chat account menus now resolve the same owner. Takes over #48471. Co-authored-by: Chen <[email protected]> * fix(usage): attribute WSL distro readings per provider and honour Retry-After Review round 1 on the WSL host usage takeover: label each reading with the account actually read, read only non-live providers, keep per-provider pending/failed state, re-read on TTL expiry, respect Retry-After on forced refresh, resolve WSL host chat menus to the distro, and fail closed for a WSL Claude target with no WSL route. Co-authored-by: Chen <[email protected]> * fix(usage): retry unattributed WSL readings and keep the poller's Windows fallback Review round 2: move the off-Windows WSL fail-closed into the distro read so the desktop poller's Windows fallback is untouched, re-read a provider main could not attribute after 5 s, cap Retry-After at 6 h, skip expiry re-reads while the window is in the background, never re-read for a client that cannot read the distro, and accept only known providers over IPC. Co-authored-by: Chen <[email protected]> * fix(usage): back off unattributed WSL re-reads and cover the read guards Review round 3: double the wait for each unattributed re-read up to the TTL, carry a mismatched reading's Retry-After to the requested entry, note that Codex readings carry no Retry-After, add revert-failing tests for the 6 h clamp, the focus gate and the IPC provider filter, and split the WSL owner cases into their own test file. Co-authored-by: Chen <[email protected]> --------- Co-authored-by: Chen <[email protected]> * fix(runtime): keep remote subscriptions working after a renderer crash reload (#48901) * fix(runtime): keep remote subscriptions working after a renderer crash reload After the main window's renderer crashes and is reloaded, Electron keeps reporting the new live main frame as detached, so the document check refused every remote runtime subscription and remote terminals showed "The window that started this subscription went away" until restart. Pin each request to the main frame's token at receipt instead: Electron reuses one WebFrameMain object for every later document of the frame, so neither object identity nor detached tells documents apart. Deliver events only while that token is current, retire a document's work when an error page replaces it without did-navigate, recheck the document before retaining a subscription, and record a coalesced breadcrumb when a document is refused. * test(runtime): name the fake sender frame type * fix(native-chat): keep OMP answers visible after advisor cards (#48862) OMP writes an advisor card (custom_message, customType "advisor") after a finished answer when the advisor sends the agent back to work. The decoder drew it as a plain system aside, so once the follow-up ran tools the settled turn folded the original answer behind "Worked for Xs". Tag advisor cards with their own 'advisor' presentation. It still draws as the faint aside it was before and folds with the turn's work. The fold reads it through a named row fact, endsWordsReply: because advisor cards also land mid-run (OMP's default reviewMode is "turn"), a card marks only a words reply drawn right before it. Steers, Stop-hook and goal-check send-backs keep ending the answer as before. The plan-notice half of the issue (a plan row between two replies folds the first) is left alone: OMP's plan arrives as the generic ACP plan shared by every ACP agent and Codex, so splitting replies around it would change folding for every provider. Refs #48855 Co-authored-by: lvyongjian <[email protected]> Co-authored-by: Neil <[email protected]> * fix(mcp): give teammates of a native claude --teammate-mode auto lead the relay token (#48908) * fix(mcp): give teammates of a plain claude --teammate-mode auto lead the relay env * test(mcp): name what the team relay env test pins * test(mcp): pin the switch in the team relay env test * fix(agent-status): nest a remote host's workers under their coordinator (#48888) * fix(agent-status): nest a remote host's workers under their coordinator The sidebar nests agent rows by orchestration contexts that only this computer's graph reply supplied, so chats on WSL and other runtime hosts, whose Dispatches live on that host, always listed flat. Read each host's contexts over a new agentActivity.orchestration method when the window reaches the host or the host reports a worker change, and store them under that host as producer. A local graph reply now replaces only its own contexts instead of the whole map. Fixes #48452 * fix(agent-status): keep remote lineage per host, re-read on any Dispatch write Review round 1 on #48888: - Store each remote host's contexts apart (remoteAgentOrchestrationByHost) so a local reply and a host reply that share a pane key never overwrite each other; the visible projection and canonicalOrchestrationForRow read a row's own host first, and dashboard/sidebar caches watch the new map. - Hosts emit agentOrchestrationChanged once per tick for every Dispatch write, so terminal-created workers re-read too. - Retry a failed read twice with backoff, still background-tagged; the project catalog refresh (connect, reachability, replay) re-reads. - Clear a removed or replaced host's contexts and read state. - Cap the reply on the host and validate each context on the desktop. Refs #48452 * fix(agent-status): read remote lineage on every sidebar path, debounce re-reads Review round 2 on #48888: - Status projection rows, title-derived rows and topology invalidation read contexts through the producer-aware view and invalidate on the remote map, so title-only WSL terminals nest and finished remote workers suppress their parent's stale title. A remote context is ignored for a terminal pane this window runs on another host. - Phones no longer receive agentOrchestrationChanged. - The desktop debounces the host event (250 ms trailing). - A host without the method is re-asked only after its connection generation changes, not on every catalog refresh. - Pane retirement and moves edit remote hosts' contexts too. - Host notice coalescing is its own unit with a test. Refs #48452 * fix(agent-status): apply remote lineage only to rows that host runs here Review round 3 on #48888: - Status rows read this computer's map unchanged; a remote context applies only to that host's chat row (by its alias) or a terminal tab whose host, from its tab or PTY, is that host. A colliding key or a parent spelled like a remote chat no longer re-parents a local row. - The status projection invalidates rows whose applied remote context changed, so re-keyed chats and the first or last host context re-place. - A host without the method is re-asked as soon as its connection generation changes, whichever of the wake refresh and the new runtime id lands first. Refs #48452 * fix(agent-status): keep remote parents on their host, split terminal provenance Review round 4 on #48888: - A remote row's parent must be a row that host runs here; otherwise the link is dropped, so a parent key spelled like a local row never nests a remote worker under it. - Status rows skip building row identities and terminal hosts when no remote host has contexts. - The unsupported-host watch drops removed hosts and re-asks only hosts that are reachable again, so a disconnect's generation bump is ignored. - Terminal provenance and the status-row view move to their own modules; visible-agent-orchestration.ts is back under 300 lines. Refs #48452 * fix(mcp): Codex, Copilot, Amp and Pi in WSL get Orca's MCP servers (#48923) Behind the MCP servers switch. CLI checks run inside the distro, so Copilot, Amp and Pi deliver there too, with guest file paths and Pi's extension passed by path. Codex 0.47+ forwards the interop variables to the guest orca (env_vars); the guest launcher also finds its own session's interop socket when an agent trims the env. Every orca mcp bridge resolves the workspace one way. * fix(codex-accounts): show System default usage while a saved Codex account is selected (#48873) * fix(codex-accounts): show System default usage while a saved Codex account is selected While a saved host Codex account was selected, the System default row (the user's own ~/.codex login) showed no usage in the desktop Codex switcher and on the phone's Accounts and Usage screens. Nothing read ~/.codex once a saved account was active. The inactive Codex preview now includes the host System default under the shared codex-system-default key while a saved host account is selected. It is read over HTTP only (the auth.json token against the usage endpoint), never through codex app-server, so Orca does not spawn a process or rotate tokens for a login the user did not select. An expired or rejected token shows "Updates when Codex runs" and keeps the last reading; API-key and unparseable logins report usage as unavailable. Switching away from System default keeps its last reading on its row, as Claude already does. WSL targets are excluded, since a WSL System default is that distro's own login. Fixes #48856 Co-authored-by: Yuxin Qiao <[email protected]> * fix(usage): keep the waiting-for-CLI checks out of the localized copy catalog The orcad bundle must stay ASCII; importing usage-error-copy from the rate-limit service pulled the error catalogs into it. * test(codex): pin the clock in the backend-only usage test --------- Co-authored-by: Neil <[email protected]> * feat(native-chat): open subagents in a slide-up sheet inside the chat pane (#42455) * feat(native-chat): open subagents in a slide-up sheet inside the chat pane Clicking a subagent row, tray row or head now slides a sheet up over its own chat pane instead of replacing the whole conversation. The conversation and composer stay mounted and inert under a scrim; x, Esc, a scrim click or the title menu's Main agent close it and hand focus back to the opener. The header carries the parent link, the subagent switcher, role chip, Stop and Close, with state, elapsed time and tokens below. A subagent's own approval card draws in its sheet with a Needs you pill; another agent's waiting prompt is named at the top of the body with a Show button. * fix(native-chat): address subagent sheet review findings - Esc inside the sheet, including from the subagent's own prompt card, goes up a level or closes; it never cancels or folds the prompt. - A prompt card under the sheet ignores digit shortcuts. - The subagent's prompt keeps its state (a half-typed answer) when it moves into or out of the sheet. - The conversation under the sheet pauses following, so its scroll stays where the reader left it. - The waiting prompt card and the needs-you line line up with the rows, the card slot keeps 12px below and at most half the sheet's height, and the needs-you line stays pinned at the top of the rows. - Nested header keeps its second line; the parent link is labelled "Back to <name>"; row actions are hidden in the sheet; the prompt preview clamps whole lines. - Translate "Main agent" and "Back to …" in every locale. * fix(native-chat): keep sheet header readable in dev and skip find under the sheet The header's narrow-width rules now hide with container variants only, so a later stylesheet that re-declares .hidden cannot win. Mod+F while a subagent sheet covers the conversation no longer opens a find bar under the scrim. * fix(native-chat): keep sheet focus and Esc order in edge cases - Esc from a nested subagent's own prompt card goes up a level and focus stays in the sheet as the card leaves it. - Esc goes to the sheet even when a find bar was open before it opened. - The prompt preview's 3-line clamp rechecks whether it hides anything when the pane is resized. * fix(native-chat): keep Tab inside the sheet from the subagent's prompt card The card reaches the sheet through a portal whose React parents are the pane content, so the sheet's own Tab wrap never saw its keys. The card's wrapper now applies the same wrap while the card is in the sheet. * fix(native-chat): take focus back into the sheet when its focused prompt is answered Answering a subagent's prompt in its sheet disables the focused choice and then unmounts the card. Either drops focus to the body, and a removed node may not fire focusout, so Esc and Tab no longer reached the sheet. The sheet now reclaims focus when the control that last held it is disabled or gone, on focusout or on a change inside its prompt slot; a click elsewhere in the app keeps its own focus. * test(native-chat): drop the sheet focus-recovery UI tests; proven by revert run instead * test(native-chat): pass the subagent hook's prompts, epoch and clear count in its perf contract * fix(native-chat): Esc from a sheet prompt's answer field goes up a level or closes, like the rest of the sheet * fix(native-chat): only the sheet's prompt controls take focus back, so an ending Stop still hands it to Close * fix(native-chat): Show that switches the sheet to another subagent focuses that subagent's waiting prompt * fix(devin): advertise form elicitation so ask_user_question renders the question card (#48904) Devin only sends ask_user_question as an elicitation/create form when the client advertises elicitation.form; Orca advertised only url, so Devin reported the tool as unavailable and asked in plain text. Advertise elicitation.form for Devin and claim its form requests in the Devin dialect: only ask_user_question forms (_meta cognition.ai/allowOther true) get a question card, with a typed "Other" answer sent as the field value; other forms, including /cloud-setup secret prompts, are refused with -32602. Fixes #48899 Co-authored-by: Neil <[email protected]> * fix(artifacts): show the server's retry time once in the rate-limit error (#48926) Newer artifact servers already end a 429 message with when to retry ("Try again after 11:31 UTC (in 28 minutes)."), but the client always appended its own zone-less local reset time, so users saw two conflicting reset times. Every server that sends resetAt also names the retry time in its message, so append the local hint only when the server sent no message or no resetAt. Refs #48919 Co-authored-by: Claude <[email protected]> * fix(orchestration): admit worker reports after a restart reissues the worker's handle (#41041) * fix(orchestration): admit worker reports after a restart reissues the worker handle After an Orca restart a surviving worker PTY can get a fresh handle before the daemon inventory re-adopts its exported one, so the worker's env handle names no terminal and its worker_done, escalation, ask and check were refused as worker_identity_changed. send, ask and check now resolve the reporter through one place: attested hook identity, then the handle's own terminal, and only when the handle names no terminal, its recorded Dispatch (local or federated) re-minted by the exact recorded process incarnation, still in the recorded pane, with no other Dispatch having taken the pane. The recovered incarnation is carried through every downstream fence and re-read at admission and after waits. * fix(orchestration): keep the recovered check fences within check-worker's line budget, and pin the mid-lookup replacement test to check's own lookup checkWorkerMailbox now takes the caller's process reader from both callers instead of defaulting it, and folds the recovered-process pin into one pane check. The continuity test swapped the process on any pane lookup, which now also fires in the restart-resumed caller rewrite that runs before the handler; it swaps only on check's own lookup by the stale handle. * fix(orchestration): keep a restart-recovered worker pinned to its recovered process after entry - check revalidation re-proves the recovery after waits, in the Run, Dispatch and direct paths - a recovered lead bound to its own Run drains its pre-bind Dispatch mail; the Run lookup uses the recovered terminal instead of the stale handle the Dispatch stored - a waiting or resumed ask, local or federated, re-proves the recovery before it takes an answer - a caller losing a still-live federated Dispatch leaves its mail in place instead of moving it into this host's placeholder for the home Run - finished custody also weighs a later Dispatch from the other store; a handle with two working Dispatches is never recovered; the admission re-read also pins the terminal and host scope * fix(orchestration): type the settled-mail router's database as the full store its methods bind to * fix(orchestration): never recover a handle with more than one working Dispatch across both stores The recovery helper compared only the newest record in each store, so a newer finished attachment could hide an older one still working in another pane. It now counts working Dispatches for the exact handle in both stores first, and falls back to finished history only when none work. Adds tests for that case and for the terminal-handle half of the admission re-read pin, and makes the cross-store custody test assert that no question was created. * fix(plugins): retry a plugin file after a transient transpile timeout (#48910) * fix(plugins): retry a plugin file after a transient transpile timeout A plugin source file that hit the 2 s transpile budget (or a transpiler crash) had its failure cached by content hash, so the panel stayed broken until the file changed. Transient failures are now retried on a later load after 1 s, doubling while they repeat up to 60 s; transform errors stay cached. Concurrent loads of the same file share one transpile, and the budget starts once the worker reports ready so cold start does not count. Fixes #48906 Co-authored-by: Michael Zhou <[email protected]> * test(plugins): mark the fake-timer answer delay for the real-time-wait gate --------- Co-authored-by: Neil <[email protected]> * Update README downloads badge (#48932) Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com> * fix(native-chat): move idle Claude chats, bots included, to a newly selected account (#45478) * fix(native-chat): move idle Claude chats, bots included, to a newly selected account A chat's running Claude process keeps the account it launched with, and nothing moved it after a host account switch until its next send, so an idle bot's long-lived Claude process kept the previous account. Once a Claude selection takes effect, each loaded Claude chat whose agent runs on another account is rechecked under its own serialization and stopped when it owes no work; its next turn resumes the conversation on the selected account. A running turn, open or owed child work, queued sends, a running delivery and provider output not yet in the journal keep the agent. The check reads the account, then the chat's work once (a journal that moved meanwhile keeps the agent), and decides at the moment the agent would be marked closing that nothing changed and the selection it was told of is still committed. A check that stood down while another account change ran is redone when that change settles. Removing the selected account whose deselection cannot be published now restores the selection, as a failed select already does. * Recheck owed child work when the switch marks an agent closing A background task's result reaches the chat's child-work status without a journal row, so it can land between the switch's work check and the stop. The closing guard now asks the same owed-work question again. * test: inline the usage-limit turn helper the suite cut removed * test: keep the queued-send rig within its line budget * Close the switch review's remaining P3s - The account-switch stop guard stands down when another stop marked the agent closing while the stop's own work check was awaited. - A select or remove that fails before saving anything settles as unchanged, so it no longer reruns every chat's account check; a failed change whose restore republished still settles as moved, now from the restore itself. - Exports used only inside their module are no longer exported. * test: tell chat checks only when a Claude selection settles One invariant across the selection state machine: a change refused before anything was saved tells no one, a failed publish whose restore republished tells checks to run again, and a failed restore keeps every check off until a later change settles. * test: return rate-limit state from the account refresh stub * fix(bots): preselect the default agent in New bot (#48931) New bot (desktop, Import bot, Hand to bot, and mobile) always opened on Claude, ignoring the host's default agent. It now opens on the host's default agent when a bot can run it there without installing it first, else on the first agent offered. An agent handed in explicitly (a workspace's own agent, a shared link) still wins, and the owner's pick is kept. The bots.agentChoices RPC now also returns the host's defaultAgent so the phone's New bot preselects the same agent; older hosts that omit it fall back to the first offered agent. Fixes #48917 Co-authored-by: Claude <[email protected]> * perf(source-control): scope history follow-ups to #48553 (#48579) * perf(source-control): keep folder sections out of history request sweeps A folder section's worktree catalog lists only its owner, yet mounting one swept every retained history request against it: one membership check per request even with the scope menu closed, and it could retire another live worktree's cached page or pending read. Only the ordinary panel's catalog now sweeps, and the swept catalog is shared, so a remount with an unchanged catalog checks only released slots. A removed worktree's slot is still retired on the next catalog change, and its late reply is still dropped. Follows #48553. * perf(source-control): bound history eviction work to resident pages Before an evicting insert, every subscribed slot was looked up in the page cache to mark read pages recent, so many retained section subscriptions without pages meant one LRU lookup each. Eviction now walks the resident pages (at most the cache cap) and drops the oldest one no section reads. When every page has a reader, the least recent goes and its readers are told, as before. Follows #48553. * fix(source-control): do not reuse a commit compare across a deepened checkout In a shallow checkout the boundary commit has no parents and compares against the empty tree. Reselecting it after deepening joined or reused that read, so the files list showed unchanged older files and Open diff got the old empty-tree base. Compare reads and cached results are now keyed by the commit and the parents its history page shows, so a stable graph still shares one read and a deepened one reads again. Follows #48553. * fix(source-control): follow a held commit pick to its refreshed parents A commit picked before a shallow checkout was deepened, or picked from the old page while the menu refreshed, kept its old parent list, so its compare key still matched the empty-tree read. When a fenced, ready history page shows the picked commit with different parents, the pick now follows that entry, and its compare reads again against the real parent. Follows #48553. * test(source-control): type the folder-section scope mock without a cast Follows #48553. * test(source-control): drive a retained shallow pick through the scope menu Picks the boundary commit from the scope menu's retained shallow page while its root compare is held, publishes the deepened page, and checks that the pick follows the fresh parents: a second compare read, the deepened rows published before the old root reply settles, and the deepened parent and rows in both the Open diff and single-file payloads. Follows #48553. * test(source-control): assert deepened rows before the old root compare settles Follows #48553. * feat(mcp): MCP servers in Repository settings, and a host-servers switch in Tools (#48940) * feat(mcp): MCP servers in Repository settings and a bot Tools switch On a host that serves MCP servers, Repository settings lists the host's servers with a switch each for that repo (the same Workspaces choice as the server page) and the servers the repo's own files define; elsewhere the MCP configs section stays as it is. A bot's Tools get a "Your MCP servers" switch when its host sends hostMcpServers. mcpServers.add takes an optional workspaces, so a server added for one repo is limited to it in the same write. The GitHub catalog entry adds "Bearer " to a bare token, and the skills docs stop pointing at a missing Integrations › MCP entry. * fix(mcp): show no repo MCP section until the host says whether it serves MCP servers * fix(mcp): a server-owned repo over SSH uses that server's MCP list * feat(antigravity): offer Approve for me (--mode auto) in terminals (#48479) * feat(antigravity): offer Approve for me (--mode auto) in terminals * test(antigravity): verify multi-shell launch and surface routing for Approve for me * fix(antigravity): include --i value flag and verify resume mode retention * fix(antigravity): add remaining valued agy flags to required-value options --------- Co-authored-by: Neil <[email protected]> * fix(gitlab): fall back to /changes to list MR files on GitLab before 15.7 (#48945) GitLab added the paginated merge_requests/:iid/diffs route in 15.7, so older self-hosted instances answer 404 and the MR Files tab showed "No changed files". When /diffs reports not_found, read the legacy merge_requests/:iid/changes snapshot (capped to the same 100 entries) and remember the host so later reads skip the failing /diffs request. Fixes #48934 Co-authored-by: Neil <[email protected]> * fix(i18n): translate 11 missing Korean native-chat strings for Antigravity sign-in and MCP (#48968) Add Korean values for the Antigravity sign-in strip and menu, the agy sign-in notice, and the Manage MCP servers label, which fell back to English in ko.json. Fixes #48969 * fix(i18n): add 11 missing Turkish native-chat strings for Antigravity sign-in and MCP (#48966) Translate the Antigravity (agy) sign-in strings, the gcloud/API-key alternatives, and the "Manage MCP servers" label that were added to en.json without Turkish counterparts, so Turkish users no longer see English fallbacks in these native-chat surfaces. Fixes #48967 * fix(i18n): translate 36 missing Simplified Chinese native-chat strings for connections and sign-in (#48960) Add zh.json values for components.native-chat keys that fell back to English: googleOffer, webhookSetup, githubPeek.retryKeyHint, mcp.manage, signInNotice.signsInAgy, antigravityAuth, pairedServerAsk and clientAsk. Placeholders and Trans tags match en.json; no existing values change. Fixes #48961 * fix(i18n): translate 155 missing Russian native-chat strings for connections and sign-in (#48964) Adds Russian for the components.native-chat keys that fell back to English: Slack mirror, connector and Google offers, Antigravity sign-in, sign-in notices and requests, paired-computer and client asks, MCP, GitHub and web peeks, webhook setup and install. 157 leaves (155 keys plus Russian plural forms); no existing value changes. Fixes #48965 Co-authored-by: Neil <[email protected]> * fix(i18n): translate missing Spanish native-chat strings for connections and sign-in (#48954) Add Spanish for the 155 native-chat keys (156 leaves with plural forms) that fell back to English: the Antigravity sign-in strip and menu, the Slack mirror switch and post status, connector and Google account offers, sign-in notices and requests, paired-computer asks and the webhook setup card. Fixes #48955 Co-authored-by: Neil <[email protected]> * fix(i18n): translate missing Portuguese native-chat strings for connections and sign-in (#48962) Add Portuguese values for 149 native-chat keys (150 leaves with the extra plural form) that fell back to English: Antigravity sign-in, Slack mirror, connector asker/offer, Google offer, sign-in notices and requests, paired-server asks, webhook setup, and related rows. Only pt.json changes; no existing value or other locale is touched. Fixes #48963 Co-authored-by: Neil <[email protected]> * fix(i18n): translate 154 missing Traditional Chinese native-chat strings for connections and sign-in (#48958) Adds zh-Hant values for the native chat's Slack mirror, connector and Google offers, Antigravity sign-in, sign-in notices and requests, paired-server and client asks, tool/offer cards, GitHub and web peeks, webhook setup and install rows, which previously fell back to English. Fixes #48959 Co-authored-by: Neil <[email protected]> * fix(i18n): translate missing French native-chat strings for connections and sign-in (#48956) With the UI in French, native-chat connection and sign-in rows (Antigravity sign-in, Slack mirror, connector asker/offer, Google offer, sign-in notices, URL request, paired-server ask, webhook setup, link peeks, MCP) fell back to English because their components.native-chat keys were missing from fr.json. Add the 155 keys (156 leaves including the French _many plural form). Fixes #48957 Co-authored-by: Neil <[email protected]> * fix(i18n): translate missing Japanese native-chat strings for connections and sign-in (#48950) The Slack mirror, connected-app asker, connect-a-service, Google account, Antigravity sign-in, sign-in notice, sign-in request, paired-computer ask, MCP, webhook setup, and link preview rows in the Japanese UI fell back to English because their keys were missing from ja.json. Each new key sits after the sibling it follows in en.json. Japanese uses only `_other`, so `_one` forms are not added. * fix(editor): show spaces, not , in the doc link menu hint (#48947) The [[ doc link menu hint passed "↑↓ navigate ↵ select esc dismiss" through t(). React renders string children as text, so the entities showed up literally in English and in the six catalogs that kept them (de, fr, pt, ru, tr, zh-Hant). Use real non-breaking spaces, as the Korean and Spanish catalogs already do. The key is unchanged. Fixes #48946 * fix(i18n): keep the spacing Korean pieces need when they are appended (#48949) Five Korean UI lines are built by appending a translated piece to other text, and the code relies on the leading or trailing space the piece carries. The Korean values had dropped that space, so the joined text ran together (e.g. "5시간— 2시간 후 초기화", "포함됨: #12, #13.GitHub는 ..."). Restore the spacing in 9 ko.json values, use the particle "와 " for the skill delete join, show the Warp theme source as " ({{value0}})", and pin every changed value in locale-ko-key-overrides.json so catalog repair keeps them. Fixes #48948 * fix(watcher): stop Windows fs.watch livelock when a watched directory is deleted (#48937) On Windows, libuv before 1.53 reports ('rename', <namespaced dir>) in a tight loop after a watched directory is deleted and never raises an fs.watch error, pinning a CPU core. #47619 guarded only the parcel watcher child. Move watchedDirectoryDeletionCheck to src/shared/file-watch and apply it to the remaining directory watchers: - File Explorer root watcher (Electron main): close and report the existing "File watcher root was deleted" terminal error. - Transcript native watcher (parent watches): route through the existing error handler so the caller rebinds. - orcad stop-request listener: close the watcher; polling still delivers. - Google key Downloads watch: settle as unwatchable. - Pi background-work bridge source: close without re-reading the folder. Add a real-fs win32 test for the File Explorer watcher and route it, plus the watcher and helper sources, to the Windows boundary CI job. Co-authored-by: Neil <[email protected]> * fix(i18n): translate 155 missing German native-chat strings for connections and sign-in (#48952) Add German for the native chat's Slack mirror, connector and Google offers, Antigravity sign-in, sign-in notices and requests, paired-server and client asks, MCP sign-in, tool/offer cards, GitHub and web peeks, webhook setup and install strings. Only de.json changes: 155 keys added, no existing values changed. Fixes #48953 Co-authored-by: Neil <[email protected]> * fix(i18n): translate 4 missing Korean native-chat strings (#48999) Add Korean for the composer's model loading and sign-in lines, the bot creation offer's "Open {{name}}" button, and the worker dock's removed-workspace line, which fell back to English. Fixes #49000 * fix(i18n): translate 3 missing Turkish native-chat strings for models and the worker dock (#48997) Add Turkish values for components.native-chat composer.modelsLoading, composer.signInForModels and workerDock.workspaceRemoved, which fell back to English because tr.json had no entries for them. Fixes #48998 * fix(i18n): translate 18 missing Simplified Chinese native-chat strings (#48991) Agent message kind labels, the waiting-mail spoken state, image gallery screen-reader announcements, the composer model-loading and sign-in lines, the bot offer open button, and the worker dock removed-workspace notice fell back to English in the Simplified Chinese UI because their keys were missing from zh.json. Fixes #48992 * fix(i18n): translate 184 missing French native-chat strings for messages, approvals, and usage (#48987) With the French UI, approval prompts and records, the usage-limit row and its actions, the composer, agent and worker messages, slash command descriptions, notices, failure lines, image preview announcements and the CI result line fell back to English because their keys had no fr.json entry. Add 184 French leaves (182 keys plus their extra plural forms) under components.native-chat, reusing the wording already in fr.json, and match the WSL chat hint to the existing "Ajouter une distro WSL" label. Fixes #48988 Co-authored-by: Neil <[email protected]> * fix(i18n): translate 188 missing Russian native-chat strings for messages, approvals, and usage (#48995) With the UI set to Russian, 188 keys under components.native-chat (approvals, usage-limit row, composer, agent messages, slash command descriptions, notices, failure lines, image gallery, CI result line) had no entry in ru.json, so i18next fell back to English. Add the 192 leaves (188 keys plus Russian plural forms), reusing the catalog's existing terms, including inflected бот forms for bot strings. Fixes #48996 Co-authored-by: Neil <[email protected]> * fix(i18n): translate 185 missing Traditional Chinese native-chat strings (#48989) Add zh-Hant entries for native-chat approvals, usage-limit rows and actions, composer, agent messages, slash command descriptions, notices, failure words, image gallery, and CI result line, which previously fell back to English. Fixes #48990 * fix(i18n): translate 156 missing Portuguese native-chat strings for messages, approvals, and usage (#48993) Add Portuguese values for the native-chat keys that still fell back to English: tool approvals, usage-limit actions, the composer, agent messages, slash command descriptions, notices, failure words, image gallery announcements, and the CI result line. Each value keeps its English placeholders and tags; existing values and other locales are unchanged. Fixes #48994 Co-authored-by: Neil <[email protected]> * fix(i18n): translate 189 missing German native-chat strings for messages, approvals, and usage (#48983) With the UI set to German, 189 keys under components.native-chat (approval, usageLimitActions, usage, composer, agentMessage, slashCommandDescriptions, notices, failureWords, imageGallery, ciResultLine and others) had no entry in de.json, so i18next fell back to English. Add them, reusing the catalog's existing German terms; placeholders and Trans tags match en.json. Fixes #48984 Co-authored-by: Neil <[email protected]> * fix(i18n): translate 104 missing Japanese native-chat strings (#48980) The usage-limit, composer, agent message, slash command, notice, approval and image gallery rows in the Japanese UI fell back to English because their keys were missing from ja.json. Each new key sits after the sibling it follows in en.json; Japanese uses only `_other`, so `_one` forms are not added. Bot strings use the existing ボット term. Fixes #48981 * fix(mobile-status): stamp done frames with pane status-change time so Pi compaction end clears working (#49029) A status-only OSC 7501 working during Pi's post-turn compaction went out as a title-only working stamped at that change, but the following 7501 done reused the hook row's older time, so paired clients kept the working entry. Stamp the done branch with ptyStatusEvidenceAt like the title-only and demotion paths. Original fix by @mmarabel in #49029. Fixes #49012 Co-authored-by: Neil <[email protected]> * fix(i18n): translate missing Spanish native-chat strings for messages, approvals, and usage (#48985) Add Spanish for 182 native-chat keys (approvals, usage-limit actions, usage, composer, agent messages, slash command descriptions, notices, failure words, image gallery, CI result line and a few single strings) that previously fell back to English, and align the WSL add-host hint with the Spanish menu labels it names. Fixes #48986 Co-authored-by: Neil <[email protected]> * fix(bots): include paired members in group Home items and badge (#49005) * fix(bots): include paired members in group Home items A bot group hosted on this computer can include bots on paired computers, but group Home and its right-sidebar badge resolved members by bare bot id from the local roster only, so paired members' items and Needs you counts were missing (and a same-id bot on another host could be picked instead). Add useBotGroupMembers, which resolves the group's full host-qualified roster (groupMemberKeys) against the bot catalog. Paired members are read only while their computer is connected, so an offline host cannot lock or stall the group list; the member that owns the open item is held while its computer is offline so the item stays up. Group Home and the activity badge both use the hook. Co-authored-by: Daniel Lafraia <[email protected]> * test(bots): read the pane bot through a function after resetting it --------- Co-authored-by: Neil <[email protected]> * fix(sidebar): keep the send menu open when an agent row is picked as the send target (#49027) Agent rows are non-focusable divs, so the default mousedown moved focus to the sidebar scroll container. The non-modal send menu closed on that focus-outside and turned off send-target mode before the click could send, so the click fell through to "open this agent" instead. While a row is a send target, prevent its mousedown default so focus stays in the menu until the click sends. The compact and full agent rows now share one useAgentSendTargetRow hook for the click capture and the mousedown guard. Fixes #49025 Co-authored-by: Neil <[email protected]> * fix(antigravity): treat gateway-backed agy as signed in for personal Antigravity Chat (#49049) With no Google credential, agy's sign-in was read from an initialize-only check, so a host whose agy serves chats through AGY_LLM_GATEWAY_URL showed a false signed-out notice. When personal chats run on agy's own home and the launch environment sets a non-empty gateway URL, ask agy with session/list instead, which agy answers without a Google login when the gateway serves it. Enterprise chats run on Orca's home, which drops the gateway variables, so they keep the compatibility check. envValue now accepts env records with undefined values so the gateway check can read the resolved child env through the shared Windows-aware helper. Refs #46170 Co-authored-by: Neil <[email protected]> * chore(mobile): bump to 0.0.71 and Android versionCode 35 (#49087) * fix(settings): mark Voice settings local-only while a remote host is selected (#49057) Voice settings always configure this computer: the pane reads the local settings and talks to the local speech service. When the Settings host picker pointed at a remote host, the Voice section still showed this computer's dictation state with nothing saying so, which made the remote host look configured. With a remote host selected, the Voice section description now names the host and says these settings apply to this computer only. The host name lookup that Notifications and Orca Account each duplicated moves into a shared getSettingsHostServerName helper used by all three sections. Refs #44162 Co-authored-by: Neil <[email protected]> * fix(mcp): keep workspace exclusions saved from two editors at once (#49121) * fix(mcp): keep a workspace exclusion another client saved meanwhile Each workspaces save now sends the choice it was made from, and the host applies only what that edit changed onto the stored value, inside the file's write, instead of replacing it whole. * fix(mcp): whole-choice phone taps replace, and merge workspace keys by set * fix(plugins): pass USER, LOGNAME and USERNAME to plugin workers (#49069) Plugin workers start from an allowlisted environment that kept HOME but dropped the login name. Claude Code on macOS keys its Keychain OAuth login by USER, so a plugin that spawned `claude` failed to authenticate even though `claude` worked in a terminal. Allowlist the login-name variables (USER, LOGNAME, and USERNAME for Windows); they carry no credential. Fixes #49058 Co-authored-by: Neil <[email protected]> * fix(git): give the Windows SSH-policy probe a realistic timeout (#49070) Before each network Git command Orca reads core.sshCommand and ssh.variant with a short git config probe. Its 2.5 s budget includes process creation, which on Windows (cold WSL, security software that inspects CreateProcess) can take several seconds. A probe timeout is rethrown, so the fetch/push/clone it guards never ran and reported "git timed out." even though Git and the network were fine. Give every Windows probe, native or WSL, the 10 s budget WSL already had, still capped by the caller's own timeout. macOS and Linux keep 2.5 s. Fixes #49063 Co-authored-by:…
7 tasks
epocsohtets
added a commit
to epocsohtets/orca
that referenced
this pull request
Nov 29, 2026
…question waits in Needs me), so Home and the board agree; a past day reads as its date, a weekday only ahead; tile keys dropped (Riko stablyai#3 stablyai#10 stablyai#13, PoC) 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.
Summary
Test plan
🤖 Generated with Claude Code