Commit Graph
20780 Commits
Author SHA1 Message Date
Brennan Benson 08dedd2cdb fix(usage): retry failed backend startup on demand 2026-11-11 15:32:23 -08:00
Brennan Benson a55dfc5f19 fix(usage): revalidate tracking before scan admission 2026-11-11 12:49:14 -08:00
Brennan Benson 92076d1092 Merge origin/main into backend-process 2026-11-11 11:35:35 -08:00
OrcaWinandOrcaWin 54912d99dc test: remove 37 low-value cases and five whole suites (#41223)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 11:20:35 -08:00
Kelvin Amoaba 2a3bfb9f01 fix(terminal): keep a launching Codex task's session out of Orca terminals (#41220) 2026-11-11 19:15:18 +00:00
Kelvin Amoaba cedcb2fdc9 fix(omp): resume a profile's history session under that profile (#41221) 2026-11-11 19:13:01 +00:00
Kelvin Amoaba 3082e4aa2b fix(jcode): keep the Jcode agent row and show its turn on Linux (#41103)
* fix(jcode): keep the agent row for Jcode panes and read its working title

On Linux the Jcode release runs jcode-linux-<arch>.bin behind a jcode wrapper, so
the foreground read never identified the pane, and Jcode's own title
(<emoji> jcode/<server> <Codename> · work ~2s) was not classified. Once Jcode
replaced its startup title, the title-derived row lost its only identity and
disappeared. Map the platform binary to jcode, accept the server-qualified
identity title, and read the work/last tail as working/idle.

* fix(jcode): read the bare title tail only in a Jcode pane

The activity tail on conversation and SSH titles is too generic to prove an
agent, so title-only readers must not treat it as one. Gate it on the pane's
agent, as Hermes markers are, keep identity titles self-describing, narrow the
server segment, and keep the title strip linear.

* fix(jcode): keep the turn tail out of title-only readers

Title-only readers (completion tracking) saw a turn from Jcode's identity title
and then idle when Jcode switched to a conversation title naming another agent.
Read the tail only through the pane-scoped reader, check it before generic
title status in the sidebar row, and stop treating a bare jcode/<dir> as Jcode.

* fix(jcode): escape the title separator so the orcad bundle stays ASCII
2026-11-11 19:12:07 +00:00
Brennan Benson 37611065c6 Merge origin/main into backend-process 2026-11-11 11:11:29 -08:00
Kelvin Amoaba 769bef7930 fix(cursor): list Cursor's CLI models in the Settings default-model picker (#41219) 2026-11-11 19:10:46 +00:00
Kelvin Amoaba d46cf4b295 fix(usage): keep deleted worktrees' sessions in the Orca usage totals (#41218)
Usage attribution only knew live worktrees, so deleting one moved its
sessions out of the Orca scope on the next scan and Stats & Usage totals
went down. Remember every worktree Orca has had in a small usage-owned
history and attribute against live plus remembered worktrees, with live
rows claiming reused paths first. The history loads off the main thread,
scans wait for it, and an unreadable or newer file is never overwritten.
2026-11-11 19:07:05 +00:00
OrcaWinandOrcaWin d5f6fe17bf test: remove 129 low-value cases and 21 whole suites (#41210)
* test: remove 83 low-value cases and ten whole suites

* test: remove 46 more low-value cases and eleven suites

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 11:03:08 -08:00
Brennan Benson 9a10464bec Make chat wait check the chat's work state instead of reading its history every second (#41129)
* fix(cli): chat wait checks the chat's work state instead of reading its history every second

`orca chat wait` and `orca chat send --wait` polled `agentSession.history` once a second only to
learn whether the chat was still working. Each poll made the host build a transcript page, scan
every retained item twice for the running turn, and send the newest reply's full text, all
ignored by the waiter.

The host now answers `agentSession.workState` with just the facts a wait decides from (working,
a waiting question or approval, queued ids, the next queued send, the fence), and the journal's
running turn comes from its existing per-row turn index instead of a scan. The CLI polls that
read and falls back to history pages on hosts without it. The final transcript read is unchanged.

* test(cli): type the chat wait host test without assertions

* docs(cli): say what a work-state check skips, not that it does no history work

* test(cli): pin the chat wait's exact final reply and its single history read

* docs(cli): name the scan a work-state check skips

* ci: typecheck the chat wait host test with the cross-process test project
2026-11-11 10:53:57 -08:00
Brennan Benson bf14bc7962 Keep agent details when chat startup fails (#40901)
* Retain ACP startup rejection diagnostics

* Correct startup diagnostic regression test types

* Redact quoted credential text in provider diagnostics

* Consume escaped characters in quoted diagnostic credentials

* Redact complete credential values in agent diagnostics

* Protect complete credential spans before rewriting assignments
2026-11-11 10:51:30 -08:00
Brennan Bensonandtemp_final_v5 ac9e854c04 Settings and launch menus list your account models (#40175)
* Share account model lists across Settings and launch menus

Use one surface-aware model policy and demand-driven catalog acquisition for Settings defaults and new-agent menus. Preserve literal saved selections, native invocation boundaries, and older-host listing reads.

Co-authored-by: temp_final_v5 <73724370+qq2144@users.noreply.github.com>

* Keep model menus scoped, responsive, and editable

* Keep model menus stable while host listings refresh

Retain applicable listings through refresh failures, preserve host availability metadata, and distinguish unlearned registration from known absence. Show Settings pending choices without blocking discovery, scope the fallback note to failed demand, and register its translations. Verify the structured phone reader and menu wrapper share the composer policy without changing phone presentation.

Co-authored-by: temp_final_v5 <73724370+qq2144@users.noreply.github.com>

* Keep retired model lists out of reopened menus

Keep completed empty and unknown workspace answers in the shared snapshot cache so successor menu owners cannot seed older account or workspace models. Derive observer state from that cache and remove the duplicate owner retirement guard. Extend the lifecycle regression through last unsubscribe, owner replacement, failed reopen and a fresh replacement answer.

* Preserve catalog answers across scope and owner changes

* Reuse unchanged model catalog projections

* Keep new-chat model placeholders scoped to their own catalog

* Use the launched surface’s model catalog in Settings and launch menus

Select protocol sources before applying the shared model-menu policy. Keep Antigravity CLI and Chat answers independent, route discovery through the actual host/runtime, and clear menu-owned effort only on an explicit model-only replacement.

Co-authored-by: temp_final_v5 <73724370+qq2144@users.noreply.github.com>

* Keep paired launch mock clearing out of hook cleanup

Co-authored-by: temp_final_v5 <73724370+qq2144@users.noreply.github.com>

* Bound catalog invalidation epochs by host and agent

* Keep CLI fallbacks out of terminal choices and suppress unchanged listings

* Acquire terminal catalogs only for consumers of that surface

* Restore setup panel explanations

* Reuse settled CLI catalogs in Settings menus as well

* Discover models in the terminal agent execution runtime

* Exercise catalog demand and retire regression fixture observers

* Use the visible draft rather than its default for CLI demand

* Keep discovery runtime fixture independent of Electron paths

* Share effective terminal execution selection with PTY planners

* Separate workspace inventory resolution from launch preparation

* Use read-only worktree projection for terminal inventory selectors

* Preserve PTY context precedence without redundant default-distro reads

* Declare the read-only selector on the runtime construction boundary

* Add terminal model discovery without changing Git discovery routing

* Revalidate held terminal model lists on demand after ten minutes

* Classify legacy model fallbacks from agent probe metadata

* Repair terminal catalog boundary test harnesses

* Refuse foreign execution owners in terminal model discovery

* Resolve model menu validation failures

* Restore terminal model discovery in the new-tab menu

* Repair model menu CI test boundaries and fixtures

* Restore settings read bound across picker generations

* Keep discovery registration and selected-agent admission reliable

* Assert the terminal discovery response envelope after reopening

* Keep model discovery reads and waits in their own phases

* fix: retain model discovery through demand-owned phase transitions

* fix: ignore obsolete model catalog job completions

* Keep Settings model labels through unchanged settings refreshes

* Show idle Settings model labels before opening discovery

* Trim low-value model menu tests

* Move terminal model discovery to its own branch

* Use host model catalog replies directly

* Keep Settings display scoped to its current source

* Assert the saved model displayed text

* Refresh paired launch defaults on reopen and preserve legacy reads

* Narrow merged Settings rows and type the catalog fixture

---------

Co-authored-by: temp_final_v5 <73724370+qq2144@users.noreply.github.com>
2026-11-11 10:45:28 -08:00
Kelvin Amoaba 1ec88dfb12 fix(opencode): send the first prompt on OpenCode 2.0.13 to 2.0.18 (#41109)
OpenCode 2.0.13-2.0.18 submit a bare --prompt before the agent/model
catalog loads and drop it (fixed upstream in 2.0.19). Orca only routed
2.0.12 and 2.0.16 through its startup-prompt plugin, so the other
releases kept the prompt in the composer while the tab showed Done.
Route the whole broken run through the plugin. This also lets model
picks on 2.0.14/15/17/18 deliver their prompt again.
2026-11-11 18:44:08 +00:00
Brennan Benson dc13df6962 Keep Git Graph work bounded during scrolling and paging (#40944)
* Keep Git Graph rendering work scoped to visible and appended rows

* Skip graph primitives outside the visible column

* Keep graph viewport callbacks compatible with renderer compilation

* Keep graph scroll restoration tied to the pane owner

* Use typed DOM lookups in the graph viewport test

* Record Git Graph compiler compatibility improvement

* Correct graph retention fixture cleanup and commit boundaries
2026-11-11 10:42:43 -08:00
Brennan Benson 1aadc32e02 Stop polling contextual-copy hints in idle editors (#40886)
* Refresh the editor copy hint from owner events

* Document the bundled editor event type refinement

* Prune the removed editor hint interval allowance
2026-11-11 10:39:27 -08:00
Brennan Benson d46091d399 Isolate runtime test persistence from shared temporary files (#41122) 2026-11-11 10:36:38 -08:00
Brennan Benson d7b54e3b30 Avoid repeated repository hydration in workspace ownership batches (#41088) 2026-11-11 10:34:38 -08:00
Kelvin Amoaba dfa6430d99 fix(mobile): keep the Android composer focused when the keyboard switches to a voice IME (#41209)
A keyboard's mic button switches to a separate voice IME, which closes the keyboard and opens the voice panel about 250 ms later. The page read every Android keyboard close as Back and blurred the field at once, so the voice IME's text had nowhere to go. Blur only once the keyboard stays closed for a second; a reopen within that window keeps focus.
2026-11-11 18:22:50 +00:00
Brennan Benson f72811d592 Keep Reopen clickable on restored failed browser pages (#41137)
* fix(browser): keep restored page Reopen accessible

* test(browser): distinguish failure Retry from toolbar action
2026-11-11 10:14:14 -08:00
OrcaWinandOrcaWin 9fefdc4a08 test: remove 101 low-value mobile terminal and harness tests (#41207)
* test: remove low-value mobile terminal assertions

* test: remove redundant terminal and recording harness checks

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 10:06:28 -08:00
OrcaWinandOrcaWin 77ab05bfb1 test: remove 192 low-value mobile tests (#41196)
* test: remove thin mobile forwarding and inventory checks

* test: remove 60 more low-value mobile checks

* test: remove 120 low-value mobile task and document checks

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 09:49:53 -08:00
Neil 791aa668dc refactor(opencode): organize provider integration owners (#41192)
* refactor(opencode): organize provider integration owners

* test(opencode): retain unmanaged account environment coverage
2026-11-11 09:42:12 -08:00
OrcaWinandOrcaWin 8250fc33a8 test: fix relay fence type-only import (#41197)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 09:40:18 -08:00
OrcaWinandOrcaWin 9576e55773 test: remove 1,144 low-value declarations (#41177)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 09:11:06 -08:00
c9ef81809f test: remove 198 low-value test registrations (#41175)
* test: remove 198 low-value test registrations

* ci: fail over unavailable Ubuntu package mirrors (#41174)

* ci: fail over unavailable Ubuntu package mirrors

* fix(ci): recover package retries across headless jobs

* fix(ci): allow complete fallback package index downloads

* fix(ci): recover dpkg locks and bound WebKit setup retries

* fix(ci): run apt deadlines inside sudo sessions

* fix(ci): invoke installed Playwright without root pnpm

* fix(ci): allow large fallback dependency downloads to finish

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-11 16:59:03 +00:00
Neil 4b241c1d03 refactor: group Pi provider modules by owner (#41162)
* refactor: group Pi provider modules by owner

* test(pty): retain public provider early-exit coverage
2026-11-11 08:51:39 -08:00
Neil f820fdf8d4 ci: fail over unavailable Ubuntu package mirrors (#41174)
* ci: fail over unavailable Ubuntu package mirrors

* fix(ci): recover package retries across headless jobs

* fix(ci): allow complete fallback package index downloads

* fix(ci): recover dpkg locks and bound WebKit setup retries

* fix(ci): run apt deadlines inside sudo sessions

* fix(ci): invoke installed Playwright without root pnpm

* fix(ci): allow large fallback dependency downloads to finish
2026-11-11 08:30:55 -08:00
OrcaWinandOrcaWin 0184d8187d test: remove 98 low-value cases and 17 suites (#41124)
* test: remove 60 low-value cases and orphaned conversion fixtures

* docs(ci): list supported Windows SSH host cells

* test: recognize direct Windows orcad server entry

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 06:08:53 -08:00
Neil 8ae482379b refactor: use concrete RPC and orchestration owners (#41158) 2026-11-11 05:35:36 -08:00
OrcaWinandOrcaWin 5796c30c97 test: remove 161 low-value cases and 12 suites (#41151)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 05:16:06 -08:00
Neil faced26704 refactor: group computer provider owners (#41154) 2026-11-11 05:08:03 -08:00
Neil f6b86ecf62 refactor: group WSL and Orcad migration owners (#41148) 2026-11-11 04:44:42 -08:00
Neil 8a60eb6ef4 relay: skip the edge row read for hosts above the edge leave ceiling (#41150)
* relay: skip the edge row read for hosts above the edge leave ceiling

With the edge on, every assign of a host outside the cohort ran leaveEdge (a
relay_assignments read) and every resolve ran edgeAssignment, on the director's
3-connection pool, ahead of the in-memory lanes. At 1% this saturated the pool at
peak: acquire timeouts and 503s for GCE hosts, and some cell heartbeats.

New optional edge.json flag leaveCeilingPermille: the highest rollout ever applied.
A host above it, the current rollout and the env percent, on no allow or deny list,
cannot have an edge row, so both reads are skipped. Absent: today's behaviour.
The evacuation sweep reports orca_relay_edge_row_above_ceiling if it finds an edge
row above the ceiling (set too low).

* relay: edge leave ceiling: void a ceiling below the rollout; document operating rules; test reads under it
2026-11-11 04:43:40 -08:00
buf0-bot[bot] fd07f97d64 Update README downloads badge (#41149)
Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com>
2026-11-11 12:26:07 +00:00
OrcaWinandOrcaWin 3c7d1e1675 test: remove 263 low-value cases across 20 suites (#41144)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 04:05:46 -08:00
Neil bfd2bd7486 refactor: group CLI installation and crash lifecycle owners (#41142) 2026-11-11 04:02:20 -08:00
Jonatas SoaresandNeil 9ee8feaf9d fix(terminal): stop workspace activation from opening a fresh tab per orphaned counter-id PTY (#40950)
* fix(terminal): stop workspace activation from opening a fresh tab per orphaned counter-id PTY

Activation adoption minted a new tab with initialPtyId for every unowned
PTY. For bare local counter ids ("3", "13") main never reattaches by id
alone on a non-attach spawn, so each visit started a fresh shell and the
orphan stayed orphaned, producing another empty tab next time.

Counter-id orphans now still try their recorded pane (the attach-only
path that can reattach them); only the fresh-id createTab fallback is
declined and reported via declinedPtyIds. The all-digit check moves to a
shared isLocalCounterPtyId helper used by main and the renderer.

Fixes #40920

Co-authored-by: Neil <neil@stably.ai>

* test(terminal): pin the clock in the orphan counter PTY adoption test

---------

Co-authored-by: Neil <neil@stably.ai>
2026-11-11 03:34:21 -08:00
Neil e9e77a5962 refactor: organize GitLab and Linear implementation owners (#41130)
* refactor: organize GitLab and Linear implementation owners

* fix: package moved GitLab parser and consolidate owner import
2026-11-11 03:30:03 -08:00
YohanandNeil 90e5072c8b fix(window): restore native fullscreen after a restart (#40540)
Persist windowFullScreen on enter/leave-full-screen (frozen once the window
starts closing) and re-enter fullscreen on reveal after the saved maximize,
skipping background launches. Ignore the spurious unmaximize macOS emits
while a launch-maximized window enters fullscreen so windowMaximized and
windowBounds keep the pre-fullscreen state.

Fixes #40510

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-11 03:29:12 -08:00
Wooseong KimandNeil 079b5de1ac fix(ai-vault): show the recorded folder workspace on session history chips (#41053)
Session History picked each session's workspace chip by matching cwd, so
when several folder workspaces shared one folder every row showed the
first workspace in the list. Prefer the live (non-archived) workspace
recorded in structuredSession.workspaceId on the session's host, and fall
back to the existing cwd match otherwise.

Fixes #41044

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-11 03:23:58 -08:00
Wooseong KimandNeil da8e4be7cb fix(workspace): focus the active split pane when Cmd+J or the tab switch menu selects a terminal (#41015)
Picking a split terminal tab from Cmd+J or the tab bar's switch menu
focused the first pane, because the picker already held focus and the
tab-wide focus query fell back to the first xterm textarea. Pass the
tab's stored activeLeafId to focusTerminalTabSurface (and to the paired
host activation) so input returns to the pane that was last active.

Co-authored-by: Neil <neil@stably.ai>
2026-11-11 03:13:12 -08:00
Wooseong KimandNeil e93c65f9ed fix(file-explorer): stop waiting to reveal paths the listing never shows (#41047)
The explorer drops node_modules and .git from every listing page, so a
reveal under them waited for a row that never appeared. The request stayed
pending and auto-reveal ignored later editor tabs.

getRevealTarget now cuts the reveal off at the first folder the listing
filter rejects. A nested hidden folder selects the folder that holds it; one
directly under the root clears the request. Hidden folders are never
expanded or read.

Fixes #41039

Co-authored-by: Neil <neil@stably.ai>
2026-11-11 03:07:48 -08:00
Wooseong KimandNeil 21ff9b8da2 fix(claude): exec Claude from the profile subshell so it leads the foreground group (#40962)
The Orca claude shell function launched Claude inside a ( ... ) subshell.
Bash can keep that subshell as the pane's foreground process, so Orca saw
"bash" instead of Claude. The subshell now unsets the claude function and
execs the binary, leaving Claude as a direct child of the pane shell.

Co-authored-by: Neil <neil@stably.ai>
2026-11-11 03:07:38 -08:00
Wooseong KimandNeil 00b8a78063 fix(droid): stop installing the unsupported PermissionRequest hook (#40612)
Factory Droid has no PermissionRequest hook event, so `droid doctor`
flagged the hook Orca wrote into ~/.factory/settings.json as unsupported.
The installer no longer registers it; reinstall drops only the
previously managed Orca command on that event and keeps user hooks.
Approval waits continue to come from PreToolUse and Notification, and
the now-unreachable PermissionRequest listener handling is removed.

Fixes #40607

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-11 03:07:28 -08:00
Wooseong KimandNeil aff87e9247 fix(sidebar): keep the activity bar position across restarts (#40891)
The right sidebar's Activity Bar Position lived only in renderer state, so
choosing Side reset to Top on the next launch.

Persist it with the other right-sidebar UI fields: PersistedUIState, the
paired-client update schema, the default and startup-fallback UI state, the
renderer write baseline and writer, and hydration. Profiles without the field
stay at Top, and hydration maps any value other than 'side' to 'top' so a
corrupt value cannot hide the activity bar. The ActivityBarPosition type
moves to shared ui-chrome-types so the persisted contract can use it.

Keep the field pairing-local for web clients, like sidebarOpen: older hosts
parse ui.set with a strict schema and would reject the whole update, so the
browser strips it from host writes and pins its own value on ui.get. Desktop
persists it through IPC.

Fixes #40887

Co-authored-by: Neil <neil@stably.ai>
2026-11-11 03:07:14 -08:00
Wooseong KimandNeil d56a5a6079 fix(plugins): hash dev workers with the same .orca skip as discovery (#40729)
Dev-folder plugins are hashed at discovery with DEV_FOLDER_SKIPPED_DIRECTORIES
(e.g. .orca/), but the worker activation integrity check re-hashed the whole
tree. Once Orca wrote typings into .orca/types, the activation hash no longer
matched the reviewed hash and the dev worker refused to start. Pass the dev
flag through to the integrity check so both hashes skip the same directories.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-11 03:01:48 -08:00
Vyacheslav Scherbinin fbda1db91e test(orchestration): keep scripted Codex homes in each test directory (#40964)
The scripted Codex fixture hard-coded /home/dev/.codex as the account
home on every platform. Startup now reads hook configuration from the
account home, so coordinator-worker tests stalled on macOS before the
scripted connection opened. Build the fake account home inside each
test's temporary fixture root and pass that root to every attach caller.
2026-11-11 03:01:39 -08:00
02e8b0c2a8 fix(skills): sort complete manifest paths before computing package identity (#40812)
Package identity hashed files in a segment-wise depth-first walk order, so a
file like references/refs.md sorted after references/refs/image.webp. The
manifest validators require complete paths in code-unit order, so such
skills failed with skill-bundle-manifest-path-order. Sort the complete
paths by code unit in both the runtime identity and the build-time manifest
generator, and cover the sibling file/directory layout with a round trip.

Co-authored-by: yukurust <76849725+yshi112358@users.noreply.github.com>
Co-authored-by: Neil <neil@stably.ai>
2026-11-11 02:56:01 -08:00