Commit Graph
5291 Commits
Author SHA1 Message Date
Brennan BensonandClaude Opus 5.5 e5ac888c2a Merge delete-agent-retention (with main) into slept-done
Resolve the stack-base merge against the keyed accepted-status owner:

- Sidebar rows: main's host-filtered row selector now filters the keyed
  projection's per-workspace list instead of rebuilding rows; the per-key
  WorktreeCardAgents renderer takes executionHostId for host-scoped root
  keys, activation and disclosure, keeps main's compact root indent and
  unread summary pill, and drops main's full-list list model.
- Slot rollup invalidation reads accepted pane changes from the keyed
  owner's change feed (plus keys still awaiting delivery) instead of
  diffing two Record snapshots.
- Workspace unread and explicit reads use keyed Map reads; the unread gate
  compares the workspace's own status rows by identity.
- Store keeps agent-status ownership outermost around main's browser
  presentation boundary; runtime host services keep RuntimeAgentStatusSources
  with main's new call declarations.
- Adopt main's moved import paths and test deletions; carry only Map
  adaptations into tests main kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-13 22:16:22 -08:00
Brennan Benson a5e542c85b Merge origin/main into delete-agent-retention 2026-11-13 20:55:36 -08:00
lucas.wuandNeil d0882ca38c fix(pi): accept --model/--effort for Pi agent launch and worker-start (#42255)
Pi's launch catalog now opts into launch-time model/effort preferences, so
`orca agent launch --agent pi` and `orca orchestration worker-start --agent pi`
accept `--model <provider/id>` and `--effort <level>` instead of refusing.

Pi models without a provider/id shape are refused up front, before a
worktree or worker is created. A new host capability,
`agent.launch.pi-model.v1`, lets the CLI refuse a Pi model/effort on older
execution hosts that would otherwise start Pi on its default model.

Co-authored-by: Neil <neil@stably.ai>
2026-11-13 20:27:30 -08:00
Henry SuandNeil b2bb38873e fix(browser): preserve backslashes in POSIX file paths (#42257)
On macOS and Linux a backslash is an ordinary filename character, but
absolutePathToFileUrl converted every backslash into a path separator, so
typing /tmp/site\draft.html opened /tmp/site/draft.html instead.

Keep backslashes (encoded as %5C) for rooted paths when the local host is not
Windows. On Windows every path still has backslashes normalized to slashes,
so drive, UNC and rooted /foo\bar inputs behave as before.

Fixes #42256

Co-authored-by: Neil <neil@stably.ai>
2026-11-13 20:17:16 -08:00
OrcaWinandOrcaWin 6b1738fad2 test: remove low-value shared and workspace tests (#42276)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 20:14:15 -08:00
Kelvin Amoaba 4d005cf8b8 fix(computer): read wait --enabled state from the host, not label text (#42260) 2026-11-14 03:18:36 +00:00
OrcaWinandOrcaWin d7c6ab1852 test: remove mock-only editor, IPC status and startup suites (#42258)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 19:14:21 -08:00
Jinjing 784a86b812 fix(automations): keep a run's Started time after its terminal is cleared (#42226)
A run whose agent terminal or chat session had opened, but which then failed (prompt delivery failed, or the launcher threw after a partial start), lost its Started time once dead-terminal retention cleared its pane key.

Runs now store an optional launchedAt: the dispatch-start instant, recorded only once the launch produced a terminal or chat session. The persistence layer keeps the first value through later rewrites, and the Started time prefers it, falling back to the existing rules for older records. A launch that fails before opening anything records nothing.

Tests cover delivery failure followed by retention, a partial start, and the no-evidence case; each fails without the change. The recent-runs rail test now asserts hardcoded date patterns instead of calling the production formatter.
2026-11-13 18:45:44 -08:00
OrcaWinandOrcaWin 26cc9d646b test: remove mock-only pack scheduling suite and assertion inventories (#42250)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 18:45:15 -08:00
Jinjing a8f6e79631 Improve workspace sidebar cards and activity status (#41894)
* wip

* wip

* wip

* wip

* Improve experimental worktree cards with compact agent summaries

- Add an optional details row for workspace metadata and indicators
- Roll up descendant activity timestamps to parent cards

* Reduce worktree card metadata indentation

* wip

* Expand sidebar agent lines with subagents and remote host status

- Show subagent activity, send targets, and unread signals in slot cards
- Identify remote hosts and provide SSH reconnection controls

* Show child workspace status counts in sidebar cards

Distinguish monitoring agents and refine lineage alignment so workspace
activity is easier to scan.

* Enable navigation from worktree sidebar activity indicators

- Open the matching agent or workspace directly, or choose among multiple sources
- Use host-qualified identities for nested workspace activity
- Show pull requests in 2.0 card details and refine compact card layout

* Show every status in the sidebar card corner and let cards open and close

The title-row corner now shows one glyph per status the card speaks for
(needs, failed, unread, working), most urgent first, followed by the time,
instead of only the most urgent one. Each glyph opens its own sources.
Collapsed child workspaces report all their statuses through a flat,
shallow-comparable record.

Experimental 2.0 cards can also be opened and closed; a closed card's
title slot speaks for its hidden agents and children.

* final worktree design

* wip

* rm

* wip

* wip

* fix style

* fix commit

* Improve worktree card interactions and spacing

- Let users toggle cards by clicking their headers.
- Delay details until the pointer rests to avoid accidental popups.
- Add breathing room around card content.

* wip

* fix issues

* wip

* Improve workspace sidebar icons and navigation

- Batch AI icon generation and add settings to customize and regenerate icons.
- Fix agent navigation and unread handling across execution hosts.
- Keep linked reviews visible while loading and reduce unnecessary refresh work.

* Fix sidebar agent ownership and targeted title updates

Resolve unstamped agent sessions to their workspace runtime so sidebar
summaries and unread state follow the correct host. Limit title-change
invalidation to affected workspaces.

* fix build

* Simplify worktree sidebar icons and agent rows

- Generate monochrome icons that match the sidebar foreground
- Move agent model names into row tooltips to reduce clutter

* Keep agent timestamps visible alongside dismiss controls

* Fix worktree icon regeneration and bound the cache

Cancel stale requests when clearing icons so older results cannot
restore the previous cache. Evict unused renderer entries to limit
memory growth.

* Unify experimental workspace cards around title status

- Surface hidden agent and child workspace activity in the card title.
- Retire the second experimental layout and AI-generated icons.
- Preserve existing experimental card selections and add a details row option.

* wip

* wip

* wip

* fix bugs

* improve perf

* Fix sidebar lineage rollup: unread dot on children, running status on collapsed parent

- A card's unread dot and bold title now include its own visible agent rows'
  unread results, so expanding a parent reveals which child the unread came from.
- A collapsed parent's status lane shows the most urgent descendant state
  (needs you > failed > working) when it beats the parent's own status.
- Host-scoped workspace unread markers and related attention fixes.

* Improve sidebar activity rollup performance

- Refresh only stale descendant slots and scope unread updates to their workspace.
- Share agent row projections and index unread markers to reduce repeated work.
- Preserve host-specific agent activation and show the latest activity time.

* wip

* Fix sidebar attention state and optimize slot invalidation

- Preserve unread flags raised by users or earlier sessions when markers clear.
- Scope agent list expansion to each host.
- Track displayed panes and freshness deadlines to limit slot updates.

* wip

* Fix sidebar workspace status and host ownership

- Keep agent navigation and unread state scoped to the correct host,
  including paired SSH workspaces and runtimes.
- Correct collapsed lineage status, stale review display, and settings
  synchronization while reducing unnecessary sidebar refreshes.

* Show unread agent completions and scope workspace reads by host

* fix compile issue

* wip fix static checks

* wip

* Fix workspace sidebar agent ownership and PR display

- Update agent rows when terminal host bindings arrive and preserve
  local ownership for unstamped retained completions.
- Keep newer hosted PRs visible when an older merged PR is cached.
2026-11-14 02:41:25 +00:00
OrcaWinandOrcaWin a6b2a0803a test: remove plugin testing-kit suites and repeated concurrency cases (#42248)
* test: remove redundant plugin schema and testing-kit suites

* test: remove repeated concurrency cases and runtime bookkeeping assertions

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 18:35:16 -08:00
OrcaWinandOrcaWin 233469f883 test: remove low-value onboarding and plugin validation cases (#42243)
* test: remove signal bookkeeping and repeated option cases

* test: remove low-value onboarding and plugin validation cases

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 18:15:04 -08:00
Kelvin Amoaba f49eb51f95 feat(computer): launch-app starts desktop apps without taking the foreground (#42197)
* feat(computer): add launch-app to start apps without taking the foreground

* fix(computer): leave running apps alone and keep the launch env clean

* fix(computer): recheck aliases, keep focused launches visible, refine launch hints

* chore(computer): document the launch result casts

* test(computer): check launch-app reports where the app ended up on Windows CI

* docs(computer): point app_not_found at launch-app

* test(computer): format the merged Windows background e2e

* fix(computer): match launch paths to the running file and word background launch as an attempt
2026-11-14 02:11:33 +00:00
OrcaWinandOrcaWin 2fc7b1a750 test: remove catalogue and animation suites and repeated input cases (#42238)
* test: remove catalogue and animation bookkeeping cases

* test: trim repeated extension inputs and pairing copy checks

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 17:58:09 -08:00
OrcaWinandOrcaWin e2e69135f9 test: remove low-value runtime and bridge cases (#42234)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 17:45:56 -08:00
Jinwoo Hong 0d7a48df9b feat(daemon): capture macOS's verdict when a terminal host is refused a folder (#42153)
* feat(daemon): capture macOS's verdict when a terminal host is refused a folder

On a confirmed app/host divergence in Documents, Desktop or Downloads, read
macOS's own record once per host incarnation and folder class: tccd decisions
and kernel sandbox denies for the host pid, host signature checks, host age
and origin, earlier good reads, time since wake signals, Full Disk Access,
fork-fallback reason, and the class root's dataless, iCloud and volume state
(read before the app-side opendir). Telemetry is enum-only in a new
daemon_pty_cwd_denial_capture event; raw filtered lines go to a capped local
file under userData logs. Every subprocess is bounded and failures are
swallowed off the spawn path.

* fix(daemon): keep the wake clock Electron-free and avoid casts in the log parser

* fix(daemon): tighten denial capture attribution and bounds

Snapshot good-read and wake context at the denial, bound the class-root
realpath, keep earlier captures when one entry is over the cap, require the
app or host in requirement failures, let an explicit pid outrank a shared copy
path, and report a capped log read as truncated.

* fix(daemon): collect Info requirement checks and claim captures before probing

Ask log show for Info records in a 30 s window ending at the denial, claim a
helper/class capture before the folder probes and release it when the app is
refused too, and report a requirement failure tied only to the shared app
identifier as uncorrelated instead of blaming this helper.

* fix(daemon): keep folder-denial capture in telemetry labels only

Drop the local diagnostics file and stop retaining raw log lines: the parser
reads them in memory to derive enums and keeps nothing.

* fix(daemon): skip the folder-denial capture when telemetry is off

Gate the folder probes and the log/codesign capture on the telemetry client's
consent check so opted-out users never have their log read or checks run.

* fix(daemon): recheck telemetry consent at every capture stage

Run every capture subprocess through a consent-checked runner (now a required
probe argument), ask again before and after the identity probe and after the
remaining probes, and free the claim when an opt-out stops a capture so a
later opt-in can still capture.

* fix(daemon): recheck consent after the access reader's lazy import

The Full Disk Access reader started after its import resolved without asking
again, and its catch swallowed the opt-out; ask after the import and let the
opt-out end the capture so its claim is freed.

* fix(daemon): report a helper's denial over a later allowed result

Overlapping tccd requests can resolve out of order; when any result for the
denied folder class is a denial, report it.
2026-11-13 20:37:46 -05:00
OrcaWinandOrcaWin f15962da9c test: remove low-value CLI, terminal, and projection cases (#42228)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 17:26:54 -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
Jinjing b8b29df2b9 feat(automations): unify Automations pages (option D) (#41620)
* feat(automations): record subpages in app navigation history

* feat(automations): unify page layout and redesign list, detail, and runs

* chore(i18n): remove obsolete automation page strings

* fix(automations): keep focus effects compatible with React compiler

* fix(automations): resolve run workspaces from historical ownership

* fix(automations): preserve replay and guard in-flight dispatches

* fix(automations): give the All runs link a singular default

* fix(automations): let Escape step back to the parent history entry

Escape returns to the parent page. When that page is the previous history
entry, move the index back instead of appending a duplicate, so Forward
still reaches the page that was left.

* chore(i18n): sync the All runs runtime catalog entry

* fix(automations): keep Back/Forward replays from re-recording the page left

- Record a sub-page only when the page itself changes. Clearing a replay
  request could render once with the old page state and record the page
  Back just left, cutting Forward history. Adds a hook-level test.
- Escape on the list closes the page without arming the step-back mode,
  and closing resets it.
- Run now's busy state only clears from the open automation's runs, and a
  dispatch that never answers releases the button after 60s.

* fix(automations): truncate a long automation name on the run-not-found button

* test(automations): type the history hook test's props

* fix(automations): address C1 review and UX-I1 findings

C1 (code review):
- C1-01: a Back/Forward replay that settles on another page (its run
  history could not be read) replaces its history entry instead of
  appending, so Forward history survives.
- C1-02: Run now's busy state is request-specific; a late failure or
  acknowledgement for an earlier click no longer clears a later one.
- C1-03: the page title takes focus when the user opens Automations
  (sidebar, deep link, Back/Forward); a page restored at launch or on
  reload leaves focus alone.
- C1-04: returning to an off-screen run scrolls the virtualized table to
  that row before focusing it.
- C1-05: a deleted-run deep link records the run it asked for, so
  Back/Forward return to the same not-found page.

UX-I1:
- One "Open workspace" label on the run page.
- Run status is a dot and label everywhere; the run header uses a soft
  tinted pill.
- Every failed run gets one plain-language banner. Blocked-agent reasons
  are translated (trust prompt: "<Agent> is waiting for you to trust this
  folder", with Open workspace), never shown as internal codes.
- A run that started off its slot shows "Scheduled … · Started …"; the
  detail's Last run says "Started …" in that case.
- The three stats stay in one row down to a 480px container.
- "—" instead of "n/a" for spend and tokens.
- An automation's Runs page drops the "Run history" header and shows the
  run count under the title.
- The not-found button reads "Open automation".

* fix(automations): address CodeRabbit review

- Run now tracks one request per automation, so starting another
  automation's run never frees this one's busy state.
- Back/Forward to the list or Runs keeps the list search.
- While Back/Forward resolves an automation, show the loading skeleton
  instead of leaving the page being left interactive.
- A new run request clears an earlier run-not-found result.
- A stale external job key no longer opens a different job.
- Spend reads "Unavailable" when run history could not be read.
- The external row's accessible name includes its host when the Host
  column is shown.

* fix(automations): address internal review round 2

- A Back/Forward replay that falls back to the page just before its entry
  steps back to it instead of leaving a duplicate Back step.
- The detail's Last run says "Started …" only for a run that started.
- A failed run with no recorded reason still gets a banner.
- Back/Forward to the bare Automations entry focuses the page title.
- Remove the unused status-badge variant helper.

* fix(automations): address UX-I2 findings

- UXI2-1: the detail's Last run stat shows the run's scheduled time, the
  same time its rows show; only the run page labels Scheduled/Started.
- UXI2-2: a row you return to (list, rail, Runs tables) is centered when it
  was off screen and gets a brief tint that fades over 1.5s, since focus
  set from code after a click draws no ring. Focus survives a table that
  is still re-rendering, and waits up to 3s for a reloading list.
- Trust-blocked runs use the primary Open workspace button; empty output
  reads "No output."

* fix(automations): address C2 review and UX-I3 findings

C2:
- C2-01: a Back/Forward replay that cannot show its run (history read
  failed) records nothing, so the entry keeps the requested run and
  Forward history is untouched.
- C2-02: the list and global Runs pages focus their search field
  ("Search automations" / "Search runs") on user navigation; the list
  search no longer autofocuses, so a restored page leaves focus alone.
- C2-03: returning to a run waits up to 5s for the table's data to list
  it (cancelled when the page changes or the user focuses elsewhere),
  instead of a fixed frame budget.
- C2-04: "Started" appears only with launch evidence (dispatch time, or
  the start time of a completed/dispatched older record); skipped and
  missed runs show their slot only.

UX-I3:
- UXI3-1: the list, detail stat, rail and run tables all show a run's
  listed time: its scheduled slot, or a folded run's latest occurrence.
  The usage summary carries it as lastRunListedAt; older hosts fall back.
- UXI3-2: a returned row that is already visible stays put; only an
  off-screen row is centered.

* fix(automations): address CodeRabbit round 2 and UX-I4 note

- Spend reads "Unavailable" whenever the latest history read failed,
  instead of totals from the retained earlier read.
- The run a table reveals on return becomes its current row, so arrow
  keys continue from it.
- Back/Forward to Runs spans every host, as the Runs tab does.
- Revealing a returned run scrolls only as far as needed (align auto).

* fix(automations): address C3 review

- C3-01: "Started" needs real launch evidence. A failed run counts as
  launched only if it reached a chat session or terminal; the chat
  launcher's dispatchedAt on a refusal or early throw is not a launch.
- C3-02: each Run now request has its own deadline. An answer that
  arrives after the request's 60s dispatch deadline ends it instead of
  starting a fresh 20s wait, whichever automation is selected.
- C3-03: the returned-to row stays focused through the whole readiness
  budget, including a refetch that clears the cached row and lists it
  again later; the reveal is re-requested while it is missing.
- C3-04: focus and reveal use the host-qualified run key in the global
  Runs table, so the same run id under two hosts returns to the right
  one.
- C3-05: once the user focuses anything else, the repair stops for good.

* fix(automations): address C4 review and the rail listed time

- C4-01: a failed terminal run keeps its Started time after terminal
  retention clears the pane key; terminal runs get dispatchedAt only at
  dispatch. A failed chat run still needs a chat session.
- C4-02: when a refetch drops the returned row for good, focus lands on
  the page search once the readiness budget ends instead of the body.
- C4-03: the run page's focus key is host-qualified, so moving between
  same-id runs on different hosts focuses the new title.
- The Recent runs rail lists a folded run at its latest occurrence, the
  time the list and detail show.
2026-11-13 17:13:38 -08:00
Kelvin Amoaba f86697bdef fix(files): opening a file from the phone no longer switches the desktop's view (#42212)
* fix(files): phone file opens no longer switch the desktop's view

files.open and files.openDiff passed an absent navigation target straight
to the window, which treats absence as a host switch. Phones send none,
so every phone file or diff open moved the desktop to that workspace and
the editor. Resolve an absent target to caller at the RPC; host/all from
the CLI's --focus still move the window.

* fix(mobile): Open in session selects the diff on the phone itself

The review screen relied on the desktop switching to the opened diff,
which only reached phones still following the host. Select the opened
diff for this phone before going to the session.

* fix(mobile): select only the working-tree diff and stop when the review screen closes

* test: drop type casts the changed-code gate flags
2026-11-14 01:07:57 +00:00
OrcaWinandOrcaWin 2d6c923126 test: remove low-value terminal, tray, and updater coverage (#42213)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 17:04:28 -08:00
Kelvin Amoaba 62b22aeab0 fix(computer-use): read minimized, hidden and other-Space macOS windows without --restore-window (#42182)
* fix(computer-use): observe minimized, hidden and other-Space windows on macOS without a restore

macOS only enumerated on-screen windows and dropped minimized AX windows,
so an app whose window was minimized, hidden or on another Space (any
full-screen app) could not be observed, and agents fell back to
--restore-window, which activated every window of the app and switched
the user's Space.

Enumerate every window, keep the off-screen ones accessibility can still
read (other-Space windows by remote token, closed windows dropped by
their Space membership), and report their real minimized and off-screen
state. Background pointer and key input on such a window refuses before
sending anything. --restore-window now raises only the target window,
once per request, and delivery is measured from whether the target
became frontmost.

* fix(computer-use): pin the restored window and prefer visible windows by default

* fix(computer-use): keep window-index cache keys and stale-element checks across a restore

* fix(computer-use): restore only this app's resolved window and refuse a closed target before raising

* docs(computer-use): say macOS reads minimized, hidden and other-Space windows
2026-11-14 00:58:33 +00:00
Kelvin Amoaba 80a514cfb6 fix(browser): stop agent CLI clicks over --environment from moving the desktop (#42205) 2026-11-14 00:51:47 +00:00
Kelvin Amoaba a376f8fbe3 fix(cli): keep orca open and computer permissions from taking the foreground (#42166)
* fix(cli): keep Orca in the background when orca open launches it

* docs(cli): say orca open leaves the foreground alone

* fix(cli): ask a running Orca to open its window in the background

* fix(main): keep background reveals inactive on Linux maximize and drop the flag on admin restart

* fix(cli): narrow the open status before returning it

* fix(main): keep focus-existing-window free of main-window contracts for the web typecheck

* fix(cli): cap the open window request at five seconds
2026-11-14 00:51:45 +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
OrcaWinandOrcaWin 5463aa10d6 test: delete shallow telemetry schema and allowlist suites (#42203)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 16:21:12 -08:00
OrcaWinandOrcaWin dfbfec3e3b test: remove low-value compatibility and stream cases (#42202)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 16:11:57 -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
OrcaWinandOrcaWin 8063a69924 test: remove low-value layout and daemon suites (#42198)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 16:01:56 -08:00
Kelvin Amoaba 513aef5e7d fix(computer): ask the user before retrying with --restore-window (#42181)
* fix(computer): ask the user before retrying with --restore-window

Error hints, recovery steps, the skill guide and the CLI follow-up command
told agents to retry with --restore-window on their own, which raises the
target app and takes the user's screen. They now say to ask the user first,
stop recommending a restore just to observe, and fix stale per-platform
background claims.

* docs(computer): name the Linux keyboard gate and the Wayland limit
2026-11-13 23:50: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
OrcaWinandOrcaWin 8268704516 test: remove weak recovery observation and repeated lifecycle cases (#42183)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 15:36:51 -08:00
Neil b81f0dde51 fix(pairing): never advertise or dial link-local direct endpoints (#41982)
Desktop: drop IPv4 169.254.0.0/16 (and, as before, IPv6 fe80::/10)
addresses from the pairing interface list, so an APIPA or idle adapter is
never the QR's direct endpoint. When nothing else is usable the offer
already omits the direct address (Relay carries the invite; LAN-only
refuses). Among non-Tailscale candidates, an adapter known to hold the
default route now wins ties.

Mobile: a relay-paired host whose stored endpoint is link-local seeds its
logical client with a never-dialing 'reconnecting' stand-in and disables
the direct return probe, so already-paired phones go straight to Relay
instead of redialing the dead address. Relay-less hosts still dial.
2026-11-13 15:09:53 -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
Brennan Benson 1fe1955578 Save complete macOS freeze diagnostics automatically (#41532)
* Keep complete bounded native hang reports

* Fix hang capture validation fixtures and catalog

* Clarify freeze report submission failures

* Capture freezes silently and enrich existing diagnostics event
2026-11-13 13:07:42 -08:00
Kelvin Amoaba 87d105b610 fix(github): read a project's GitHub repo when origin is a local path (#42121)
The project catalog keys a repo by its first network remote (upstream,
origin, then the rest), but GitHub issue and PR lookups only read the
remotes named origin and upstream. A repo whose origin is a local bare
repo and whose GitHub remote has another name showed as GitHub-backed
yet Tasks said no GitHub source was detected. Origin's role now falls to
the same remote the project identity picks.

Fixes #42102
2026-11-13 20:35:58 +00:00
Brennan Benson ff90d6cc68 Keep restored browser tabs from coming back blank (#41490)
* Keep restored browser destinations until requested navigation completes

* test(browser): follow moved orcad page commands
2026-11-13 12:19:08 -08:00
Neil 587562e862 refactor: organize shared sidebar list modules by domain (#42107) 2026-11-13 12:12:51 -08:00
Kelvin Amoaba 255e5c21f5 feat(native-chat): open a subagent in its own view with its prompt, steps and reply (#42066)
* feat(native-chat): open each subagent in its own view inside the chat pane

Clicking a roster entry, an agent in the agents strip or a subagent row in
the sidebar now opens that subagent's own rows in the chat pane, with a bar
to switch between agents and a status bar with its state, Stop and the way
back in place of the composer. Subagent rows are no longer inlined in the
main transcript, which stays mounted underneath so going back keeps the
reader's place. The inline-section machinery is removed.

* fix(native-chat): close a subagent's hover preview when its view opens, and name the strip's open action

An open preview stayed over the subagent's view after its roster row was
hidden, and took the view's first Esc. The agents strip's label now says
it opens the agent rather than showing it in the conversation.

* feat(native-chat): show what the main agent asked a subagent and its reply in the subagent's view

A subagent's view now opens with the prompt the main agent gave it, folded
past a few lines, and ends with its final reply once it settles. Claude's
prompt and reply come from the Agent call its run names; Codex's prompt
comes from the spawn call naming the child, and its reply is already its
last own message.

* chore: drop the deleted delegation file from the node tsconfig and record the removed compiler bailout

* fix(native-chat): subagent view UX round: focus, endings, nested path, status glyphs

Going back hands focus to the entry or strip row that opened the view, else
the composer. Only a completed subagent ends with a reply; a failed one shows
its error and a stopped one says it stopped. Nested subagents get their spawn
path as a breadcrumb, and Back and Esc go to the parent. Every surface uses
the agents strip's status glyph, states lead capitalised and tokens carry
their unit, entries show that they open, the switcher marks the current
agent and numbers unnamed ones, and the status bar fits narrow panes.

* fix(native-chat): switch subagents from the switcher by pointer, and open no preview on handed-back focus

The switcher's modal-less menu closed on pointerdown before the item could
take the click; it is modal now. Focus handed back to a roster entry after a
pointer Back no longer pops its hover preview; keyboard focus and hover still do.

* fix(native-chat): fit the subagent view to main's tool-run provider, install slot and exhaustive state switch

* fix(native-chat): keep a subagent's full reply when its last message is only the start of it

* fix(native-chat): translate the subagent back label with useTranslate so it follows the language
2026-11-13 20:08:08 +00:00
Jinjing 12787ce772 fix(git): retry fetches after concurrent ref updates (#41862)
* fix(git): retry fetches after remote-ref update races

* fix(git): preserve fetch contention details through rebase IPC

* fix(git): reject terminal fetch statuses and recheck retry eligibility
2026-11-13 11:05:27 -08:00
Kelvin Amoaba 39ccf4fb56 feat(native-chat): show each subagent's model, current tool and result in the chat (#41766)
* feat(native-chat): show each subagent's model, current tool and result in the roster

Subagent roster rows now carry the child's role, model, reasoning effort,
the tool it is running and the last thing it said, so a row says what the
subagent is doing and, once done, what it found. Codex children take model
and effort from the spawn call; Claude children take the model from their
own messages. A hover card shows the longer text.

* feat(native-chat): name subagent models and roles the way people say them

Show Opus 5.5 · High instead of claude-opus-5-5 · high, reusing the
model-id label and effort picker copy, and General purpose instead of
general-purpose.

* fix(native-chat): read Codex subagent model and effort from its started activity

Current Codex announces a spawn only through subAgentActivity, which carries
the model and reasoning effort the child resolved to.

* fix(native-chat): use the hover card's own spacing variant for the subagent preview

* fix(native-chat): show a subagent's reply as plain text in its roster row and preview

Its last message is markdown; the row now drops backticks, emphasis, list
and heading marks and joins lines into one readable line.
2026-11-13 19:01:39 +00: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
Brennan BensonandNeil 3bb91aaf36 Keep Git reads responsive during worktree creation bursts (#41927)
* Isolate worktree checkout admission and bound default workers

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

* Prove checkout admission survives caller timeout

* Keep checkout admission coverage compatible with older Git

* Keep aged Git work below interactive priority

---------

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-13 10:31:03 -08:00
Kelvin Amoaba 8db56c11ea feat(worktrees): archive a workspace's checkout and restore it later (backend, off) (#41833)
* feat(worktrees): archive and restore a workspace's checkout (backend, off)

* fix(worktrees): keep archived rows through startup GC and Windows path checks

* fix(worktrees): serialize archive and restore, finish interrupted restores

* fix(worktrees): restore prior archive flag, drop leftover marks, keep archived rows out of offline listings

* test(worktrees): fixed timestamp in archived GC test; drop path cast

* feat(workspace-cleanup): archive inactive workspaces from the runner once archive is on

* fix(worktrees): queue bare-id restores and forget the archive mark when deleting an archived workspace

* fix(worktrees): import archive params from their new contract folder
2026-11-13 17:14:37 +00:00
Neil 075d6b3b50 refactor(rpc): group request contracts by feature owner (#42063) 2026-11-13 08:21:31 -08:00
Kelvin Amoaba c725692258 fix(native-chat): /compact runs while a Claude chat's background subagent works (#41945) 2026-11-13 15:33:32 +00:00
Brennan Benson b492b3c7bf Keep sleeping completion when retiring process authority 2026-11-13 06:06:10 -08:00
OrcaWinandOrcaWin a5854aec6e test: remove low-value transport and shared suites (#42026)
* test: remove low-value automation and shared suites

* test: retire stale gate references and stabilize retained fixture date

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 05:43:27 -08:00