Commit Graph
1152 Commits
Author SHA1 Message Date
OrcaWinandOrcaWin 651f4f3928 test: remove shallow find suite and duplicate parameter rows (#43209)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-16 10:54:51 -08:00
Neil 6018fca4de refactor: group shared settings, profiles and execution hosts (#43047)
* refactor: place shared settings profiles and host contracts with owners

* fix: retire stale cleanup validation contacts

* refactor: consolidate imports from concrete owners

* refactor: bind new card fixture to profile defaults owner

* style: format rebased concrete host import

* refactor: consolidate project header color owner imports

* fix: load released phone readers after folder moves

* fix: preserve released chat readers and current owner imports
2026-11-16 04:03:33 -08:00
Neil e075db6f19 refactor: group shared runtime and computer owners (#42972)
* refactor: group shared runtime and computer owners

* refactor: follow computer owners in workflow triggers

* test: account for unmasked existing title-test clock call
2026-11-15 23:46:34 -08:00
Brennan Benson 8feab8456e feat(uninstall): remove Orca's hooks, CLI and services from Settings → Advanced and orca uninstall (#42889)
* feat(uninstall): add the uninstall cleanup contract shared by main and the settings UI

* feat(uninstall): remove Orca's OpenCode and Pi plugin files, also from the Windows uninstaller

Only files carrying Orca's marker are removed; OpenCode 1.x's TUI registration entry goes with them.

* feat(uninstall): main-process plan, steps and finish actions for Uninstall Orca

getPlan lists agent hooks, the orca command, orca serve units, ~/.orca/agent-hooks and SSH hosts
without changing anything; runStep removes one part and returns the updated plan.

* feat(cli): add orca uninstall, sharing the app's cleanup

* feat(uninstall): add the Uninstall Orca section to Settings → Advanced

* fix(uninstall): narrow plan agent ids with isTuiAgent instead of a cast

* fix(uninstall): show home-relative paths in the uninstall plan

* fix(uninstall): bound the SSH host sub-list with useBoundedHostRows

* fix(uninstall): async fs on the main thread and no type assertions in the cleanup

* fix(cli): bundle the uninstall cleanup modules the orca uninstall command loads

* fix(packaging): unpack the uninstall cleanup entries the packaged CLI loads

* fix(uninstall): call the orca command row the CLI on your PATH

* fix(uninstall): show hook scripts under the agents' hooks row

* fix(uninstall): remove hook scripts after the last agent retry and never show kept items as done

* fix(cli): give orca uninstall and agent hooks an app environment, and exit 1 on unfinished entries

Claude's remover resolves profile homes through it; without one the CLI reported Claude failed.

* fix(uninstall): drop Muse's Orca env-var allowlist and Claude's agent-view marker

Muse keeps names the user added. The agent-view marker only remembers opt-outs for a re-enable.

* fix(cli): bundle and unpack the node service environment orca uninstall loads

* fix(uninstall): settle the agent-view disable before deleting its marker, and report ok:false on unfinished --json runs
2026-11-15 23:29:03 -08:00
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
Neil 3cfd47e1a0 refactor: group shared workspace and transport owners (#42945) 2026-11-15 21:01:55 -08:00
Neil 61ae9700f2 refactor: organize shared foundation modules by owner (#42914) 2026-11-15 19:09:38 -08:00
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
Kelvin Amoaba 4296edac51 feat(browser): remember "open another app" choices per site (#42845)
* feat(browser): remember "open another app" choices per site

The prompt offers an unchecked "Always allow <site> to open <scheme> links".
A saved choice opens the app without asking only on the desktop user's own
fresh click, one app per click. Pages that can't be named (sandboxed or srcdoc
frames, no referrer) are remembered for the tab's site; loads the browser
started itself are never remembered. Only https, loopback and local-file sites
qualify. Choices live in the existing site permissions, so they are per
browser profile, listed and revoked in Settings > Browser > Site permissions.

* test(browser): don't pin the platform-dependent app name

* fix(browser): spend the click a prompt answered, and let agent clicks ask
2026-11-15 23:52:23 +00:00
Neil 69cfecdf70 refactor: organize shared lifecycle and runtime owners (#42792) 2026-11-15 13:18:34 -08:00
Kelvin AmoabaandDunz Koi 7960957c75 feat(browser): pick a browser profile for each repo's new tabs (#42803)
Each project can pick a browser profile (Default or a named one) for its new tabs, overriding the Browser setting's scope. Also settable with `orca repo set --browser-profile`.

Co-authored-by: Dunz Koi <258568505+dunzkoi@users.noreply.github.com>
2026-11-15 20:56:14 +00:00
Neil 9b3737e5e0 refactor: organize shared agent accounts and usage owners (#42781) 2026-11-15 11:06:48 -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 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
Neil 54861a1c1e refactor: group browser and speech modules by ownership (#42702) 2026-11-15 04:02:31 -08:00
Katsuma-TakehisaandNeil 23326a3819 fix(github): keep linked issue hovers on their saved repository (#25867)
Workspace cards, refresh sweeps, the status bar and the palette keyed and
fetched linked issues by number only, so a fork workspace linked to
fork#247 showed upstream#247 (the number-only lookup is upstream-first).

Derive the repository from the workspace's saved GitHub issue URL (or a
matching GitHub attachment in linkedItems), pass it through gh:issue /
github.issue as an optional ownerRepo, and include it in the issue cache
key. Number-only links keep the existing heuristic.

Fixes #24378

Co-authored-by: Neil <neil@stably.ai>
2026-11-15 02:55:50 -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
Brennan Benson 61df0419a6 fix(window): reload, Force Reload and close wait for the window's state to reach disk (#42596)
* fix(window): native reloads and window close wait for the durable session checkpoint

Menu, keyboard (including Force Reload), DevTools and in-app reloads now ask
the renderer to run the same checkpoint preparation as the in-app restart,
including the main-side durable flush and its retry-then-degrade budget.
A renderer that reports a failed save keeps its document, matching the
in-app reload. A renderer that never answers is reloaded after a bounded
deadline (quit's frozen-renderer bound plus the checkpoint flush deadline),
as before. Rich and landing-page window close wait for the staged
checkpoint to reach disk and cancel when it fails.

* fix(window): name a failed close checkpoint and close on the second failure

A durable-write failure now reports its reason in the canceled-quit toast,
and a repeated close after it proceeds as before the wait existed, so a
broken disk cannot trap quit.

* fix(window): close waits for a pending reload checkpoint and a renderer exit cannot strand quit

A close requested while a reload's durable checkpoint runs now waits for that verdict and replaces the reload. A renderer that exits after acknowledging a quit close no longer leaves quit waiting for a confirmation that cannot come.

* fix(window): settle reload/close races found in review

A prepare request that fails to send no longer leaves later reloads skipping the checkpoint. Any close a dying renderer was answering now finishes, and every cancel clears it. A reload no longer discards a quit close the renderer is still answering, and a reload replaced by a close restores the page's ordinary unload guards. In-app reload failures show the same toast as menu reloads.

* fix(window): track one close per window that quit only upgrades

Stale cancels are recognised from the acknowledgement order, the custom X gets its own request id, a reload retires an ordinary close, and a close deferred behind a reload bypasses a renderer that died meanwhile.

* fix(window): an overlapping close joins the pending checkpoint instead of counting its failure twice

* fix(window): a frozen renderer cannot hold Force Reload for the full save deadline, and an unreceived close no longer destroys the window on a later crash

* fix(window): a tracked quit always finishes when its renderer dies; an ordinary close counts as received once any of its requests was acknowledged
2026-11-14 22:42:50 -08:00
NeilandTakumi Hara 07eced7636 fix(editor): open VS Code-family editors at the clicked line on macOS (#42613)
When a linked file's macOS default app is Cursor, VS Code or VS Code
Insiders, hand it `--goto path:line:column` with
`open -n -g -a <app> --args`, the same LaunchServices hand-off the bundled
CLI ends in, minus the CLI's Node startup and `--env` forwarding. The
editor sees a desktop (non-Dock) open, so it reuses the file's window as
a CLI open would. An empty env keeps Orca's variables out of the editor
and lets a cold start resolve the login-shell env. `open` returns once
the app has launched, like shell.openPath, so there is no timer; a
non-zero exit or spawn error falls back to shell.openPath. Other
platforms, other apps, links without a line, and files main reveals
instead of opening are unchanged.

The IPC location reuses RuntimeFileOpenPosition. Moves the positive
safe-integer guard to src/shared so this and its two existing copies
share one definition.

Fixes #29508

Co-authored-by: Takumi Hara <takumihara1226@gmail.com>
2026-11-14 21:15:22 -08:00
Neil d5a90c0da0 refactor(shared): group host and runtime owners by domain (#42528) 2026-11-14 21:10:34 -08:00
OrcaWinandOrcaWin 360233857a test: remove low-value mobile transport config and docs suites (#42552)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 16:54:11 -08:00
Neil e5905509e4 fix(notifications): respect Windows Focus Assist for custom audio (#42539) 2026-11-14 16:19:05 -08:00
Neil 73b3f872ed fix(notifications): mute Orca-played notification sounds during macOS Focus (#42366)
Non-System sounds are played by Orca itself while the native banner is silent, so
macOS Focus/Do Not Disturb could not suppress them. Skip that playback while a
Focus assertion is live; previews still play. Unreadable Focus state fails open.
2026-11-14 12:59:51 -08:00
Jinjing 3e0a9585a6 Improve browser extensions (#41829)
* Improve browser extensions

* Fix browser extension reporting

* Keep extension reporting responsive
2026-11-13 23:07:43 -08:00
Brennan Benson 02f30c3f1b Run Archive scripts for project-group folder workspaces (#41687)
* feat: run setup and archive hooks for group folder workspaces

* fix: align group workspace owners and create result consumers

* chore: carry terminal extraction allowances through validation

* fix: remove extracted terminal import cycle and refresh deletion fixtures

* fix: show group setup settings in project navigation

* Run Archive scripts before removing group folder workspaces

* Tighten workspace record read allowance after removal extraction

* Correct Archive waiver regression expectation

* Complete Archive hook settings test fixture

* Refresh group hook Settings when runtime contact returns

* Cover group hook support across replacement pairings
2026-11-13 22:36:57 -08:00
OrcaWinandOrcaWin 60b6db23c4 test: remove low-value UI and process suites (#42297)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 21:44:51 -08:00
Kelvin Amoaba ee49c567dc fix(browser): keep print and Windows Hello dialogs an agent sets off from taking the screen (#42209)
window.print() opens the system print dialog and, on Windows, a passkey request
opens Windows Hello. Both are modal windows that take the foreground, and an
agent click could set either off over the user's work. Main now tells each
page's frames whether an agent drove it since the desktop user last gave it
input, and the session frame preload refuses print() on such a page (reported
to the agent as effects.blockedPrint, pointing at pdf) and, on Windows, holds
its passkey requests unsent, still reported as passkeyRequest. The user's own
input releases the page and cancels held requests so the page can retry.
2026-11-14 01:15:23 +00:00
Kelvin Amoaba 746b031870 fix(terminal): keep the user's focus when an agent splits a terminal (#42204) 2026-11-14 00:44:02 +00:00
Brennan Benson 8c306365dd perf: refresh agent models when CLI inputs change (#41976)
* perf: refresh agent model catalogs when launch inputs change

* test: cover model catalog launch input changes

* test: require explicit refresh intent for floating agents

* fix: combine model catalog ownership imports

* Observe direct agent scripts after interpreter options

* Expose refresh intent in preflight API types

* Keep slow model discovery alive beyond picker waits

* Explain the real transport regression test budget

* Use typed catalog test requests and locate cast rationale

* Assert discovered ACP effort choices directly

* Fix catalog regression fixture types
2026-11-13 16:34:06 -08:00
Brennan BensonandJinjing a36620afd0 perf(github): share automatic PR reads and reuse the host budget (#42033)
* perf(github): share and pace timed pull request reads on the host

Reuse exact completed results for automatic refreshes, back off unchanged
settled pull requests, and route server revalidation through the existing
host budget while preserving foreground reads and older clients.

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>

* fix(github): preserve shared producer settlement and selected demand

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>

* test(github): cover paired receipt retries and watch fairness

* test(github): explain shared fake-clock fixture

* test(github): typecheck host and renderer integration together

* test(github): name exported fixture mock types

* Revert "test(github): typecheck host and renderer integration together"

This reverts commit 756a38787c.

* test(github): place host and renderer loops in cross-layer suite

* fix(github): preserve refresh policy and shared callers

Use the same validated freshness for cached queue reads and their follow-up. Keep forced mergeability rereads and detach cancelled consumers independently from the shared lookup.

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>

* fix(github): refresh settled rows when exposed again

Use the same finite foreground age to admit and consume the queued read. A recent exact result can still satisfy it, and settled rows do not acquire a recurring timer.

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>

* fix(github): accept only current PR read completions

Keep shared publication and retry planning on the accepted actual read. Preserve legacy own replies, terminal loading and ordinary work after a superseded lookup, and honor the accepted error gate before automatic recovery.

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>

* test(github): follow moved request contracts

* test(github): explain the partial event fixture type assertion

* fix(github): preserve queued deadlines and detachable PR waits

* fix(github): compare refresh wakes on the elapsed clock

* test(github): format queued refresh deadline cases

* fix(github): charge actual producers and fence retry gates

* fix(github): preserve fresh intent and producer error policy

* fix(github): retain owned cold-read retry gates

---------

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
2026-11-13 16:33:07 -08:00
Kelvin Amoaba fe138b0ece feat(settings): add per-project workspace cleanup rules to project settings (#42055)
* feat(settings): add per-project workspace cleanup rules to project settings

A project's settings get a Workspace cleanup section: Use global, Off, or
Custom rules seeded from the host's global rules, using the same rule rows
as the Workspace Cleanup page.

* fix(settings): compare a cleanup change against a fresh preview, not the cached one

A cached baseline can predate files that now protect a workspace, which
would hide it from the confirm. The host shares concurrent previews, so a
fresh read stays one evaluation.
2026-11-14 00:05:03 +00:00
Brennan Benson 03c828eece Run setup scripts for project group folder workspaces (#41744)
* Add setup scripts for project group folder workspaces

* Align setup regression fixtures and catalog read validation

* Target the Advanced disclosure in group setup regression

* test: initialize project groups in worktree slice fixture

* Preserve group setup startup input across paired hosts

* Check paired group startup regression in cross-layer project

* Restore group setup settings when saving fails

* Wait for group agents to accept startup input

* Type the group startup readiness fixture foreground state

* Give group startup fixture mocks portable public types

* Reuse worktree startup for group folder setup

* Keep example shell regression while removing obsolete observer tests

* Complete launch runtime fixture PTY options

* Exercise terminal startup failure and worktree draft paste in parity tests

* Preserve repository type defaults for setup commands
2026-11-13 15:37:54 -08:00
Kelvin Amoaba f6f5eb6aa3 feat(settings): add a Workspace Cleanup settings page with rules, run now and activity (#42039)
* feat(settings): add Workspace Cleanup settings page

Adds a Settings > Workspace Cleanup page for the host that owns the repos:
status with Clean up now, the rule switches, the ignored-files protection
and an Activity list of past runs. Turning on a delete rule that matches
workspaces right now asks first; Keep pins a workspace.

The page refreshes when the host's runner finishes a run: desktop main now
forwards workspaceCleanupRunFinished to its window, and remote hosts' event
is no longer dropped by the client event allowlist.

* feat(settings): confirm any cleanup rule change that would delete workspaces now

Lowering the inactive days or turning off the ignored-files protection makes
the runner delete within seconds too, so those changes get the same confirm
as turning a rule on.

* fix(settings): serialize cleanup rule changes and guard the confirm

One rule change at a time, built from the host's rules as they are when it
is saved; Esc or the close button can no longer abandon a confirm that is
already saving. Local save failures surface, a host whose rules cannot be
read says so with a retry, and the page follows project rules that keep
the runner on.

* fix(settings): keep cleanup changes bound to fresh rules and this page

A change re-reads the host's rules when it is confirmed, a change still
previewing when the page closes is dropped, Keep locks while saving, and
each preview is kept with the rules it evaluated. The page is hidden in a
paired browser, whose settings are not the host's.

* refactor(settings): reuse existing helpers in the Workspace Cleanup page

One row key helper, useMountedRef, SettingsSwitchRow and the shared
runtime target builder; only the preview of rules about to be saved is
kept as the page's matches, and the report waits for the rules.

* chore(i18n): protect the cleanup confirm's copy

* fix(settings): re-check the cleanup confirm when the rules moved meanwhile

If another client changed the rules while the confirm was open, preview
again and list any workspace the dialog had not shown before saving.

* fix(settings): preview again on every cleanup confirm

A workspace can age past a rule while the confirm is open, so the confirm
always checks again and lists anything new before saving.

* fix(settings): drop a confirmed cleanup change if the page closed while pinning

* feat(workspace-cleanup): keep PR number and ignored file names on cleanup rows

Run and preview rows now carry the merged PR number and up to 3 ignored
file names the evidence already read, so the page can say 'Merged · #4182'
and 'Ignored files · .env'. No new Git reads; older saved runs lack them.

* fix(settings): say when a run's saved receipt lists fewer kept workspaces

* fix(workspace-cleanup): import at-risk local files from its new home

* perf(workspace-cleanup): share in-flight previews and stop re-scanning confirmed rules

The host shares one evaluation between previews of the same rules, so
reopened pages and several clients no longer stack full scans. The page
keeps a would-be rules preview out of its matches until those rules are
saved, then adopts it, and reuses its own preview for the current rules.
2026-11-13 22:18:59 +00:00
Brennan Benson 3168badf7e Approve workspace setup from the branch the workspace is created from (#41823)
* fix(hooks): approve setup from the ref a new workspace checks out

The setup trust check before a create read orca.yaml from the project's
own checkout, while the host (since #37977) checks the created worktree.
A checkout behind origin/main made every create skip setup and open the
"branch has different setup commands" dialog right after creation.

The check now reads orca.yaml at the ref the create checks out (the
resolved base, or the local branch for explicit reuse), refreshing it
only when create would, under one deadline. Any failure falls back to
the previous checkout read, and older hosts ignore the new parameter.

* fix(hooks): stop optional setup reads at the deadline and cover automation recovery, VM and web paths

* fix(hooks): refuse late WSL git retries and approve an automation's saved base on recovery

* docs(hooks): move the skipped-setup recovery comment back to its function

* fix(automations): re-approve setup when an automation's base branch changes
2026-11-13 14:16:23 -08:00
Jinjing 2c97e41cc6 fix(worktree-delete): cancel local at-risk ignored-file scans when the delete preview closes (STA-15114) (#41835)
* fix(worktree-delete): cancel local at-risk ignored-file scans when the preview closes (STA-15114)

The delete preview aborts its controller on close/retarget, but the local
branch of getRuntimeWorktreeAtRiskLocalFiles dropped the signal and the
git:atRiskLocalFiles IPC had no cancel channel, so main kept running
queued/active git ls-files and file comparisons for obsolete previews.

Mirror git:status cancellation: a per-request token plus
git:cancelAtRiskLocalFiles aborts the sender-scoped controller whose signal
now reaches readWorktreeAtRiskLocalFiles (admission, git child, compares).
The web shim registers its controller before the worktree lookup and keeps
the typed RuntimeRpcCallError unwrap for old-host fallback.

* fix(worktree-delete): bound abortable web scan responses
2026-11-13 12:27:19 -08:00
Neil 587562e862 refactor: organize shared sidebar list modules by domain (#42107) 2026-11-13 12:12:51 -08:00
Neil 17a1dc373b refactor: group shared worktree modules by feature (#42093)
* refactor: group shared worktree modules by feature

* refactor: retarget new worktree admission test to moved owner
2026-11-13 10:59:36 -08:00
Neil 6775615ce4 refactor(preload): organize API modules by feature owner (#42051) 2026-11-13 07:37:49 -08:00
Neil 7e10540b93 refactor: group preload modules by domain (#41940)
* refactor: group preload modules by domain

* fix: include preload entry dependencies in web typecheck
2026-11-13 02:06:33 -08:00
Brennan Benson be1936f2e4 Scope workspace deletion shortcuts to sidebar selection (#41457)
* Scope workspace deletion shortcuts to selected sidebar rows

* Complete shortcut event typing and web bridge cleanup

* Use stable fixture rows and typed input elements

* Align sidebar deletion and navigation with eligible focused rows

* Pass explicit absent repo for selected row host lookup

* Describe selected options in keyboard test fixture

* Bound sidebar selection and deletion work and preserve host ownership

* Keep navigation imports within the file size limit

* Separate navigation type imports consistently

* Match selected workspace repositories by explicit host
2026-11-12 16:34:04 -08:00
Brennan Benson 4fb159a95f perf: restore terminal history without synchronous IPC (#41660)
* perf: restore terminal history without synchronous IPC

* fix: follow moved terminal topology imports

* Consume queued terminal commands when startup dispatches
2026-11-12 16:12:57 -08:00
OrcaWinandOrcaWin bb09acd71c test: remove low-value authoring, CLI, and preload suites (#41688)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 15:03:11 -08:00
Kelvin Amoaba ee99d584d9 feat(dictation): optional AI cleanup of dictated text, with a correction word (#41497)
* feat(dictation): optional AI cleanup of dictated text, with a correction word

Off by default. When on, a dictation's text goes through the user's agent
CLI (the AI text actions' runner, Haiku by default for Claude) before it
lands: the pill says "Cleaning up…" and the text is inserted once. Failure
or a 10 s timeout inserts it as heard with a warning; the pill's X skips
cleanup. A consent dialog asks before text first goes to an agent. The
correction word ("scratch that") survives filler removal for cleanup to act
on. The microphone test gets "Try cleanup", and phone dictation the computer
transcribes is cleaned on the host.

* fix(dictation): keep finals that arrive during cleanup and tighten cleanup edges
2026-11-12 22:59:25 +00:00
Neil fb8d6f950b refactor(github): organize concrete feature owners (#41601) 2026-11-12 09:17:26 -08:00
Neil d277381bb3 Hide projects from the sidebar without stopping them (#41529)
* Hide projects from the sidebar without stopping them

Adds Repo.hiddenAt, a per-host, view-only flag. A hidden project's
workspaces, empty header and project-filter entry leave the desktop
sidebar, the paired phone's list, the new-workspace picker and the
palette's project filter. Its terminals, agents and automations keep
running, and repo.list / worktree.ps still list it.

- Hide Project in the project menu (toast with Undo), a collapsed
  "N hidden projects" list under the workspace list with Show buttons,
  and a Hide from sidebar switch in Settings > Projects.
- repo.setHidden RPC ({repo, repoHostId?, hidden} -> {repo, hostId,
  hidden}) and `orca repo hide|unhide [--host]`; `repo list` marks
  hidden rows.
- Opening a hidden project's workspace (notification, CLI, deep link)
  focuses it without unhiding it, lifting sidebar filters, or leaving a
  pending sidebar reveal.
- repo.update echo check: a host that drops hiddenAt reports failure
  instead of reading as hidden.

* Address hidden-projects review: multi-host hide, picker scope, mute, stale filters, shared predicate, restore list styling

* Hidden projects re-review: keep saved filters, Agents filter, composer seed, per-toast Undo, shared default host

* Hidden projects: address review threads (pre-feed, palette search, notices, dialog default, seed remap, row keys, a11y)

* Hidden projects: no implicit dialog default when every project is hidden
2026-11-12 07:02:57 -08:00
Brennan Benson d1f4021716 Avoid refetching every linked Linear badge on window focus (#41384)
* Avoid refetching every linked Linear badge on window focus

* Preserve sourced badge updates without focus polling

* Use a fixed clock in linked issue refresh contracts

* Resolve linked issue refresh scope from its source
2026-11-12 01:56:27 -08:00