Commit Graph
17514 Commits
Author SHA1 Message Date
OrcaWinandOrcaWin 6ceacf927f test: remove 11 low-value suites and trim 17 others (#42989)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 22:39:11 -08:00
Kelvin Amoaba a2d17f8208 fix(native-chat): Skip and agent messages agree with the Codex question card (#42946)
* fix(native-chat): make Skip and agent messages agree with the async question card

Skip on a Codex async question card now saves the skipped row on the chat's host
record (agentSession.skipAsyncQuestions, modelled on cancelUsageLimitContinue), so
the status, the desktop card and the phone card all honour it. The host status read
no longer ends at another agent's message, matching the card's rule from #35758;
two partial indexes, created without a schema version bump, keep that read bounded.

* fix(native-chat): gate phone Skip on relay support; roll back only its own hide
2026-11-16 06:36:09 +00:00
Brennan Benson 5ff527c30b perf(worktrees): patch heads on HEAD-only watcher bursts instead of re-listing (#42941)
* perf(worktrees): patch heads on HEAD-only watcher bursts instead of re-listing

* fix(worktrees): fall back to re-list for headless or absorbed HEAD moves

* test(worktrees): cover orphan HEAD re-list fallback

* fix(worktrees): keep orphan fallback through merged scopes and patch hidden rows

* fix(worktrees): guard hidden-row head patches against stale listings and other hosts

* chore(worktrees): read detected rows through the selector; document test window cast

* chore(worktrees): read detected rows only through the selector

* fix(worktrees): skip the concurrent-head guard when no patch landed; keep pinned names on reattach
2026-11-15 22:31:48 -08:00
Brennan Benson 84f1c520a8 Keep one copy of Codex history shared by every account (#42614)
* Share Codex account history through folder links into ~/.codex

Each Codex account home keeps its login; its history folders become folder
links (junctions on Windows) into the user's ~/.codex, and Codex's databases
follow through a sqlite_home line in the account's own config. Migration is
automatic before the next launch in each home; the store's copy wins a name
conflict and the account's copy is kept beside it. The per-file history bridge,
its link pass and the WSL bridge are removed. Claude's merge-then-link moves to
a shared async module both providers use.

* Make account history moves safe under concurrency and keep the DB with the folders

Files move by link-then-unlink so a move never replaces an existing name, host
passes run one at a time per store, index markers are written before a move,
account-only folders are shared, lock folders are moved rather than deleted,
and sqlite_home is written only once a home's sessions are linked.

* Let the history pass own sqlite_home, link locks first, and index per store

The pass that links a home's folders now writes and removes its sqlite_home
line; the config mirror only carries it forward. thread-writer-locks is linked
before any history, index markers are kept once per store (hard-linked
duplicates included), WSL links the launched home before Codex starts, passes
queue per home in request order, and re-sharing after off then on works with
earlier conflicts still kept.

* Never overwrite on move, gate indexing on moves, and read the shared DB for backfill

Files move by link or exclusive copy; repeat conflicts get their own pending folder; secrets and
sandbox setup stay per home; the sqlite_home write retries against a concurrent mirror; indexing
waits until no move is running; backfill checks read the DB where sqlite_home puts it.

* Keep live writers' files, require both history links, and keep unmoved history on removal

Files move only by a new name for their inode; a home is shared only when sessions and
archived_sessions both link; reverted-thread rollouts get index markers; settled homes skip
repeat passes in either mode; account removal keeps a real history folder.

* Give resume test runtime-home mocks the account history step

* Keep unmoved WSL history on removal, prepare the launched home, and retry incomplete work

WSL account removal keeps real sessions/archived_sessions; a launch prepares the account it
returns even if the selection changed meanwhile; an incomplete unshare and a failed WSL index
pass stay eligible for a later launch; the guest helper rechecks the distro before each step.

* Keep pinned resumes reachable, finish interrupted unshares, and keep index work from racing moves

A pinned resume only shares; a launch re-prepares when the selection or setting changed; Orca's
sqlite_home line is read only at the config root; a writer-lock link elsewhere keeps the home
private; an unshare finishes its database move on retry; indexing keeps markers a newer move
recorded, retries an incomplete run on a later launch, and merges WSL marker lists.

* Move account history into a store one pass at a time and retry incomplete moves

Two homes merging into one store at once raced on its folders and stranded the second home's
history in its merge folder. Passes now run one at a time per store (host) and per distro (WSL),
a folder that appears mid-move is merged into, and a share with failed moves is not settled.

* Keep one rollout form in ~/.codex, record what sharing left behind, and guard Windows homes from older builds

- A rollout present as .jsonl and .jsonl.zst lands in the store in one form only; the other form moves to the home's .orca-set-aside-rollouts, never deleted.
- Each account home gets a versioned cleanup manifest: set-aside databases, left-behind rollouts with a background content check against the store, store twin pairs, and the shared streak.
- Native Windows homes get a renamed ownership marker before their first junction, so older builds refuse to use or delete them.
- Account removal keeps the set-aside rollouts and the manifest.

* Set a rollout form aside only beside its twin in the store, inventory leftovers off the launch path, and keep account databases on removal

- The .zst moves first and a form is kept out only when the store already holds its twin, so a failed move never leaves the store with neither form.
- The rollout inventory and store twin walk run in the detached check, not the awaited pass; manifest writes are serialized per home and a check applies only to unchanged files; checkpoints are time-spaced.
- A WSL check that runs out of budget resumes on a later launch instead of looping.
- The ownership check reads either marker in one step and the marker rename retries on Windows.
- Account removal keeps the account's Codex databases for the later cleanup release.

* Read the cleanup manifest through a type guard

* Read the cleanup manifest through a type guard over unknown

* Settle only a check's own request, skip queued WSL passes after quit, and validate manifest entries

- A pass finishing during a check keeps its new check request on host and WSL.
- A WSL pass queued before quit no longer starts guest work.
- Manifest rollouts must carry a path, size and mtime to be read.
- The store twin scan reuses the twin module's folder walk.

* Walk the store outside the manifest write and keep databases on removal only for shared homes

- The inventory writes only its own fields onto a freshly read manifest, so it never undoes a streak reset from another process and a launch never waits behind the walk.
- Account removal keeps the home's Codex databases only when the cleanup manifest shows the home was shared.

* Lock the cleanup manifest across processes and validate every field later passes read

- Manifest writes take a file lock, so a WSL check helper can't publish over another helper's streak reset.
- The guard also checks storePath, the content check's store facts, database entries and sharedPasses; anything else is rebuilt from disk.
2026-11-15 22:31:24 -08:00
Brennan Benson dc50f873ca Keep a slept workspace asleep when Orca relaunches (#42944)
* fix(sleep): keep a workspace asleep at quit from being reopened on relaunch

* fix(sleep): don't treat running agents' resume records as sleep in the startup fallback

* fix(sleep): keep the startup fallback unchanged for sessions saved without a shutdown list

* chore: prune workspace record read baseline

* style: format
2026-11-15 22:29:37 -08:00
3c1f02cf8c Rebuild phone snapshots only for workspaces whose inputs changed (#42934)
* 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.

* Rebuild phone snapshots only for workspaces whose inputs changed

Every runtime graph publication built per-workspace phone snapshot inputs
(owner resolution, narrowed maps, mounted-surface capture) for every retained
workspace before asking whether the cached snapshot could be reused. A gate
now runs first: a workspace reuses its snapshot without building inputs when
no shared input changed, no keyed write touched its tabs, it has no mounted
terminal, its own workspace-keyed sources are identical and its host tab
mapping revision is unchanged. Anything without keyed provenance falls back
to the previous full path. The ambiguous-tab-id set and the per-workspace tab
index are cached by their tabsByWorktree identity.

* Remove the now-unused single host tab mapping setter

---------

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 22:29:21 -08:00
Neil 05badcb087 test: remove one flaky queued-hold case, steady the Claude stop-contract fixture (#42980)
* test: remove a flaky queued-hold wire-contract case

It failed intermittently under CI load: its closing history read raced the journal's SQL reader
closing. It also reads private host state through collaboratorsForTests() and waits on real time,
both listed in docs/agents-md-refs/test-antipatterns.md.

* test: give the Claude stop-contract fixture's attach wait the same 10s as its actions

Under a loaded CI runner attach outlasted vi.waitFor's 1s default, so the compact-background test
failed with "expected 'starting' to be 'ready'" before reaching what it checks.
2026-11-15 22:22:37 -08:00
OrcaWinandOrcaWin 19aa1251dd test: remove 20 low-value suites and trim six others (#42978)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 22:15:36 -08:00
Kelvin Amoaba f375aba997 fix(mobile): make chat report buttons work in an isolated frame (#42954)
* fix(mobile): run chat report scripts in an isolated shell frame

* fix(mobile): theme chat visuals at handoff and pin the iOS frame to Android's

* test(mobile): probe the page origin by absolute URL from the visual
2026-11-16 06:12:04 +00:00
Kelvin Amoabaandintelmib 0af8a7e427 fix(source-control): offer Amp and Muse only for chat names, with an honest refusal elsewhere (#42923)
* fix(source-control): stop offering Amp and Muse for non-naming AI text

Amp and Muse can't take the read-only text task policy, so the policy refuses
them for everything but chat naming. The picker and the operation resolver
still offered them, and the refusal surfaced as "could not be started".
Keep the naming-only fact in the shared agent spec module and use it in the
resolver, every agent list for these actions, and the policy backstop.

* fix(source-control): keep recipe args before the prompt terminator

Muse ends its argv with `-- <prompt>`, so recipe args such as --model were
inserted after `--` and became prompt text.

Co-authored-by: intelmib <intelmib@gmail.com>

---------

Co-authored-by: intelmib <intelmib@gmail.com>
2026-11-16 06:07:30 +00:00
Neil b4878a5eae feat(plugins): clearer update review, approve from the toast, grouped approvals (#42953)
* fix(plugins): show only what an update adds in its review

The update review compared Before and After columns that mostly repeated what the user had already
approved, and labelled new custom editors, hooks, settings pages and status bar items with the
vague "Features that act for you". It now lists just the additions, naming each one (a new editor
names the file types it opens), and says so plainly when Orca couldn't compare the versions,
opening the full access list.

* fix(plugins): keep a failed comparison and every grant visible in the update review

- Says Orca couldn't compare whenever main sent no comparison, even when the source also moved, and
  opens the full access list then.
- Lists every new grant main asks about, not only the ones this plugin type can use.
- Names editor growth per editor id: new file types, files it now opens by default, else a generic
  line; waits for the installed manifest so the line doesn't change under the reader.
- "Adds panels" and "Reacts to more Orca events" replace "Panels" and "More events".

* feat(plugins): approve held updates from the toast, open the review anywhere, group approvals

- The review and the toast name each plugin's publisher ("Official · stablyai", "Community · …").
- The held-update toast lists each plugin with what it adds and the not-official warning when one
  applies, and approves in place when every update was compared and can install; otherwise, or
  for more than three plugins, "Details" opens the review.
- The review opens over the app instead of sending the user to Settings → Plugins.
- Several updates that need approval are one grouped review with a checkbox each and one
  "Approve & update", instead of a separate Review per plugin.

* fix(plugins): offer approval only once every addition is shown, keep late notices

- The toast and the review read the installed manifest with the preview, so "Approve & update"
  exists only once every line it approves is on screen; the toast also needs the installed entry.
- A notice that arrives while the toast installs stays on screen; a newer version of a plugin
  reloads its details instead of showing the old ones.
- Retrying in the toast skips the updates that already landed; an update whose bytes changed
  after review says it waits in Settings → Plugins instead of reporting success.
- In "Update all…", approvals beside plain updates start unticked; the not-official warning sits
  under its plugin's name and names the catalog owner.
- The toast e2e covers Details and approving in place.

* fix(plugins): a compact community badge and a history link in the update review

- "Community plugin · owner" with the warning icon replaces the not-official banner in the review
  and the toast; the trust advice shows on hover or focus.
- The version text links to the plugin's history on GitHub at the reviewed commit, and a moved
  repository is one short line instead of two URLs.

* refactor(plugins): share update loading and installing, keep the toast out of the store

- One loadUpdate and one installUpdates serve the review and the toast; both now say when an
  update's bytes changed after review.
- The notice store holds data only; PluginUpdateReviewHost renders the toast and the dialog.
- The update lines users approve are protected copy; the version link sits outside the checkbox
  label; a community plugin that runs no code gets the same "Community plugin" label, unmarked.
- Tests for notice merging and for approving only the reviewed fingerprint.

* fix(plugins): a warning Badge variant for the community badge; tests without casts
2026-11-15 22:05:03 -08:00
4f6a788951 fix(wsl-host): prune removed projects from the saved host catalog snapshot (#42150)
Removing a project on a WSL host left it in that host's saved repo.list
snapshot, so a restart while the distro was stopped re-seeded the removed
project into the sidebar. The repos:removeForHost handler now drops the
project from that host's snapshot after removing the row. Damaged or
missing snapshot entries are left untouched.

Co-authored-by: Neil <neil@stably.ai>
Co-authored-by: SeaBee <temp@seabee.me>
2026-11-15 22:04:45 -08:00
Hotragn Pettugani b3d1666118 fix(bitbucket): list commit statuses from the statuses endpoint (#42970)
GET .../commit/{sha}/statuses/build returns 405; only POST and GET with a key
exist there. Listing is GET .../commit/{sha}/statuses, so PR CI status was
always empty.

Fixes #42969
2026-11-15 21:59:33 -08:00
Pr1p 00f9ed8380 fix(setup): include setup exit code in the skipped-agent-startup message (#38585)
The wait-for-setup gate printed a bare "Setup failed; skipping agent
startup." with no reason, so users could not tell a failed setup step
from an Orca defect. Both the POSIX and Windows PowerShell waiters now
print the setup exit code and point at the Setup terminal, where the
failing output lives. Exit codes and agent gating are unchanged.

Refs #38473
2026-11-15 21:59:16 -08:00
OrcaWinandOrcaWin f6a212287e test: remove nine low-value suites and trim twelve others (#42976)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 21:53:40 -08:00
Wooseong KimandNeil 800b379cf0 fix(ports): open ports from runtimes without a browser engine in a desktop tab (#40623)
A managed SSH server (or a paired server whose pages are hosted on this
desktop) does not advertise browser screencast, so clicking a port under
Ports always failed with "Managed browser tabs are unavailable". When the
runtime cannot stream but the workspace already has a desktop browser
route, open the port through the same workspace browser-tab path that
links from that workspace use. Runtimes that can stream still create the
remote browser tab.

Fixes #40610

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 21:43:25 -08:00
ggpepperstechandNeil 6ee151d82e fix(stats): count PRs found through hosted review lookups (#42241)
The runtime branch PR lookup used by mobile returned found PRs without
recording them in host stats, so the Usage tab showed zero PRs for hosts
that relied on that path. Record found outcomes from the recent-reply
reuse, SWR snapshot, and fresh read paths; the existing URL dedup keeps
repeated reads from inflating the count.

Fixes #42235

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 21:43:12 -08:00
Brennan Benson b18f88a7e1 Finish superseded Claude replies without interrupting subagents (#42930)
* test(claude): cover superseded roots and finalized child streams

* fix(claude): retire root streams on supersede and reconciled block scopes

* test(claude): assert journal reasoning row shape

* test(claude): omit absent turn-start evidence

* fix(claude): preserve message identity until stopped and reconciled
2026-11-15 21:42:34 -08:00
Brennan Benson 7a36f95b5e fix(antigravity): offer every model in the managed Antigravity chat (#42950)
* fix(antigravity): name the client so older chat servers offer every model

* fix(antigravity): gate the host's identity on its launched version and cover naming sessions

* fix(antigravity): gate the managed identity on the release it launches

* test(antigravity): use a well-formed release id

* style: format identity wiring

* test(antigravity): read initialize params without a cast
2026-11-15 21:41:36 -08:00
OrcaWinandOrcaWin fedc37c479 test: remove seven low-value suites and trim five others (#42971)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 21:40:35 -08:00
Wooseong KimandNeil 5d2ff1ee6a fix(ssh): dial the corrected host after the form blurs (#40738)
Blurring Host copied the parsed hostname into the hidden configHost, so a
later Host edit saved the new name but still dialed the first one. Blur
no longer touches configHost; submit already falls back to Host, and
explicit SSH config aliases are left alone.

Fixes #40735.

Co-authored-by: Neil <neil@stably.ai>
2026-11-15 21:37:40 -08:00
OrcaWinandOrcaWin 493c5f3560 test: remove 12 low-value suites and trim seven others (#42968)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 21:21:43 -08:00
Neil 82d604fb64 feat(tab-bar): customizable icon row for the + menu (#40359) (#42936)
* feat(tab-bar): customizable icon row for the + menu's create actions (#40359)

The + menu's New Terminal/Browser/Markdown/Open Markdown/Mobile Emulator rows become one
row of icons. A gear at its end opens a customizer to reorder (drag or Alt+Up/Down), hide,
and assign shortcuts to each item; the icon strip scrolls sideways when plugin file types
overfill it. A turned-off Mobile Emulator shows under Hidden and can be turned back on from
there, and the intro callout's Hide now only removes it from the menu (with Undo).

Shortcut validation and saving move into useKeybindingActionEditor, shared with the
Settings shortcuts pane.

* fix(tab-bar): address review on the + menu icon row

- Move Reset Order and All Keyboard Shortcuts into a ⋮ menu in the customizer header.
- Give the floating panel its own layout and no emulator Off item (newTabMenuSurface).
- Escape closes the menu while an icon tooltip is shown; recording ends once focus leaves it.
- Row is labelled as a whole with aria-activedescendant on the chosen icon; e2e selectors
  target the icon buttons.
- Don't persist a turned-off emulator as hidden; normalize layouts on settings load.
- Reuse tab-strip resize/wheel helpers, share the recorder-focus hook, split the icon strip,
  use ShortcutKeyCombo in tooltips and an allowed elevation for dragged rows.

* fix(tab-bar): keep the create row React Compiler-clean and stop swallowing wheel when it fits

* fix(tab-bar): address CodeRabbit review on the + menu icon row

- Return both layouts in the paired-client settings projection.
- Keep unavailable items at their saved slot when re-saving a layout.
- Ignore shortcut saves that finish after a newer recording session started.
- Make the customizer scrollable; announce the chosen icon via a live region.
- Confirm the intro's Hide only after the write succeeds.
- Render compact recorder chips with ShortcutKeyCombo.
2026-11-15 21:18:01 -08:00
DomKingandNeil 6c6d7d33fe fix(mobile): remove regex lookbehind from the paired web bundle (#42582)
Older WebKit (iOS < 16.4) throws a SyntaxError when parsing regex
lookbehind, which breaks the paired mobile web bundle at load time.
Replace the two lookbehinds in shared code that ships to that bundle
with capture-group equivalents:

- jcode terminal title: (^|\S) anchors each run of status segments and
  is restored via $1, keeping long space runs linear.
- dictation near-miss sound key: capture the preceding vowel instead of
  asserting it.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 21:11:17 -08:00
OrcaWinandOrcaWin 1e15682aac test: remove eight low-value suites and narrow two others (#42963)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 21:07:16 -08:00
Liam Szefner 7c8666d011 fix(project-admission): keep Open as Folder prompt open on backdrop clicks (#42371)
On macOS the click that activates Orca after a Finder drag lands on the
dialog backdrop and dismissed the non-Git folder prompt, losing the drop.
Prevent outside interactions from dismissing NonGitFolderDialog; Escape,
Cancel, and Open as Folder still close it.

Refs #40013
2026-11-15 21:06:02 -08:00
Neil 3cfd47e1a0 refactor: group shared workspace and transport owners (#42945) 2026-11-15 21:01:55 -08:00
OrcaWinandOrcaWin 6d5af64e39 test: remove 12 low-value suites and narrow two others (#42956)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 20:46:51 -08:00
Neil b13f5c8cf5 fix(pr-refresh): never queue a cached visible follow-up as due now (#42955)
A visible row whose stored data is newer but for another HEAD made
scheduleVisibleFollowUp judge the follow-up as stale-head (due now), while
freshQueuedPROutcome kept serving the exact cached answer for the current
HEAD. The drain re-served that answer with no await until it went stale,
spinning the main thread for up to the refresh interval.

The follow-up is now never due before the outcome it was planned from
stops answering the queued read.

Fixes #42926
2026-11-15 20:40:04 -08:00
Neil 15329fd804 fix(plugins): label the code languages category "Languages" (#42947)
"Translations" now holds interface-language packs, so the plain "Languages" label is no longer
ambiguous.
2026-11-15 20:31:20 -08:00
OrcaWinandOrcaWin e9b1aabe73 test: remove 48 low-value suites (#42951)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 20:30:40 -08:00
Brennan Benson 6d2e6337b9 fix(antigravity): drop only the failed account type's token; keep Node mode off macOS/Linux agent commands (#42896)
Post-merge review of #41021 found two defects:
- A Gemini Enterprise sign-in whose saved token a fresh server can't use deleted
  acp_token.json (the personal sign-in) instead of acp_business_token.json.
- ELECTRON_RUN_AS_NODE=1 joined the managed server's environment on every platform,
  so commands an Antigravity chat runs (e.g. electron .) ran Electron as plain Node.
  Only Windows' BROWSER helper needs it on the server.
2026-11-15 20:20:06 -08:00
OrcaWinandOrcaWin 36bdeabc1d test: remove 55 low-value suites (#42931)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 20:18:27 -08:00
Brennan Benson 6df2fb11bc feat(accounts): show each saved Claude and Codex account's observed plan (#42917)
* feat(accounts): show each saved Claude and Codex account's observed plan

Settings > Accounts rows now show the plan Orca already observed for that
exact account ("Max 20x", "Pro", "Team"); unknown stays blank. The usage
roster's plan slot no longer shows "Unknown".

- Claude: read subscriptionType/rateLimitTier from the credential candidate
  already chosen, tolerantly; the tier only refines Max.
- Codex: keep the plan the app-server already returns with usage.
- Each successful Claude/Codex reading names the saved account and runtime
  slot it was read for; rows match that, never the roster's selection, so a
  switch in another window cannot paint one account's plan on another.
  Older hosts send no stamp and their rows stay blank.
- Remote rows use only the owner's account stream.
- A Codex workspace label that may itself name a plan is kept and gets no
  second plan.

* fix(accounts): keep plan attribution through Codex resets and spend-capped supplements

- Stamp the usage read that follows a reset-credit redemption with the
  redeemed home's account, so the row keeps its plan.
- Keep the backend plan when the HTTP supplement adds only a monthly window.
- Keep the Claude plan spelling Claude Code wrote.
- Remote scope ignores this desktop's usage pushes.

* fix(accounts): name the account on the reset reply and skip plans for hidden sections

- The reset reply replaces the renderer's usage state, so stamp it the same
  way as the published reading.
- A provider section hidden by Settings search builds no plan index.
2026-11-15 20:13:45 -08:00
Brennan Benson 313b7c949f fix: isolate stalled model discovery by account (#42247) 2026-11-15 19:55:49 -08:00
Kelvin Amoaba 20366fa992 fix(native-chat): show the reply before a background task hand-back in terminal chats (#42932)
* fix(native-chat): keep the reply before a background task hand-back in terminal chats

Claude's task-notification record opens a new turn, but the chat transcript
decoder dropped it, so the hand-back reply joined the prompt's turn and the
turn fold hid the reply before it. Chat reads now keep a wordless turn marker
there, and journal-less turn grouping and timing start a turn at it.

* fix(native-chat): keep tool results a task notification delivers mid-turn

* fix(native-chat): draw only the bar for the turn marker on mobile, not every empty system row
2026-11-16 03:18:07 +00:00
Jinwoo Hong 1f72e79911 fix(ui): open tooltips on keyboard focus only, not on restored focus (#42902)
* fix(ui): open tooltips on keyboard focus only, not on restored focus

Radix Tooltip opens on any focus that was not preceded by a pointerdown on the
trigger, so focus returned to an icon button after an overlay closes popped its
tooltip with no hover. Track the latest input modality and skip open-on-focus
unless the focus followed keyboard input.

* fix(ui): keep tooltips for assistive-tech focus; clean up modality listeners on hot reload

Focus that arrives with no keyboard or pointer input and is not moved by our own
script focus() (e.g. screen-reader navigation) now counts as virtual focus and
opens the tooltip, so its description stays available. Script-restored focus
keeps the modality that caused it. The module's window listeners and focus()
wrapper are removed on hot-module disposal.

* fix(ui): count focus from a label click as pointer focus

A label focuses its control after pointerup and the click listeners, in the same
task, so clearing the pointer window on pointerup classified that focus as
assistive-tech focus. Clear it after the release task instead.

* fix(ui): end the pointer window on pointercancel too

A touch that turns into a scroll ends with pointercancel instead of pointerup,
which left the pending-pointer flag set and hid the next screen-reader focus.
2026-11-15 22:17:59 -05:00
Neil 61ae9700f2 refactor: organize shared foundation modules by owner (#42914) 2026-11-15 19:09:38 -08:00
OrcaWinandOrcaWin 8d802a17f4 test: remove 51 low-value suites (#42927)
* test: remove 51 low-value suites

* test: retire obsolete computer workflow targets

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 18:48:14 -08:00
Brennan Benson 37f57be29b perf(orchestration): read the no-context fleet status through the captured reader (#42906)
* perf(orchestration): read the no-context fleet status through the captured reader

* perf(orchestration): capture the fleet facts view on the first bound pane

* test: annotate the fleet observation test runtime cast
2026-11-15 18:47:45 -08:00
Jinwoo Hong f9985381d1 fix(tabs): keep tab reorders in their split when the other split's strip is scrolled (#42875)
* test(tabs): reproduce drops landing in the other split beside a scrolled strip

* fix(tabs): resolve tab drops against visible tabs in the split under the pointer

* test(tabs): size the e2e strips so the gap and mid-drag scroll cases have room

* test(tabs): drop the mid-drag scroll e2e; it passes without the fix

* fix(tabs): read the drag geometry inside the collision callback, not during render
2026-11-15 21:43:07 -05:00
Kelvin AmoabaandJustas Brazauskas e2edc45ded fix(dsh): keep subagent hooks from finishing the lead pane (#42925)
DSH's Claude-hooks bridge stamps every agent's hooks with that agent's own
session_id, so a subagent's SessionStart and Stop were taken as the pane's
own status: the tab flipped to done mid-turn, completion notifications
fired per child, and the pane's resume session was rebound to the child.

Register SubagentStart and remember the child session it names, then drop
every hook from a known child. A child's SessionStart and first prompt can
arrive before its SubagentStart, so a non-lead SessionStart or
UserPromptSubmit is also dropped while the lead's turn is open. Any other
hook from a new session takes over as before, with fresh turn caches, so a
replacement session after a turn that ended without Stop still owns the
pane.

Co-authored-by: Justas Brazauskas <brazauskasjustas@gmail.com>
2026-11-16 02:39:09 +00:00
OrcaWinandOrcaWin 126e59e1ad test: remove 55 low-value suites (#42916)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 18:26:10 -08:00
Jinjing 11cfa85f63 Avoid duplicate unread dots on workspace cards (#42810)
* Avoid duplicate unread dots on workspace cards

* Skip unread agent counting for read workspaces
2026-11-15 18:09:50 -08:00
96a498de22 fix(quick-open): match file names across Unicode normalization forms (#41828)
* fix(quick-open): match file names across Unicode normalization forms

Quick Open compared the typed query and the listed paths code unit by
code unit. macOS often stores Hangul and accented names decomposed (NFD)
while keyboards type them composed (NFC), so those files never matched.
Compose both sides before matching; the returned path stays as listed.

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

* fix(tab-bar): compose new-tab file queries like the prepared file index

* fix(quick-open): recompose comparison keys after lowercasing

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
2026-11-16 02:07:07 +00:00
Brennan Benson 91393b0dc2 fix(chat): show deferred Claude permission picks (#42217)
* fix(chat): show deferred Claude permission picks

* fix(chat): clarify deferred permission picks

* fix(mobile): keep deferred permission picks readable on phones

Narrow mobile values show a compact 'saved · next message' label, accessible
names keep the full saved/running sentence, and the permission drill-in
explains the running mode in a wrapping caption.

* fix(mobile): narrow deferred permission summary and drop contradictory full-access name

Narrow to select options inside the deferred summary for the mobile typecheck,
use the plain model label while a pick is deferred, and assert labels instead
of English copy in the picker tests.

* fix(mobile): explain a deferred permission pick in the home row subtitle

QA on a 402 pt iPhone still clipped the one-line 180 pt row value. Show the
saved mode as the value and wrap the running mode in the row's subtitle.

* test(mobile): drop a type assertion in the picker test
2026-11-15 18:06:10 -08:00
Brennan Benson ea2b127f37 Keep local main up to date without making workspace creation wait on it (#42709)
* fix(worktree): refresh the base without merging into a checked-out branch

Creation already starts from the fetched remote-tracking commit. Keep Local
Main Up to Date now moves the local branch only when no worktree has it
checked out, with a compare-and-swap update-ref, so creation never takes
another checkout's index.lock or a checkout admission slot.

* fix(worktree): recheck checkout ownership right before moving the base ref

* fix(worktree): let Git refuse a checked-out base branch when fast-forwarding it

* fix(worktree): keep the base ref update a compare-and-swap, checked under one admission grant

Revert the local fetch: it overwrote FETCH_HEAD, failed when the file
transport is disallowed and protected nothing extra on Git before 2.35.
The final ownership check now runs with update-ref under one admission
grant, and a branch a rebase or bisect has reserved counts as checked out.

* fix(worktree): settle routing before the base-ref grant and count reserved branches as in use

* fix(worktree): check base-branch ownership from Git's files right before update-ref starts

Holding one admission grant across commands could deadlock on WSL routing
probes. The write now takes its own admission and, once admitted, rereads
worktree HEAD and rebase/bisect files before Git starts.

* fix(worktree): treat any worktree HEAD naming the base branch as in use, and recheck before the WSL fallback

* fix(worktree): fast-forward a checked-out base in its own clean checkout after the create returns

Creates stay on the fetched remote ref and never wait on local main. Once a
create succeeds, a detached, admission-exempt job (one per repo, coalesced)
fast-forwards a checked-out base in its owner checkout with the ff-only safety
flags, only when that checkout has no tracked changes; Git refuses a held
index.lock and overwritten untracked files. It has no deadline, so it is never
killed mid-checkout. Not-checked-out bases keep the compare-and-swap update-ref.

Restores the setting copy, and drops the unused relay outcome parsers.

* fix(worktree): skip checked-out history walks during create, defer sparse creates' base update, add Windows long paths

The create-time refresh now stops at a checked-out base before rev-list, so
only the admission-exempt background job walks its history. Sparse creates
start the update after their own checkout. The owner merge gets Windows long
paths like the create's checkouts, and no longer holds the app-wide ref
maintenance pause while a filter stalls.
2026-11-15 18:06:01 -08:00
Jinjing aa65e5721c fix(sidebar): remove empty details space from workspace cards (#42867)
* fix(sidebar): stop experimental worktree cards growing an icon-only details row

On the experimental cards with Details row on, link/issue/port icons moved
into the details row and opened it by themselves, so cards with nothing
else for that row got a second line that was blank except for icons on the
right. Icons now join the details row only beside another detail, and
otherwise stay on the title line.

* test(sidebar): type the details-row fixture properties and drop an unused import
2026-11-15 18:00:15 -08:00
Jinjing 4358d920de test(browser): remove headless frame-count timing assertion (#42910) 2026-11-15 17:53:40 -08:00
Neil f9984c1d13 fix(antigravity): accept free-text answers on question cards (#42894)
Advertise ACP form elicitation for Antigravity so its ask_question tool
sends forms with a per-question q<N>_other write-in field instead of an
interaction_ permission, which can only select an offered option. Pair
<key>_other companions with their choice field, and drop the server's
count-only form message so the card falls back to the first question as
its heading. Servers without form support keep the interaction_ path.

Fixes #42879
2026-11-15 17:34:27 -08:00