Commit Graph
21205 Commits
Author SHA1 Message Date
Brennan Benson 7cd31cfbe5 Merge main into native chat SQLite host 2026-11-11 11:19:40 -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
Brennan Benson 5a49f7faf8 Merge main into native chat SQLite host 2026-11-11 10:25:59 -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
Brennan Benson e07a30a8eb perf(native-chat): batch bounded fork metadata and output reads 2026-11-11 09:43:15 -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
Brennan Benson 0e052bb39b fix(native-chat): retire readers after fork setup failure 2026-11-11 09:29:47 -08:00
Brennan Benson d7541195d1 test(native-chat): await subscriber catch-up completion 2026-11-11 09:18:25 -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
Brennan Benson b76334cd54 perf(native-chat): bound fork scratch presentation work 2026-11-11 08:52:55 -08: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
Brennan Benson 6409e04b23 fix(native-chat): synchronize CI fixtures and type mailbox receipts 2026-11-11 08:12:03 -08:00
Brennan Benson 9c608dbf77 perf(native-chat): batch bounded fork metadata reads 2026-11-11 07:44:24 -08:00
Brennan Benson 6460e99486 perf(native-chat): reuse shortened history wire forms 2026-11-11 07:19:29 -08:00
Brennan Benson 4a34549647 Merge origin/main into native chat SQLite host 2026-11-11 07:12:42 -08:00
Brennan Benson 008e21129d perf(native-chat): reuse history admission facts 2026-11-11 07:06:58 -08:00
Brennan Benson 5866640174 perf(native-chat): select the existing latest-turn index 2026-11-11 07:01:38 -08:00
Brennan Benson 907a0eea1c fix(native-chat): preserve Stop transitions and admitted forms 2026-11-11 06:58:20 -08:00
Brennan Benson 2e72ddd2b3 test(orchestration): update shared mail source support 2026-11-11 06:52:00 -08:00
Brennan Benson b04aa45b33 fix(native-chat): bound queued-image history admission 2026-11-11 06:37:27 -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
Brennan Benson 225c2b27d7 fix(native-chat): version persisted item presentations 2026-11-11 05:57:47 -08:00
Neil 8ae482379b refactor: use concrete RPC and orchestration owners (#41158) 2026-11-11 05:35:36 -08:00
Brennan Benson d24c8b2e00 Merge origin/main into native chat SQLite host 2026-11-11 05:33:44 -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
Brennan Benson 804c9c6043 test(native-chat): require the octet-length column flag 2026-11-11 04:54:38 -08:00
Brennan Benson a0e9c156da perf(native-chat): place item metadata before large forms 2026-11-11 04:45:13 -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
Brennan Benson 7a5ffeb7c7 test(orchestration): diagnose surviving timers through public SQL reads 2026-11-11 04:42:00 -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
Brennan Benson b7d55d92f9 fix(orchestration): preserve each mail check response 2026-11-11 04:21:43 -08: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
Brennan Benson 1144d3b86b fix(orchestration): reconcile owned mail before consuming checks 2026-11-11 03:54:22 -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