Commit Graph
20612 Commits
Author SHA1 Message Date
Neil 27a19dbd8f perf(terminal): submit at once to a shell idle at its prompt (#36614)
* perf(terminal): submit at once to a shell idle at its prompt

* test: name the captured app transcript by role

* fix(terminal): require host shell-foreground proof and a clean prompt cycle before skipping the submit settle

* fix(terminal): keep the settle for a pane without an identity

* fix(terminal): count a failed idle proof toward the submit settle

* fix(terminal): refuse a fast submit cancelled during the idle proof

* fix(terminal): time the idle proof with a monotonic clock

* test: settle writer idle proofs by hand instead of timed promises
2026-10-31 00:31:35 -07:00
Brennan Benson ebf9fbea71 Drop the removed dependency-security notify job from the release-cut permissions test (#36621) 2026-10-31 00:31:08 -07:00
OrcaWin 5edb1b6f9a test: remove 14 low-value suites and 119 individual cases (#36617)
* test: remove low-value suites and cases

* test: shrink flaky-pattern counts after case removals

* test: remove empty suite and stale release workflow fixture
2026-10-31 00:20:27 -07:00
Jinwoo Hong 8a38328872 Keep orchestration list output short (#36622)
Concise task-list rows carry id, status, title and ids only; specs and results stay in --full (407 KB to 11.5 KB text on a 138-task Run). Concise gate-list rows drop resolutions and timestamps.
2026-10-31 03:18:08 -04:00
Brennan Benson 20a356ec78 Expire unclaimed chat uploads after seven days (#36597) 2026-10-30 23:43:07 -07:00
Brennan Benson 84aed85c7c Share chat options read ownership across desktop and phone (#36582)
* Share chat options read ownership across desktop and phone

* Start a new chat context's options read at once

Reads were coalesced on one queue for the whole view, so after a reconnect, provider restart, phone path change or chat switch the current read waited behind the previous context's request, up to the transport timeout. Each attachment now has its own queue: reads still coalesce to one active and one trailing request within a context, while a new context reads immediately and the old context's reply stays inert. Restores the shared option refresh contract and the reopen test to their original expectations.

* Let desktop options tests wait for the shared read queue

The shared read queue starts a read one microtask after it is scheduled, where the old desktop runner started it synchronously. The selection lifetime and context usage tests now wait for each read to start before asserting on it, keeping every original assertion, including one active and one trailing refresh. The paired server test compares transport targets by value, since the options view memoizes an equal target per environment.

* Keep chat support projections stable between options answers

Desktop and phone rebuilt the conversation, image and command support objects every render, and a host that omits commands produced a fresh empty list each time. Project them once per accepted answer.

* Import options wire types once in the selection reads performance test

* Keep chat support visible across a controller change

Replacing the selection controller, as a desktop re-pair does, cleared the last accepted support, so slash commands, the goal row and the context meter disappeared until the next options answer. On the phone, returning to a chat before the other chat answered showed fallbacks. The support stays tagged with its session and every consumer already filters by session, so it is now kept, as before the shared owner.

* Coalesce phone options rereads across turns and status changes

Each new turn or host status change re-attached the phone's options reader, so a quick run of turns sent one parallel options request per turn. These changes now reread within the current context, as on desktop: one request runs and at most one waits behind it, and only the latest answer publishes. A status change that arrives while a read is in flight now waits for that read, which the transport bounds.

* Restore the phone status wake assertion and type the burst test commands

A refused pick is dropped rather than kept as a finished operation, and the path change replaced the options record, so no revalidation read is in flight when the status wake arrives. The wake therefore reads at once, as the original test asserted. The burst test's superseded answer now carries a real conversation command.
2026-10-30 23:32:00 -07:00
Jinwoo Hong 6c2fde67f5 Let send talk to a worker in any state, reopening closed workers for follow-ups (#36533)
orca orchestration send --to dispatch:<id> now works whatever the worker's state: a working worker reads it now; a finished worker still open gets it as a follow-up Task in place; a closed worker is reopened in its saved conversation, or started fresh with the earlier task and report when no conversation is saved. Unread mail at worker_done becomes a follow-up automatically. An older paired server refuses send to a finished worker with an update message.
2026-10-31 02:27:21 -04:00
Jinjing 93f8583033 Render CodeRabbit review icons in git comments (#36198)
* Render CodeRabbit review icons locally in git comments

- Replace trusted external SVGs with themed Lucide icons
- Suppress picture sources to prevent remote image fetches

* Fix code review icon rendering in git comments
2026-10-30 23:25:25 -07:00
Neil 84469d881f ci: remove dependency review Slack notification job (#36611) 2026-10-30 23:18:14 -07:00
Neil 1bd6718548 test(wsl): time the lane's first output without the agent-paste Enter settle (#36598)
* test(wsl): time the lane's first output without the agent-paste Enter settle

terminal.send with enter:true waits 500 ms before Enter so agent TUIs do
not take it as part of a paste; no keystroke pays that, but every lane
first-output number did. Send the probe with its Enter inside the text,
record time to the shell prompt as its own field, and poll at 25 ms.
Stopping orcad now checks the pid's command line names the active slot
and tolerates an orcad that already exited.

* test(wsl): count only orcad-cold runs that stopped a live orcad

A run whose stop found no live orcad for the active slot measured a warm
reconnect; keep it out of orcadCold, report how many were attempted, and
fail if none stopped one. Rename time-to-prompt to first screen output,
since a login banner may come first.

* test(wsl): count an already-exited orcad as stopped; name first output plainly

stopOrcadKeepingDistro now tells an exited orcad (no pid, or no such
process) apart from a live pid whose command line does not name the
slot: the first counts as stopped, only the second is excluded from
orcadCold and reported as excludedNotStopped. Rename the first-screen
field to timeToFirstOutputMs.

* test(wsl): count orcad as down only on evidence, never on a missing record

GONE now needs a known active slot and a numeric pid file whose process no
longer exists; a missing or malformed record answers UNKNOWN, which is
not counted as stopped.
2026-10-30 22:56:53 -07:00
OrcaWin 72104bfc64 test: remove low-value fixture and forwarding suites (#36600) 2026-10-30 22:55:00 -07:00
Jinwoo Hong 99cddd9796 Name worker-keep-open in the orchestration recovery reference (#36599)
The recovery reference now names worker-keep-open instead of the renamed worker-retain. Guide wording only.
2026-10-31 01:38:55 -04:00
Jinjing ec6073093a Soften dark mode foreground text contrast (#36595) 2026-10-30 22:37:42 -07:00
Jinwoo Hong 47b7af097c Add --spec-file and one keep-open name to orchestration worker commands (#36545)
worker-start and task-create take --spec-file <path> (or - for stdin). worker-start --keep-open keeps a worker open after it finishes in one step, and worker-keep-open replaces worker-retain (kept as a hidden alias). Concise text output escapes terminal control characters in worker-written values.
2026-10-31 01:23:25 -04:00
Jinwoo Hong 48a1c512e3 Always submit an orchestration wake once it has been typed (#36511)
Once Orca has typed a wake line into an agent terminal, it now always sends the Enter, even if the mail was read during the short delay before it. Previously the Enter was skipped and the typed line stayed in the composer, where it counted as a user draft and held later wakes.
2026-10-31 01:23:21 -04:00
Brennan Benson ed79f1d1a6 test(terminal): give the fish color-scheme test's store fixture unifiedTabsByWorktree (#36586)
#31617 made terminal pane owner resolution read state.unifiedTabsByWorktree, but this test's mocked store never had the field, so shell contracts fail on main with "Cannot read properties of undefined (reading 'wt-1')".
2026-10-30 22:22:49 -07:00
OrcaWin 20cd8131e4 test: remove low-value mocked forwarding suites (#36592) 2026-10-30 22:14:41 -07:00
Kelvin Amoaba 0ef88c1eee feat(worktree): open the native chat while its worktree is still being created (#36556)
* feat(worktree): open the native chat while its worktree is still being created

When native chat is the default, creating a worktree now shows the chat
pane straight away instead of a spinner panel. Its composer works while
git runs. A message sent before the worktree exists shows as the first
user message with a step card under it (prepare, fetch base branch,
create worktree with checkout %, start the agent), and the chat launch
sends it as its first message once the worktree is ready. Text left
unsent moves into the real chat's composer. Failures mark the step that
failed and keep Retry and Dismiss.

The renderer holds the message and hands it to the existing launch
prompt path, so hosts need no protocol change. The terminal route,
folder workspaces, SSH and VM recipes keep the old panel.

* fix(worktree): keep a held chat message when the host declines the chat

A background create whose host declines native chat opens the agent
terminal from the submit-time plan, which never saw a message sent
while the worktree was being created. That message now lands unsent in
the agent's input. The pending composer draft is also only deleted
once it has been copied into the new chat.
2026-10-31 04:42:54 +00:00
Brennan Benson 2504ea9f75 fix(tasks): remove IPC wrappers from GitLab list errors (#36506)
* fix(tasks): unwrap GitLab list transport errors

* fix(tasks): retain GitLab list recovery instructions

* test(tasks): align GitLab banner harness input types
2026-10-30 21:42:49 -07:00
OrcaWin cb5482ae1c test: remove low-value forwarding and presentation suites (#36584) 2026-10-30 21:39:26 -07:00
Kelvin Amoaba d618a85ffd feat(mobile): redesign sheets, pickers and list screens (#36585)
Sheets slide on iOS's curve over their own height, ease when their content
changes, and paint a lighter surface with grouped rows and a drawn switch.
Create worktree, the model picker, the GitHub issue sheet, file preview,
Agent Session History and the task list take the redesign draft's layouts
at the app's smaller type sizes.
2026-10-31 04:35:07 +00:00
Kelvin Amoaba 4cb86e7023 perf(worktree): check out new worktrees with all cores (#36559)
Git checks out with one sequential worker by default, so creating a worktree in a large repo spends most of its time writing files on one core. Every create-path command that writes the working tree (worktree add, the prepared-checkout and tip-refresh resets, and the sparse checkout) now passes -c checkout.workers=0, which gives one worker per core. On a 41,924-file clone on a 14-core Mac, git worktree add dropped from 3.8-8.3s to 2.4-3.0s. If checkout.workers is set at any scope, read with git config --get on the same host and repo as the checkout, Orca leaves it alone. Git before 2.32 does not know the key and ignores it.
2026-10-31 04:28:58 +00:00
Brennan Benson a1f658cc32 Keep settled permission notices compact on desktop and phone (#36304)
* fix(chat): collapse settled permission notices

* Keep notice scroll addresses unique per rendered row

* test(native-chat): cover notice scroll bounds and shared classification

* fix(mobile): preserve notice summary long-press actions

* Preserve mobile notice selection and caret rendering

* Use type imports in mobile notice web tests

* Resolve real SVG test host from mobile dependencies
2026-10-30 21:24:27 -07:00
Brennan Benson 1f504e9537 Stabilize the Git watcher upgrade fanout test (#36517)
* test(worktrees): isolate upgrade absence from fallback polling

* test(worktrees): await upgrade baseline without advancing fallback
2026-10-30 21:08:07 -07:00
Brennan Benson 56ef7c8881 test(windows): dismiss Chat UI tip before workspace creation (#36547) 2026-10-30 21:06:19 -07:00
OrcaWinandOrcaWin beaa519d52 test: remove 16 low-value forwarding and identity suites (#36566)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-30 21:01:18 -07:00
Neil baa02c91e3 fix(relay): cap HTTP request bodies before they are buffered, including chunked ones (#36562)
* fix(relay): cap HTTP request bodies before they are buffered, including chunked ones

Every relay POST route checked only the Content-Length header before calling req.json(), so a chunked request with no Content-Length was buffered and parsed whole. /v1/resolve does that before any authentication. Enforce Hono's bodyLimit app-wide at RELAY_PROTOCOL_LIMITS.maxHttpBodyBytes (4 KiB, the limit every route already declares), with the cell reserve and demote routes keeping their own 16 KiB limit; push already does the same.

* test(relay): prove a 6 KiB reserve body reaches its route
2026-10-30 20:58:45 -07:00
Brennan Benson 6e70de5892 fix(mobile): allow next-message model picks during structured replies (#36451) 2026-10-30 20:57:06 -07:00
Brennan Benson e9a376267c Stop attributing recovered ACP replies to outside activity (#36302)
* fix(acp): separate recovered history from outside activity

* Fix repeated recovered history divider corrections

* Compose ACP replay targets before checked settlement

* Explain ACP scaling fixture timeout

* Complete ACP fixture types and runtime English catalog

* Type exported ACP fixture warning mock

* Restore ACP history without an extra notice
2026-10-30 20:56:50 -07:00
Neil 28ce81fba0 fix(cloud): patch relay, push and connector images to Node 24.22.2 and current Alpine fixes (#36560)
The runtime stages shipped node:24.22.1-alpine (Alpine 3.24.2) as built, so CVE-2026-85091 (zlib) and CVE-2026-107891 (musl) were present in all three images. Move to node:24.22.2-alpine (Alpine 3.24.3) and apk upgrade the runtime stage, as the api and auth images already do, so later Alpine fixes land at build time.
2026-10-30 20:53:22 -07:00
3d051c0adc fix(dashboard): open OSC 8 hyperlinks from Agent Dashboard terminal previews (#36483)
Agent Dashboard terminal previews had no xterm linkHandler, so OSC 8
hyperlinks fell back to xterm's confirm() + window.open() default, which
Electron blocks. Route OSC 8 links through the same Mod+click activation
as plain-text URLs (opening via shell.openUrl) and show the destination
as a native title on hover, since previews have no pane tooltip.

Co-authored-by: alpenshtokk <wawesandways@gmail.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-10-30 20:52:08 -07:00
Sandeep SinghandNeil d4a14acad3 fix(updater): skip apt's _apt sandbox notice in the Linux .deb install command (#35643)
The copied .deb install command now passes
-o Binary::file::APT::Sandbox::User=root to apt. The _apt sandbox user
can't read the package in the user's private ~/.cache, so apt already
fell back to root and printed an "unsandboxed as root" notice; presetting
that fallback for the file: method removes the notice without changing
effective privilege, and network methods stay sandboxed.

Fixes #35641

Co-authored-by: Neil <neil@stably.ai>
2026-10-30 20:46:53 -07:00
Brennan Benson ae09815770 Support automations in Orca Mobile (#31617)
* Add host-owned automations flow to mobile

* fix: resolve initial mobile automation CI failures

* Preserve automation target identity and mobile action state

* Preserve selected automation targets through discovery and terminal launch

* Cover draft reversion after uncertain automation creation

* Preserve automation target and submitted action authority

* Preserve selected hosts and editor operations across restored state

* Refresh mobile web bundle measurements for merged routes

* Fix automation history observation and catalog scaling

* Fix automation mobile presentation and merged launch bindings

* Refresh measured mobile bundle sweep and correct automation test inputs

* Move real-module test loads to collection and consolidate imports

* Use typed row access to count worktree ownership reads

* Refresh selected automation history on matching host events

* Fix automation contract types and merged test imports

* Fix automation theme updates and committed history ownership

* Update folder terminal contract fixtures for canonical host catalogs

* Consolidate historical session activation fixture imports

* Repair automation contract project boundaries and owner type ports

* Preserve acquired automation folder owners and fix integration lint

* Retain terminal pane owners captured at connect

* Use checked pane manager context in owner retention test

* fix: adapt merged editor and terminal test contracts

* fix: preserve captured automation targets and terminal owners

* fix: honor explicit automation source clears and refusal contracts

* test: construct terminal transport mocks with checked types

* test: supply retained-owner context in terminal fixtures

* test: align terminal fixtures with callable mocks and store ports

* fix(mobile): localize automation screens and run details

* fix(mobile): use automation translations in context

* fix: preserve editor owner checks and automation repair guidance

* fix: reconcile captured workspace contracts after main sync

* Repair automation integration tests and retained target diagnostics

* Keep test support owned by registered unit roots

* Expose full blocked automation run reasons in menus

* Anchor mobile bundle envelope to measured route sweep

* fix(mobile): localize coded automation run failures

* fix: preserve automation decisions and captured resource ownership

* fix: qualify remaining automation workspace owner consumers

* fix: preserve resolved watch and child editor owners

* fix(editor): share qualified worktree watch ownership

* fix(editor): reuse immutable repo ownership lookup

* fix: preserve host ownership without duplicate catalog scans

* fix: align automation destination host types and ratchets

* fix: align mobile bundle envelope with measured sweep

* fix(mobile): resolve automation setup policy before save

* test(mobile): qualify reconciled automation target inspection

* fix(mobile): keep server setup consent within its authority

* fix: accept narrow qualified workspace owner snapshots

* fix: reuse qualified owner state for workspace directories

* fix(mobile): localize known automation orphan reasons

* Correct automation controller and Chat harness types

* Refresh editor requests after paired host restart

* Refresh measured mobile web bundle envelope
2026-10-30 20:40:04 -07:00
Neil 85d96f008a test(wsl): track reopening Orca after orcad's idle exit in the lane receipt (#36523)
Five more runs stop only orcad in the guest, as its idle exit does, then
reconnect with the distro still up. startupGate.orcadCold reports them
against the warm bar, marked not gated, with orcad's startup medians.
2026-10-30 20:28:13 -07:00
OrcaWinandOrcaWin c608be9e6d test: remove 17 low-value mock and forwarding suites (#36549)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-30 20:21:43 -07:00
Jinwoo Hong 8138232c4f Print concise orchestration CLI output for agents, with --full for the full record (#36498)
Orchestration commands print small flat fields in text and --json by default; --full prints the previous output. Failures exit non-zero with error: <code>: <message> on stderr.
2026-10-30 23:11:56 -04:00
Kevin Langley Jr. 5e1689c835 feat: add Slatewave terminal theme (#9059)
Adds Slatewave to the popular dark extended catalog. Slatewave is a calm slate-and-teal palette with an existing theme family across Alacritty, Kitty, Ghostty, WezTerm, iTerm2, VS Code, Neovim, and Obsidian (https://getslatewave.com).

The ANSI mappings mirror the upstream Slatewave palette exactly, so terminal output stays visually aligned with the editor themes in the same family.
2026-10-30 20:11:15 -07:00
Neil 85edf1bba6 feat(plugins): show public install counts in the plugin catalog (#36537)
* feat(plugins): show public install counts in the plugin catalog

* fix(plugins): tolerate the empty stats placeholder; count bundled official plugins

* test(plugins): pin install-stats test clock
2026-10-30 19:57:26 -07:00
Kelvin Amoaba 97582248e7 feat(mobile): rebuild Home around what needs you, with actions pinned at the bottom (#36520) 2026-10-31 02:47:49 +00:00
Kelvin Amoaba 5e6c0494b3 feat(mobile): compact top bar, bottom search and filter chips (#36535)
* feat(mobile): compact top bar, bottom search and filter chips

Every list screen gets one compact bar (back, centred title, at most two
buttons, the rest in a ⋯ pull-down), with search moved to a wide bar at
the bottom and filters as chips. The workspaces page shows the host name
at the top of the list and folds it into the bar as you scroll.

* test(mobile): pass the Tasks bar's accessory in the host subtitle test

* fix(mobile): stretch filter chips to fill the row; follow moved header controls in render checks
2026-10-31 02:47:30 +00:00
Neil c378e78d5a perf(notifications): scope card layout vars to their readers instead of :root (#36531)
Writes the stack height and composer clearance vars only on the card stack and
toaster wrapper, skipping unchanged values, so a composer resize no longer
restyles the whole document.

Fixes STA-13053
2026-10-30 19:26:42 -07:00
Neil fdc03848a5 fix(plugins): protect every security and destructive string from language packs (#36219)
* fix(plugins): protect every security and destructive string from language packs

Language packs could rewrite trust copy outside a hand-kept list of app
areas (catalog-link dialog, browser-extension Allow/Deny, Node mirror).
Protected keys are now generated from structure: every key in a file that
renders a security surface, a destructive confirmation, or a native message
box, or that carries a // @protected-copy pragma, plus same-directory copy
modules. verify:localization-catalogs fails when the list is stale.

Pack strings are also capped at max(64, 4x English) characters and may not
contain control or bidi characters. Validation stays strict; loading drops
only the offending entries.

* chore(plugins): resync protected copy keys with main

* fix(plugins): cap pack strings in shared strict checks and pin new trust copy

* fix(plugins): keep the packaged CLI off the English catalog

* chore(plugins): resync protected copy keys with main

* chore(plugins): resync protected copy keys with main
2026-10-31 02:22:49 +00:00
OrcaWinandOrcaWin a15989e7d5 test: remove 30 low-value test suites (#36528)
* test: remove 30 low-value test suites

* test: preserve cold restore evidence command history

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-30 19:21:44 -07:00
Neil 0c0893d5b4 fix(process-host): never kill an isolated child whose exit it cannot watch (#36521)
When the native exit watch fails to register, the child never reports an
exit, so a later kill() could signal a pid Windows has since reused. Mark
such a child untracked: kill() refuses it and the warning says so. No exit
is faked; the WSL holder already releases through its own pid and
creation-time check.
2026-10-30 19:16:29 -07:00
Kelvin AmoabaandVyacheslav Scherbinin 71a93114a5 fix(native-chat): keep chat image thumbnails square while scrolled away or loading (#36488)
Co-authored-by: Vyacheslav Scherbinin <14369958+gentslava@users.noreply.github.com>
2026-10-31 02:12:25 +00:00
Neil c5f3499c46 chore(scripts): reclaim historical test caches from idle worktrees without --tests-stopped (#36532) 2026-10-30 19:11:50 -07:00
Neil 584e672df8 fix(plugins): accept plain repo, release and tag page URLs in Git install (#36525)
* fix(plugins): accept plain repo, release and tag page URLs in Git install

The Git URL install dialog refused anything without a #ref suffix, so pasting a
repository or GitHub release link failed with "Add a #tag or #commit". It now
reads owner/repo, repository URLs with or without .git, SSH URLs and GitHub /
GitLab release, tag, tree and commit pages, pins the newest version tag (or the
default branch's commit when there is none) with git ls-remote, shows that
version and commit, and installs only that exact commit.

* fix(plugins): let the Git install dialog close while a version check runs
2026-10-30 19:10:28 -07:00
Kelvin Amoaba 01e03f9920 fix(browser): present Electron's own user agent on Google sign-in pages (#36519) 2026-10-31 02:03:50 +00:00
Neil eff549111c feat(plugins): link plugin pages to the README at the pinned release commit (#36527) 2026-10-30 18:57:53 -07:00
Kelvin Amoaba 2048245a26 fix(browser): let grab and annotate pick elements in modal dialogs and popovers (#36518)
Top-layer content (showModal dialogs, popovers, fullscreen elements)
paints above the overlay's max z-index and a modal dialog makes it inert,
so hover and clicks reached the page instead of the picker. The outline
now lives in the top layer and is raised again when new top-layer content
opens; the overlay reads hover and blocks trusted presses at window
capture and hands real pointer picks to awaitClick.

Fixes #28657
2026-10-31 01:30:53 +00:00