Commit Graph
4082 Commits
Author SHA1 Message Date
Brennan BensonandWooseong Kim 8515c1eb92 Name saved Claude and Codex accounts (#41824)
Let users name, rename and reset labels for saved Claude and Codex accounts without changing credentials or restarting agents. Keep the sign-in email visible across Settings, account switchers, chat usage, CLI and phone surfaces, and identify the account in removal confirmations.

Tracked in #21182.

Co-authored-by: Wooseong Kim <innocarpe@gmail.com>
2026-11-15 17:20:35 -08:00
47ef2ab264 Agent status changes stop republishing the whole session graph (#42104)
* Remove finished-agent retention and keep sleeping status with panes

* Fix legacy pane projection and sleeping-agent regression fixtures

* Cover sleeping display-only status in parked terminal coverage

* Keep pane conversation identity only across continuous agent observations

* Remove duplicate import and keep sleep fixtures type checked

* Preserve conversation boundaries across replays and inherited clocks

* Cover conversation map stability across a large status batch

* Bound conversation capacity work to changed pane owners

* Pass capacity classifiers their layout input directly

* Finalize conversation provenance once per status batch

* Keep paired snapshot tests focused on observable outcomes

* Type the conversation provenance test fixtures explicitly

* Consolidate agent session imports after main merge

* Preserve provider replacement evidence when resetting conversation continuity

* Separate retention deletion from sleeping agent display

* Restore migration row bucket comparison

* Skip unusable pane identities before title ownership lookups

* Refresh conversation titles when their owning pane changes

* Update completion test sound mock after module move

* Keep finished agent status with sleeping panes and update agents by key

* Forward sleeping pane status and scope paired tab updates

* Preserve keyed selectors and compiler invalidation through final checks

* Keep bound store hooks visible to the compiler and measure published links

* Install provenance measurement before factory capture

* Use a static store hook and name presentation metadata once

* Preserve keyed freshness and atomic agent status publication

* Preserve remote folder dashboard regression after suite retirement

* Model pane wake before live identity reobservation in regression

* Share keyed row transactions and finish main integration

* Align runtime fixtures with keyed agent status reads

* Keep status projections addressed and activity summaries current

* Retire empty workspace status summaries after their source leaves

* Use the standard store fixture for parked terminal graph tests

* Align status fixtures with app types and a fixed test clock

* test: capture stored terminal render failure details

* Read terminal titles and completion prompts from keyed agent status

* Compose foreground agent state in worktree test stores

* test: complete lineage list agent state fixture

* Keep sleeping completion when retiring process authority

* Run durable agent-hook status tests with Node SQLite

* Preserve sleeping Done when renderer retires its process

* Update terminal fixtures for process retirement

* Spike addressed renderer agent status publication

* Join status only against admitted mobile membership

* Scope status membership reconciliation and observe bindings by key

* Cover status admission and scoped replica recovery

* Name the status replica runtime owner type

* Read sleeping pane resume sources by key

* Bind sleep capture fixture to its live panes

* Bound status replica retirement and recover interrupted publication

* Pass the pane tree to the sleep capture fixture graph

* fix(status): skip non-UUID leaves, release phone frames on headless restore, avoid unbound tree scan

- Graph status bindings and replica membership skip leaves that can't carry a status row instead of throwing.
- The pre-seed phone gate only holds frames for the renderer generation that owes the seed; restoring headless authority redelivers the held worktrees.
- Status capture skips the leaf count when the tab has no terminal, and counts saved leaves only up to two.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(status): release held phone frames whenever the unseeded renderer loses the graph

Desktop builds without a headless fallback mark the graph unavailable but keep the renderer generation, so the pre-seed gate stayed shut until a window reopened.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* perf(status): reuse the capped saved-leaf count per immutable layout

Status churn on an unmounted tab with only a tab-level terminal no longer descends a deep saved split tree on every change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Preserve accepted completion identity through sleep

* Pass a nullable title to the status classifier

* Resolve accepted host status once and preserve delivery order

* Drop published sleep status when its host owner retires

* Use the supported remote completion test envelope

* Preserve published activity when filling completed status

* Update imports for main module moves

* Remove an unreachable native chat owner comparison

* Read host and unread card inputs by address instead of per root

A host-scoped sidebar card re-read every root's row and acknowledgement on
any store write, so one card with many sleeping roots paid for other
workspaces' updates. Card host filtering, the summary pill's unread state
and the workspace unread gate now first compare the workspace's projected
row revision and the changed keys of the tab-keyed layout/PTY maps and
the acknowledgement record. Only an addressed change re-reads the roots.
Acknowledge and unacknowledge annotate their writes so readers can skip
keys they don't show.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Correct sleeping pane test imports after module moves

* Combine duplicate subscription test imports

* Record addressed acknowledgement deletions on row drops

* Type subscription fixture key set for string readers

* Keep accepted updates complete after observer failures

* Seed the send picker with its SSH terminal identity

* Correct status publication imports after preload module move

* perf(layout): skip unused normalization reports in pane commands (#42615)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Clarify cleanup pinning and ignored-file protection (#42616)

* test: remove 55 low-value suites and assertion driver (#42605)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)

Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* test: remove 78 low-value suites and trim redundant cases (#42621)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* Keep a host card's unchanged agent rows after filtering out another host's pane

Re-lineage clones every row once a host-scoped card filters a row out, so an unrelated pane's status write rebuilt the card's row array and re-ran its signal and rollup memos. Reuse unchanged rows as main's sidebar row selector does.

* Document the runtime stub cast in the status admission test

* Await graph publication in the phone projection status tests

* Share the renderer status binding check and move graph tab-id validation out of the window graph

Main's async graph publication grew session-window-graph past the 300-line limit; the binding predicate now has one owner beside its capture path.

* Seed the Copy Session ID shortcut test through keyed agent status

* Restore the reviewed status binding checks and move the remount check instead

Keeps the capture path's lookup behind its UUID and changed-worktree guards; the window graph stays under the line limit by moving the PTY remount check to the graph promotion base.

* Seed the graph payload partition test through keyed agent status

* fix(agent-status): retry status publication after a failed or superseded graph sync

An inactive sender now asks for a graph sync on each status change (base got this
retry from agentStatusEpoch in the sync key), and a superseded ack parks the sender
until the next accepted graph instead of stopping it.

* fix(agent-status): don't stage status changes while a snapshot is pending

A parked sender kept tombstones for every removed occupant; the next snapshot
recaptures every row and main clears its replica on snapshot.

* fix(agent-status): don't start renderer status publication in paired web clients

The web stub answers every batch with superseded; with superseded now re-arming
on each accepted graph, a web sender would resend snapshots and request graph
syncs for nothing.

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <alpha-eng@stably.ai>
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: BingZ <zzb@gxsmjx.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 17:18:06 -08:00
Neil aed7718884 refactor: organize shared editor and feature contracts (#42832)
* refactor: group shared editor and feature contracts

* test: retain WSL phone refusal semantics without copy checks
2026-11-15 17:13:07 -08:00
OrcaWinandOrcaWin fba4470c6e test: remove 50 low-value suites (#42888)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 17:02:20 -08:00
OrcaWinandOrcaWin 0175b256a7 test: remove 48 low-value suites (#42883)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 16:32:28 -08:00
OrcaWinandOrcaWin af6c01dd9e test: remove 50 low-value suites (#42878)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 16:13:55 -08:00
OrcaWinandOrcaWin 2dadb11039 test: remove 46 low-value suites (#42874)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 15:58:18 -08:00
OrcaWinandOrcaWin 0b839cedad test: remove 40 low-value suites (#42866)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 15:40:33 -08:00
Brennan Benson 9f3fcd65ad fix(session): remove a deleted workspace's saved session state (#42580)
* fix(session): drop a removed workspace's saved session state everywhere

Workspace removal is now driven by one per-field table, main's terminal-membership
rebase no longer re-writes empty rows for worktrees the window stopped listing, and
the post-scan local prune also drops saved session state of worktrees whose folders
are gone (keeping unsaved drafts, archived, active and otherwise-owned workspaces).

* fix(session): address review pass 1 on deleted-workspace session cleanup

Match Windows path casing for protected metadata, filter cleanup candidates before
probing paths, batch recency deletion, count only references removal deletes, and
keep paused WSL moves out of repo removal.

* fix(session): keep repo removal's existing WSL freeze guard placement

* fix(session): count only row owners removal can delete

* refactor(session): let repo removal rely on shared owner removal

Drop repo removal's per-field loops that the shared owner removal already covers,
remove type assertions from the new tests, and lower the layout-writer baseline
(net four fewer main-process writers; the new cleanup module adds two).

* refactor(session): read session record rows through a type guard

* fix(session): drop default-tab flags of worktrees a loaded repo no longer lists

QA found the window kept these flags for deleted workspaces and saved them back
after main removed them, so cleanup kept re-selecting those workspaces.

* fix(session): address CodeRabbit on deleted-workspace cleanup

Match unsaved-draft owners path-equivalently, drop rejected unified tab and group
records when the rebase skips a dropped worktree, and pin the POSIX test fixtures'
platform.

* fix(session): address council review on deleted-workspace cleanup

Keep default-tab flags any worktree list still shows, read only eligible
candidates' files for the draft guard, drop a dropped worktree's active-tab entry
in the rebase, and save only the local session after cleanup.

* fix(session): keep a workspace marked archived without an archived checkout

* fix(session): follow the moved workspace-scope module after merging main
2026-11-15 15:33:52 -08:00
OrcaWinandOrcaWin d566727ad4 test: remove 55 low-value suites (#42858)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 15:22:51 -08:00
Brennan Benson df15cdfe89 Stop abandoned Git children before starting queued work (#42562)
* fix(git): retire native process groups after abnormal stops

* fix(git): drain worker output after group retirement

* test: retain descendant cleanup until liveness assertion passes
2026-11-15 23:10:22 +00:00
OrcaWinandOrcaWin c3ae5fbe6a test: remove 57 low-value suites (#42851)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 15:07:55 -08:00
OrcaWinandOrcaWin db41b72236 test: remove 32 low-value suites (#42831)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 14:53:15 -08:00
Brennan BensonandClaude Opus 5.5 ec4f7c6d86 fix(native-chat): keep chats an older Orca saved after a downgrade (#42783)
* fix(native-chat): keep chats an older Orca saved after a downgrade

After upgrading to the SQLite chat store, going back to an older Orca and
upgrading again hid everything the older build wrote: chats it started never
appeared, and turns it added to chats already converted never showed.

Each chat now records the original journal revision it was converted from.
On every launch, before the store opens, chats whose original moved on are
kept: a chat this file hasn't converted joins as itself and converts from the
current original; a converted chat the older build continued is kept as a
second chat beside it holding the older build's history. Nothing is deleted
or merged, and the original journal is never written. Attachments the older
build claimed stay claimed so the sweeper keeps their files.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(native-chat): retry chats an older Orca saved until they are kept

- A failed chat leaves the original unabsorbed, so the next launch retries it
  instead of taking its revision as shown.
- Every chat gets a baseline revision at the first copy (record-only chats
  too), so a chat deleted here stays deleted unless the older build writes it.
- Chats converted before revisions were kept are filled in once, and only
  while the original is unchanged.
- The original's tabs and claims are read once per pass, and the pass is
  skipped while the original's file identity, now including its WAL's, is
  unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(native-chat): fill in revisions only for an untouched original, and show kept chats

- Chats converted before revisions were kept are filled in only when the
  original's identity matches exactly (a clean WAL); any other case runs the
  full pass, which can only add chats.
- A chat new to this file gets a tab; one it already holds keeps its
  visibility here. A file that never recorded its tab index records it with
  every chat shown, so a kept chat isn't hidden behind client-derived tabs.
- Claims are grouped without copying arrays.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(native-chat): show every chat an older Orca wrote, even one closed here

A chat closed in the new build and then continued in the older build stayed
hidden; it now gets its tab back. The test's row helper uses a type guard
instead of a cast.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* chore: keep the audit-tools lockfile as on main

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(native-chat): reread kept-chat tab state after a failed chat; no extra stat

A chat whose transaction rolled back left the pass's in-memory tab state
ahead of the file, so a later chat could skip recording the tab index. The
pass now rereads it after a failure. The original's absence comes from the
receipt's own stat instead of a separate sync existence check.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test: keep the chat store's original-journal provenance when seeding record state

The seed helper cleared all store metadata, including the receipt and per-chat
revisions only the chat store writes, so a later launch looked like a file that
had never recorded them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(native-chat): recheck the original before taking its revisions as current

Revisions filled in for files converted before revisions were kept now commit
only if the original's identity is unchanged after reading them, so a write
by another process mid-pass is absorbed next launch instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-15 14:30:46 -08:00
fb193c8e09 fix(i18n): finish desktop localization leftovers (#36787)
* fix(i18n): finish desktop localization leftovers

Use standalone Japanese forms for Recent, translate worktree palette
screen-reader labels, and keep German nouns capitalized when joining
tool-run clauses.

* fix(native-chat): resolve moved async question module in journal status

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: Neil <neil@stably.ai>
2026-11-15 13:51:14 -08:00
OrcaWinandOrcaWin 6161632e6c test: remove 34 low-value suites (#42822)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 13:45:47 -08:00
Neil 69cfecdf70 refactor: organize shared lifecycle and runtime owners (#42792) 2026-11-15 13:18:34 -08:00
OrcaWinandOrcaWin cbbdc26c63 test: remove 16 low-value suites and trim process/stream cases (#42805)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 13:02:38 -08:00
Brennan Benson c120b5bfb3 fix(antigravity): skip the hook script and python3 outside an Orca pane (#42790)
agy runs Orca's hook on every message and before and after every tool call.
Outside Orca the command still started two shells and python3 before the
script noticed ORCA_PANE_KEY was empty: about 0.1s per hook, ~0.2s per tool
call, even after Orca was uninstalled (#42601).

The /bin/sh -c command now checks ORCA_PANE_KEY first, like Grok's. Outside a
pane it prints the reply the script would have printed and drains stdin in
the background, so hosts that keep stdin open (ACP) never block.
2026-11-15 12:20:03 -08:00
e516efcb61 Keep finished agents marked Done while their panes sleep (#41793)
* Remove finished-agent retention and keep sleeping status with panes

* Fix legacy pane projection and sleeping-agent regression fixtures

* Cover sleeping display-only status in parked terminal coverage

* Keep pane conversation identity only across continuous agent observations

* Remove duplicate import and keep sleep fixtures type checked

* Preserve conversation boundaries across replays and inherited clocks

* Cover conversation map stability across a large status batch

* Bound conversation capacity work to changed pane owners

* Pass capacity classifiers their layout input directly

* Finalize conversation provenance once per status batch

* Keep paired snapshot tests focused on observable outcomes

* Type the conversation provenance test fixtures explicitly

* Consolidate agent session imports after main merge

* Preserve provider replacement evidence when resetting conversation continuity

* Separate retention deletion from sleeping agent display

* Restore migration row bucket comparison

* Skip unusable pane identities before title ownership lookups

* Refresh conversation titles when their owning pane changes

* Update completion test sound mock after module move

* Keep finished agent status with sleeping panes and update agents by key

* Forward sleeping pane status and scope paired tab updates

* Preserve keyed selectors and compiler invalidation through final checks

* Keep bound store hooks visible to the compiler and measure published links

* Install provenance measurement before factory capture

* Use a static store hook and name presentation metadata once

* Preserve keyed freshness and atomic agent status publication

* Preserve remote folder dashboard regression after suite retirement

* Model pane wake before live identity reobservation in regression

* Share keyed row transactions and finish main integration

* Align runtime fixtures with keyed agent status reads

* Keep status projections addressed and activity summaries current

* Retire empty workspace status summaries after their source leaves

* Use the standard store fixture for parked terminal graph tests

* Align status fixtures with app types and a fixed test clock

* test: capture stored terminal render failure details

* Read terminal titles and completion prompts from keyed agent status

* Compose foreground agent state in worktree test stores

* test: complete lineage list agent state fixture

* Keep sleeping completion when retiring process authority

* Run durable agent-hook status tests with Node SQLite

* Preserve sleeping Done when renderer retires its process

* Update terminal fixtures for process retirement

* Read sleeping pane resume sources by key

* Bind sleep capture fixture to its live panes

* Pass the pane tree to the sleep capture fixture graph

* Preserve accepted completion identity through sleep

* Pass a nullable title to the status classifier

* Resolve accepted host status once and preserve delivery order

* Drop published sleep status when its host owner retires

* Use the supported remote completion test envelope

* Preserve published activity when filling completed status

* Update imports for main module moves

* Remove an unreachable native chat owner comparison

* Read host and unread card inputs by address instead of per root

A host-scoped sidebar card re-read every root's row and acknowledgement on
any store write, so one card with many sleeping roots paid for other
workspaces' updates. Card host filtering, the summary pill's unread state
and the workspace unread gate now first compare the workspace's projected
row revision and the changed keys of the tab-keyed layout/PTY maps and
the acknowledgement record. Only an addressed change re-reads the roots.
Acknowledge and unacknowledge annotate their writes so readers can skip
keys they don't show.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Correct sleeping pane test imports after module moves

* Combine duplicate subscription test imports

* Record addressed acknowledgement deletions on row drops

* Type subscription fixture key set for string readers

* Keep accepted updates complete after observer failures

* Seed the send picker with its SSH terminal identity

* perf(layout): skip unused normalization reports in pane commands (#42615)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Clarify cleanup pinning and ignored-file protection (#42616)

* test: remove 55 low-value suites and assertion driver (#42605)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)

Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* test: remove 78 low-value suites and trim redundant cases (#42621)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* Keep a host card's unchanged agent rows after filtering out another host's pane

Re-lineage clones every row once a host-scoped card filters a row out, so an unrelated pane's status write rebuilt the card's row array and re-ran its signal and rollup memos. Reuse unchanged rows as main's sidebar row selector does.

* Seed the Copy Session ID shortcut test through keyed agent status

* Seed the graph payload partition test through keyed agent status

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <alpha-eng@stably.ai>
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: BingZ <zzb@gxsmjx.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 11:38:40 -08:00
Kelvin Amoaba b8c8d54461 fix(browser): run unwatched serve browser tabs at a low frame rate (#42660)
* fix(browser): run unwatched serve browser tabs at a low frame rate

Offscreen serve pages composite on their own 60 fps frame clock even with
painting stopped, so every unwatched tab kept the GPU and its renderer busy.
Tick unwatched pages at 5 fps and raise them to full rate while a command,
capture or screencast lease needs frames, keeping full rate for 20 s after so
an agent's next step finds a fresh frame.

* fix(browser): reapply the serve page frame rate when a navigation commits
2026-11-15 19:18:59 +00:00
Neil 9b3737e5e0 refactor: organize shared agent accounts and usage owners (#42781) 2026-11-15 11:06:48 -08:00
Neil ad29834900 refactor: organize shared concurrency and text primitives (#42777) 2026-11-15 10:28:45 -08:00
mia-ambrandNeil c67c705a4c docs: correct Windows verification and contributor script paths (#42766)
Align the Windows update harness docs and CLI help with the implemented
cold-restore/survival profiles, document the daemon-log reader, drop
links to unavailable plan/postmortem docs, and fix relocated script and
source paths in freeze-repro, process-host, and crash-survival docs.
Remove stale French Windows RC claims in favor of the stable latest asset.

Fixes #42765

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 10:22:04 -08:00
Neil 31b23b84d4 refactor: organize shared input and terminal protocols (#42772)
* refactor: organize shared input and terminal protocols

* refactor: align input cleanup validation selectors
2026-11-15 09:33:02 -08:00
Brennan BensonandClaude Opus 5.5 eec5ebfe7a Free idle hidden desktop browser pages (#40653)
* Bound retained desktop browser guests by idle page count

* Type the browser guest retention regression fixtures

* Update document visibility after React commits

* Preserve current page recency and private document audio protection

* Avoid observer handshakes on child-frame load completion

* Complete the browser certificate replay WebContents fixture

* test(browser): complete guest protection fixture contracts

* fix(browser): retain the saved page catalog after guest reclamation

* fix(browser): preserve inventory ownership and global tab order

* fix(browser): scope inventory ownership work to browser workspaces

* Complete browser cleanup mocks after main sync

* fix(browser): retain edited documents and earlier history

* test(browser): complete document guest history fixture

* test(browser): assert history transition publication

* Restore reclaimed browser pages before commands and retain active owners

* Fix native idle-page eligibility and retain canonical reclaim order

* Keep browser inventory recovery fixtures faithful to saved pages

* fix(browser): retry eligible guests and avoid default debugger acquisition

* fix(browser): publish owner protection before discard retries

* test(browser): isolate protection acquisition before release

* test(browser): keep preview input fixture native-shaped

* Fix browser lifecycle fixture typecheck coverage

* fix(browser): finish guest discard admission before replying

* fix(browser): retire only the hidden page surplus

* fix(browser): retain cold recovery and modal ownership boundaries

* test(browser): complete successful native load before stopping

* Preserve browser page ownership across profile replacement

* Typecheck connected browser profile fixtures in their owning project

* Import browser disposal operations from their owning module

* WIP: interrupted command-target repair (stopped 11-14 for Brennan's no-cap ruling)

* Keep browser commands on the selected page after idle discard

* Limit page-close routing cleanup to its current references

* Guard page close against unrelated routing work

* Type the routing retention probe by its owner

* Add a Memory Saver setting for idle browser pages

Settings > Browser gets a Memory Saver switch (on by default, kept under the
existing kill-switch key) and an "Unviewed for" hours field (1-168, default 4).
Main re-keys idle deadlines live from when each page hid, so turning it off
stops pending frees and changing the hours applies without a restart.

* Let main alone gate Memory Saver and key idle deadlines by hide time

Changing the hours no longer walks every tracked page: the heap is keyed by
when each page hid and the shared offset is applied at the head. The renderer
no longer vetoes on the setting or reinstalls its listener on toggle, so a
toggle sends no visibility replay and can't strand an in-flight page.

* Document the fixture casts in the browser inventory publication test

* Await the now-async window graph sync in browser inventory tests

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-15 09:14:11 -08:00
Neil a616643671 refactor: organize shared project and workspace modules (#42757) 2026-11-15 08:35:07 -08:00
Neil c3a681f5b1 refactor: group process and platform modules by ownership (#42742)
* refactor: group process and platform modules by ownership

* refactor: preserve moved module workflow routing

* refactor: preserve native loader and embedded bundle origins
2026-11-15 07:23:28 -08:00
Neil fce620d991 refactor: organize shared telemetry, education and platform contracts (#42713)
* refactor: organize shared telemetry, education and platform contracts

* fix(agent-status): retain transcript polling when agent IDs resolve
2026-11-15 05:44:50 -08:00
NeilandClaude Opus 5.5 cc7412f6b5 fix(cli): show the invoked command name (orca-ide) in help and suggestions on Linux (#42711)
On Linux the desktop app installs its CLI as `orca-ide` (GNOME's screen
reader owns `orca`), but help text, typo suggestions, missing-subcommand
hints, and runtime-unavailable hints all printed `orca`, so copied commands
launched the screen reader. Resolve the invoked command name (Orca terminal
shim via ORCA_CLI_COMMAND, `orca-dev` for dev launchers, `orca-ide` for the
Electron-run-as-node app launcher, `orca` elsewhere) and render it in those
outputs. macOS/Windows and SSH Node CLIs keep `orca`.

Fixes #42682

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 04:42:42 -08:00
Neil 54861a1c1e refactor: group browser and speech modules by ownership (#42702) 2026-11-15 04:02:31 -08:00
Brennan BensonandClaude Opus 5.5 ed507d41f4 fix(native-chat): open chats saved by journals that predate later tables (#42696)
* fix(native-chat): open chats saved by journals that predate later tables

A journal last opened by v1.4.219 through v1.4.245 has no outcome tables. The
new store reads that file read-only and never adds them, so converting any of
its chats failed with "no such table: journal_outcome_epochs" and no chat opened.

The original is now opened as the old writable open would have shaped it:
every table this build's legacy open would create but the file lacks reads as
empty through a private TEMP table. The file is never written. The profile
copy's per-table version guard and the empty-chat table guard are no longer
needed and are removed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(native-chat): keep refusing a schema-4 journal missing its record tables

Only tables the file's version could legitimately lack are presented as empty.
The PR-watch counter is read from the file itself, not a TEMP sequence table.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* chore: record the legacy source opener in the worker-only SQLite baseline

It runs only on the chat store's writer and reader worker threads, like the
other journal files listed there; the two files it replaced shrink.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-15 03:59:53 -08:00
NeilandJinwoo-H 409ce31fb4 fix(network): treat socket type-of-service failures as best effort (#42700)
undici's HTTP/1 writer calls socket.setTypeOfService before each write,
outside any fetch promise. On macOS the syscall fails with EINVAL once the
peer has reset the socket (VPN, Wi-Fi switch, proxy), so a network change
became an uncaught main-process exception and a modal error dialog. Treat
the TOS syscall as best effort, as Node already does on Windows; the write
then fails through undici's normal ECONNRESET path. Argument validation
errors still throw.

The test resets a real peer connection and calls setTypeOfService on the
reset socket, reproducing the native EINVAL on macOS.

Fixes #39579

Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
2026-11-15 03:01:10 -08:00
506d116ee3 Move saved server reads and writes off the main thread (#42253)
* Move environment store operations off the main thread

* Preserve CLI startup speed with the serialized environment owner

* Handle absent paired host labels in the producer regression fixture

* Preserve publication ownership and copy selected environment results

* Correct publication and WSL readiness regression fixtures

* Include environment store worker in deployed server artifacts

* Check fresh listing publication across an intervening store update

* Await store-backed results in new recovery coverage

* Retire failed page publications and retain CLI worker support entries

* Unpack environment store support modules for the installed CLI

* Align async store callers with their return contracts

* Avoid hardening work for absent environment store files

* Keep permission repair bounded to one hardening attempt

* Align store test fixtures and await pairing replacement

* Use the semantic store operation for external pairing fixtures

* Provide the live sender frame in the timed subscription fixture

* Share pending server lookups and settle retired phone requests

* Keep the relay error type import

* Keep status ownership and transport imports acyclic

* Await replacement pairing in status retirement cases

* Keep asynchronous server rows bound to their admitted pairing

* Keep inventory snapshots and queued delivery at one publication boundary

* Await saved-host and graph test setup through publication completion

* Finish async fixture types and remove foreground timing probe

* Await renderer surface transitions in process identity coverage

* Await nested graph publication fixtures through their callers

* Await restored pane graph publication before hook assertions

* Include imported store worker and sidebar files in web typecheck

* Prepare saved host storage in source-based WSL test rigs

* Await saved server lookups in the source retirement diagnostic

* Preserve newer WSL status across async saved-host reads

* Fence stopped probes when a newer WSL Ready arrives

* Keep saved WSL host selection covered when admission is off

* Check WSL probe ownership after async admission

* Preserve WSL stop authority without cancelling Ready persistence

* Prune removed WSL E2E real-time wait from flaky-test baseline

* Limit WSL callback invalidation to confirmed stops

* Retire pending WSL notices on every confirmed stop

* Close the WSL picker dialog explicitly between scenarios

* perf(layout): skip unused normalization reports in pane commands (#42615)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Clarify cleanup pinning and ignored-file protection (#42616)

* test: remove 55 low-value suites and assertion driver (#42605)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)

Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* test: remove 78 low-value suites and trim redundant cases (#42621)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* Keep quit teardown within the source line budget

---------

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <alpha-eng@stably.ai>
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: BingZ <zzb@gxsmjx.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 02:45:45 -08:00
Neil 7f38c5d004 refactor: group shared agent and skill contract owners (#42620)
* refactor: group shared agent and skill contract owners

* chore: regenerate RPC catalog import ordering
2026-11-15 02:00:23 -08:00
Neil af82fa8634 feat(plugins): check host API calls against released Orca at validation (#42662)
* feat(plugins): check host API calls against released Orca at validation

orca plugin validate and pnpm validate:plugin now read the literal host
method names a plugin's worker, panel and editor code calls, and report
methods this Orca does not have, proposed methods, wrong-surface calls,
and methods newer than engines.orca (unless guarded by orca.host.has).
Deprecated methods warn with a stable 'deprecated host method <name>'
prefix. Adds the Host API minor to first-Orca-release table.

* fix(plugins): avoid host-call validation false positives

Guarded proposed and wrong-surface calls warn instead of failing, and an orca.api.minor comparison counts as a floor guard. Only host.call/has receivers count, comments are stripped, files are stat-capped and read through their real path inside the plugin, root-relative script sources resolve, and each file is read once.

* fix(plugins): keep has-guarded host calls as errors before orca.host.has existed

* fix(plugins): fail only certain host-call problems and bound the scan

Floor and wrong-surface findings are warnings, since guards and per-surface reachability are not visible to a text scan; unknown and proposed methods without a literal has guard stay errors. Read attempts, references per file and queued files are capped, has?.() counts as a guard, and HTML script and comment scanning is linear.

* fix(plugins): treat any orca.host.has call as feature detection for unknown methods

* build(cli): ship the host-call validation module with the packaged CLI
2026-11-15 01:51:33 -08:00
OrcaWinandOrcaWin e0896fdb27 test: remove seven low-value suites and trim filesystem cases (#42688)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 01:39:01 -08:00
OrcaWinandOrcaWin 4e834bf939 test: remove 11 low-value suites and theme/NVM policy cases from combined audit (#42678)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 01:25:47 -08:00
OrcaWinandOrcaWin 738aca5936 test: remove 4 low-value suites and narrow notification store cases from combined audit (#42677)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 01:17:01 -08:00
OrcaWinandOrcaWin fbeb88d6f6 test: remove 4 low-value suites and narrow artifact policy cases from combined audit (#42672)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 01:06:14 -08:00
OrcaWinandOrcaWin 03bb368ad6 test: remove 14 low-value suites and one standalone driver from combined audit (#42670)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 00:57:44 -08:00
OrcaWinandOrcaWin 07073db317 test: remove 31 low-value suites from combined audit (#42666)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 00:41:51 -08:00
265b5c88ab refactor(backend): split orcad and desktop startup into movable modules (#42537)
* refactor(backend): extract live core startup modules

* refactor(backend): import orcad profile startup directly

* refactor(backend): address review — keep smoke load check covering activation, drop thin wrappers and import-graph test

* perf(layout): skip unused normalization reports in pane commands (#42615)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Clarify cleanup pinning and ignored-file protection (#42616)

* test: remove 55 low-value suites and assertion driver (#42605)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)

Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* test: remove 78 low-value suites and trim redundant cases (#42621)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

---------

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <alpha-eng@stably.ai>
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: BingZ <zzb@gxsmjx.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 00:41:29 -08:00
OrcaWinandOrcaWin 7b5f3176f3 test: remove 287 low-value suites from combined audit (#42659)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 00:17:59 -08:00
OrcaWinandOrcaWin 390e62e1cd test: remove 47 low-value test suites (#42648)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 23:56:56 -08:00
Kelvin Amoaba d6ca3aae25 fix(computer): report an unreachable Linux accessibility bus instead of crashing (#42642)
* test(computer): run the Linux bridge against an unreachable accessibility bus

* fix(computer): report an unreachable AT-SPI bus instead of aborting the Linux bridge

* test(computer): read the bridge response past the registry banner

* test(computer): keep the healthy-bus check off the desktop's X display
2026-11-15 07:39:44 +00:00
OrcaWinandOrcaWin e58da9a72b test: remove 52 low-value suites and trim journal samples (#42640)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 23:38:15 -08:00
Brennan Benson d85fa2f5d2 perf(native-chat): batch background reply status publications (#42550)
* perf(native-chat): reuse deterministic session pane identity

* perf(native-chat): batch streaming status facts between transitions

* perf(native-chat): keep pending prose off focus reconciliation

* test(native-chat): model live panes in switch regression fixture
2026-11-14 23:30:37 -08:00
OrcaWinandOrcaWin 9ebc9ce729 test: remove 54 low-value test suites (#42636)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 23:23:59 -08:00
OrcaWinandOrcaWin 0ec31ab47b test: remove 55 low-value suites and trim redundant cases (#42633)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 23:08:08 -08:00