Commit Graph
20622 Commits
Author SHA1 Message Date
Brennan Benson 87947ae868 Show CI results as one-line cards on desktop and phone, following the desktop setting (#39658)
* Show CI result lines on the phone, following the desktop setting

The host now sends nativeChatCiResultLines resolved in settings.get, the
ready snapshot and a nativeChatCiResultLinesChanged event, from one
publisher that tracks each pushed chat preference separately. The phone
keeps one store per desktop connection and preference, reads the CI value
only from the paired desktop, and hides the lines until that desktop
reports one. CI rows stay in the projection and are filtered after it, so
a flip rebuilds nothing. The phone draws the line with links to the pull
request and commit.

* Let the phone CI line wrap and select like other notices

Long repository names at large font scale no longer push the commit link
past an ellipsis: the line wraps, centered, with the icon on its first
line. Its text follows the system-notice selection policy, so iOS selects
natively and Android keeps the long-press actions sheet. The CI strings
are translated in every mobile locale, the filter copies only once it
meets a CI row, and the tests drop a token assertion and a duplicate case.

* Draw CI results as one-line cards on desktop and phone

The CI result line becomes a one-line card in the same frame as the
opened pull request card, with the Hide button inline at its right end
on desktop, and in the phone's chat card frame without one. Only the
lead and pull request name truncate, so the commit link and the Hide
button stay reachable on narrow widths. The fixture uses real
percent-encoded item ids so its links render.

* Make the CI card's whole lead open its pull request

A translated lead at large font scale can push the ellipsis before
repo#N, which left no visible way to open the pull request. The
truncating segment is now the pull request's target on desktop and
phone, named for it, while "at <sha>" stays the commit's own target.
The ja, zh and zh-Hant leads use a plain colon so the space after it
isn't doubled.

* Read the CI result lines setting only for structured chats

CI result lines come only from structured sessions' journals, so a
terminal chat no longer sends the setting read. The prompt-controller
fixture stubs the setting hook: its tests count only the chat's prompt
writes, and the structured chat's one read per desktop connection is
expected.
2026-11-08 10:05:27 -08:00
OrcaWinandOrcaWin f2d1d5782c test: remove 12 low-value skill transfer tests (#39911)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 10:01:47 -08:00
Neil cd546dc3d0 refactor(skills): retire unused removal service and test concrete owners (#39902) 2026-11-08 09:19:54 -08:00
OrcaWinandOrcaWin 492ccce634 test: remove 5 low-value skills tests (#39903)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 09:07:53 -08:00
OrcaWinandOrcaWin d5f7081243 test: remove 8 low-value skills tests (#39899)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 08:55:00 -08:00
Neil a964c9e0b5 refactor(acp): group transport, session, launch, and timeline owners (#39897) 2026-11-08 08:42:10 -08:00
OrcaWinandOrcaWin 078bda27f8 test: remove 7 low-value workspace-store tests (#39896)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 08:34:08 -08:00
OrcaWinandOrcaWin 89422778ee test: remove 11 low-value agent-status tests (#39893)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 08:16:45 -08:00
OrcaWinandOrcaWin 4ec21a86df test: remove 13 low-value hook tests (#39892)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 08:07:11 -08:00
OrcaWinandOrcaWin 786a5b21a2 test: remove 23 low-value hook tests (#39889)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 07:56:03 -08:00
Neil 26a4db6b4e refactor(skills): group discovery, install, cloud, and transfer owners (#39874)
* refactor(skills): organize installation, discovery, and transfer owners

* chore(skills): reconcile move validation metadata
2026-11-08 07:39:57 -08:00
OrcaWinandOrcaWin 459128006c test: remove 6 low-value renderer work-count tests (#39885)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 07:34:34 -08:00
Neil 19043a3d76 refactor(mobile): organize pairing, session, RPC and host owners (#39846)
* refactor(mobile): give relay and encryption concrete owners

* refactor(mobile): organize session and review feature owners

* refactor(mobile): organize RPC and host ownership

* test(mobile): point render fixtures at concrete owners

* refactor(mobile): use explicit type-only owner imports
2026-11-08 07:19:05 -08:00
OrcaWinandOrcaWin e0ea78c7d4 test: remove 6 low-value resume and lifetime tests (#39881)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 07:17:34 -08:00
OrcaWinandOrcaWin 749829b2a6 test: remove 5 low-value agent launch tests (#39875)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 07:09:20 -08:00
OrcaWinandOrcaWin 9f28435ca2 test: hover the grab target before clicking in the split grab e2e (#39868)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 07:08:13 -08:00
Neil c10881fa8c refactor(shared): organize execution and automation defining owners (#39776)
* refactor: import journal queue state from defining owners

* refactor(shared): organize execution and automation owners

* fix: retain type imports used by surviving test cases

* refactor: finish work item owners and refresh validation metadata

* test: infer reconnect status fixture type

* test(claude): resolve source files beside same-named directories

* test(runtime): group repository creation mock registrations
2026-11-08 06:46:09 -08:00
784aefee50 perf(tasks): look up the GitLab comment viewer only on phone reads (#39860)
* perf(tasks): look up the GitLab comment viewer only on phone reads

The phone is the only reader of viewerDidAuthor, so GitLab detail reads
from desktop IPC and the Checks poll skip the `glab api user` lookup.
The phone sends markViewerComments on every GitLab detail read.

Ported from #39749 (GitLab part only); GitHub REST-fallback viewer
lookup is unchanged.

Co-authored-by: AmoabaKelvin <97001695+AmoabaKelvin@users.noreply.github.com>

* perf(tasks): keep GitLab viewer marks by default; desktop detail reads opt out

Older phones and callers that omit markViewerComments keep author marks.

Co-authored-by: AmoabaKelvin <97001695+AmoabaKelvin@users.noreply.github.com>

---------

Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
Co-authored-by: AmoabaKelvin <97001695+AmoabaKelvin@users.noreply.github.com>
2026-11-08 06:27:50 -08:00
OrcaWinandOrcaWin b67159291b test: remove 14 low-value renderer tests (#39871)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 06:26:47 -08:00
Neilandm4air dddc1260e5 chore(lint): oxlint 1.91, cheap perf/correctness rules, return-await fixes (#39730)
* chore(lint): bump oxlint to 1.91, add perf lint rules and perf audits

* fix(lint): await promises returned inside try/catch/finally for return-await

Prepare typescript/return-await with error-handling-correctness-only: await
returns whose catch or finally was meant to cover them, and suppress the eight
sites where the catch must not re-handle the returned promise.

* chore(lint): enable return-await (error-handling-correctness-only); exempt secondary-scan directives in the changed gate

* refactor(mobile): move file preview discard modal into its own module

Keeps MobileFilePreviewScreen under the 400-line limit after merging main.

---------

Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
2026-11-08 06:21:54 -08:00
ae6675d67c fix(window): cancelling a quit prompt clears the quit latch so later closes aren't treated as quits (#39597)
* fix(window): cancelling a quit prompt now cancels the quit

Renderer-owned quit prompts (running-work "Close Window?", Save dialog,
close-guard and shutdown-checkpoint vetoes) never reach
will-prevent-unload, so main kept isQuitting latched after Cancel. A later
plain close was treated as a quit and renderer crashes were not recovered.

Add a window:close-cancelled IPC (preload ui.cancelWindowClose; no-op in the
web client) that the renderer sends on each cancel path. Main accepts it only
from its own renderer, only while quitting, and only once that renderer has
acknowledged the newest close request, then runs the same abort path as a
beforeunload veto.

Fixes #39596

Co-authored-by: Neil <neil@stably.ai>

* test(window): expose webContents.send on the renderer recovery harness type

---------

Co-authored-by: tomarai85 <tomarai85@users.noreply.github.com>
Co-authored-by: Neil <neil@stably.ai>
2026-11-08 06:17:53 -08:00
d464685250 fix(codex): do not count a dangling link raced into the target as bridged (#39862)
When a link attempt finds the target taken, check what is there. A
dangling symlink another writer created after the directory listing is
not readable history, so the thread stays out of the bridged set, as
on main.

Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
Co-authored-by: AmethystLiang <6427696+AmethystLiang@users.noreply.github.com>
2026-11-08 06:14:48 -08:00
OrcaWinandOrcaWin 60aee85d91 test: remove 27 low-value hook and terminal tests (#39866)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 06:05:26 -08:00
OrcaWinandOrcaWin 7d195c7e50 test: remove 95 low-value renderer tests (#39859)
* test: remove 95 low-value renderer tests

* test: remove duplicate environment directives

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 05:53:18 -08:00
OrcaWinandOrcaWin 8c1e6dfba7 test: remove four redundant terminal tests (#39858)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 05:43:52 -08:00
Neil 10c01509de fix(ime): don't swallow the first Enter after toggling Japanese IME off with Hankaku/Zenkaku (#39834)
On Windows, Hankaku/Zenkaku commits the Japanese composition as a
Process/229 keydown that may never send a keyup. The composer treated any
Process/229 keydown as an IME-confirm Enter and armed the carry, so the
user's next real Enter was swallowed. Only arm the carry when the
processed key's physical code is Enter (or unknown), sharing the code
check with the terminal IME path.

Fixes #39289
2026-11-08 05:32:19 -08:00
Neil 5fb71170ff fix(hermes): tolerate a deleted cwd in the status hook so pre_tool_call isn't blocked (#39833)
Hermes Kanban cleanup can remove a worker's cwd; os.getcwd() then raised
FileNotFoundError from the orca-status plugin and Hermes failed pre_tool_call
closed, blocking the tool. The payload now omits cwd when it can't be read.

Fixes #39736.
2026-11-08 05:32:09 -08:00
OrcaWinandOrcaWin 96f5f5a9eb test: remove 128 low-value tests (#39853)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 05:31:22 -08:00
Jinjing 63637e82e8 perf(codex): bridge account history with async directory diffs (#39805)
Account selection and every Codex launch walked all rollouts in every
source home and ran a synchronous existsSync per rollout on the main
process, then linked missing ones with sync mkdir/link/symlink. A CPU
profile of an installed build attributed ~6.4s of sampled existsSync time
to this bridge during typing lag.

The bridge now walks all source homes together and diffs directory
listings asynchronously, so a target directory is read once per pass and
history the target already holds costs no per-rollout synchronous call.
Small directories use per-path checks instead of listing a wide target.
Name matching yields every 256 entries.

Behavior matches the previous bridge:
- An existing target name is never overwritten.
- Earlier sources are tried first, and a later source still gets an
  attempt when an earlier one cannot be linked.
- Hardlink-only targets skip and leave no folders behind.
- Readiness, index healing and quit handling are unchanged.
2026-11-08 13:14:22 +00:00
OrcaWinandOrcaWin 22f387b6b3 test: remove 231 low-value tests (#39850)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 05:06:36 -08:00
Neil 656a05de0d perf(main): overlap independent fs probes; skip per-entry copies (#39729)
* perf(main): overlap independent fs probes on git status, agent detection and orcad startup

* perf: skip per-entry copies in git change list and tab hydration; drop unused activity barrel
2026-11-08 05:05:19 -08:00
537d764f58 perf(mobile): warm WebKit's processes on iOS before the first page opens (#39851)
* perf(mobile): warm WebKit's processes on iOS before the first page opens

Builds a blank, non-persistent WKWebView a second after Home has a paired
host, so the first page open starts against WebContent, GPU and Network
processes already running. A release before the delayed start now makes
the start a no-op.

Based on #32163 by Jinwoo-H.

Co-authored-by: Jinwoo-H <73622457+Jinwoo-H@users.noreply.github.com>

* fix(mobile): guard warmUp on older binaries and release the warm view on page failure

Co-authored-by: Jinwoo-H <73622457+Jinwoo-H@users.noreply.github.com>

---------

Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
Co-authored-by: Jinwoo-H <73622457+Jinwoo-H@users.noreply.github.com>
2026-11-08 05:01:36 -08:00
346dcae485 perf(test): default check:changed unit tests to two Vitest workers (#39849)
Plain local pnpm test keeps automatic sizing; explicit --maxWorkers still wins.

Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
Co-authored-by: nwparker <4138956+nwparker@users.noreply.github.com>
2026-11-08 04:53:17 -08:00
8995b03646 perf(skills): read skill folders ahead of the walk, three reads at a time (#39836)
* perf(skills): read skill folders ahead of the walk, three reads at a time

Port of #35220. findSkillFiles awaited realpath then readdir for every
folder, so a busy main process paid about two event-loop turns per folder.
A read-ahead now lists folders in walk order while the walk claims them
in its own depth-first order, so results, order, alias winners and the
cycle guard are unchanged.

Changes from #35220: up to 3 read-ahead reads (was 64) plus at most one
demand read from the serial walk, so at most 4 directory reads in flight
on libuv's 4-thread pool; a sorted array replaces the min-heap; tests
assert walk results only.

Co-authored-by: thefrikidude <100475418+thefrikidude@users.noreply.github.com>

* test(skills): drop walk tests that cannot detect the read-ahead

Both pass on the old walk, so they do not guard this perf-only change.
Note the in-flight bound applies per walk.

Co-authored-by: thefrikidude <100475418+thefrikidude@users.noreply.github.com>

---------

Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
Co-authored-by: thefrikidude <100475418+thefrikidude@users.noreply.github.com>
2026-11-08 04:41:21 -08:00
0f6432319d perf(orchestration): back off failing federation relays instead of polling every second (#39734)
Each federated dispatch relay now reschedules itself and doubles its wait
after consecutive failures (capped at 30 s) instead of syncing every second
forever. A server turning verified, or a sync completed by another caller,
returns the relay to the base cadence. A coordinator blocked in
`check --wait` re-arms its run's relays every 15 s, so a recovered worker is
seen within that window. Relays for a server removed from this host stop
instead of retrying; the next relay arm brings them back if it is re-added.
Stale in-flight syncs no longer record acknowledgments, epochs or home
auto-release after the relay stopped.

Replaces #39283.

Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
Co-authored-by: brennanb2025 <79079362+brennanb2025@users.noreply.github.com>
2026-11-08 04:38:49 -08:00
Neilandm4air 2a5a939a0c test: split GitHub and GitLab mocks out of runtime setup.spec to fix main lint (#39837)
* test: split GitHub and GitLab mocks out of runtime setup.spec

setup.spec.ts reached 801 counted lines after #39575, failing the root
oxlint max-lines rule on main. Move the GitHub/hosted-review and GitLab
mock functions and their vi.mock registrations into sibling modules that
setup.spec re-exports, so every consumer keeps the same imports and mocks.

* test: name split runtime mock modules as test harnesses

The module-mocking lint exempts *-test-harness.ts support modules shared by
split suites; the split-out GitHub and GitLab mock modules are exactly that.

---------

Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
2026-11-08 04:22:50 -08:00
RoastFriedandNeil ba04481e42 fix(browser): keep native popup minimum content size and first Windows fixture error (#39319)
Native popups now hide the app menu bar like origin-bar popups, so the
Windows menu no longer eats into the 200px minimum content height.

The popup compatibility fixture keeps the first reported error across
later status writes, stops serializing the destroyed Event as an error,
and replaces its status file with the Windows retry helper. The native
resize check now compares against the native outer window size.

Fixes #39299

Co-authored-by: Neil <neil@stably.ai>
2026-11-08 04:01:25 -08:00
OrcaWinandOrcaWin 5fc3b26766 test: remove 712 low-value tests (#39829)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 03:51:04 -08:00
WenhaoandNeil 448aaadde6 fix(antigravity): detect Orca Chat sign-in via antigravity-acp/acp_token.json (#39398)
agy-acp-server 1.4.1 keeps the personal sign-in at
<GEMINI_HOME>/antigravity-acp/acp_token.json; nothing it writes ends in
oauth-token, so a signed-in Chat read as signed out and new chats could
move to the host's ~/.gemini account.

Fixes #39395

Co-authored-by: Neil <neil@stably.ai>
2026-11-08 03:45:48 -08:00
Brennan Benson d857e09615 Git Graph: commit actions (checkout, cherry-pick, revert) (#39069)
Adds commit actions to the Git Graph: check out a commit or branch, cherry-pick, revert, and create a branch from a commit. Conflicts hand off to Source Control with continue and abort. Works on local, WSL and remote hosts.
2026-11-08 03:43:30 -08:00
Vitalii KulishandNeil 4824562f3e fix(packaging): run the terminal host PTY probe in /bin/sh (#39602)
The packaged daemon PTY check types a POSIX arithmetic command and waits
for "OK 42". The daemon picked the PTY shell from the builder's $SHELL, so
a fish builder never printed it and Linux afterPack timed out. Pin the
probe daemon's SHELL to /bin/sh so the check exercises the packaged PTY,
not the builder's login shell.

Fixes #39591

Co-authored-by: Neil <neil@stably.ai>
2026-11-08 03:35:16 -08:00
Brennan Benson 3fe350eaed Create a worktree per repository from an empty folder workspace (#39575)
A folder workspace with no worktrees now offers Create worktree for each repository, named after the folder workspace. If that branch name is already taken, the host refuses instead of picking another name, and the composer opens so you can choose.
2026-11-08 03:30:10 -08:00
YohanandNeil 56d9db5042 fix(sidebar): don't wake a sibling Hide sleeping keeps hidden when the active workspace is deleted (#39230)
With Hide sleeping on, deleting the active workspace activated the most
recently visited sibling (or main) and seeded it a terminal, so a hidden
sleeping row popped back into the sidebar. The removal successor now
skips siblings the sleeping sweep hides, using the same check the
sidebar's reveal path uses and honoring rows held through the PTY-rebind
grace window. With no eligible sibling the user lands on the start screen.

Fixes #39231

Co-authored-by: Neil <neil@stably.ai>
2026-11-08 03:29:45 -08:00
luisgonzaleznfandNeil a7d94eb86f fix(settings): line up an agent's launch fields on one type scale (#39199)
Command, Environment and Codex's session source home now use Input's
code variant, so they render at text-xs instead of md:text-sm above
768px. The Arguments label matches its siblings' text-xs style, and the
Arguments wrapper uses py-0.75 so its text is vertically centred.

Co-authored-by: Neil <neil@stably.ai>
2026-11-08 03:29:34 -08:00
Naveen ChatlapalliandNeil 58f17b3af2 fix(bitbucket): document API token scopes in connection setup (#39118)
List the Bitbucket API token scopes Orca needs (read:user, read:repository,
read:pullrequest, write:pullrequest) in the Email & API token form so users
configure a working token up front instead of hitting missing-permission
errors when creating a pull request. Strings are translated in every locale.

Fixes #38652

Co-authored-by: Neil <neil@stably.ai>
2026-11-08 03:24:14 -08:00
Neil b746eef069 fix(shell): keep a user's claude/codex function when the cwd has a matching entry (#39820)
command -v prints a shell function's bare name, so a claude/codex directory
or executable in the cwd passed the -x check and Orca replaced the user's
function. Skip the wrapper when a function with that name is already defined.

STA-13246
2026-11-08 03:23:55 -08:00
NeilandCopilot 40236ab701 Use searchable pickers for long Settings lists (#39815)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-08 03:20:47 -08:00
Neil 00d3e44ba5 fix(agent-hooks): let the last-status throttle apply to routine hook events (#39826)
* fix(agent-hooks): let the last-status throttle apply to routine hook events

Each hook event re-recorded the pane's authority evidence, which bumped the
revision counters behind the "urgent persist" fingerprint even when only
observedAt moved. Every event then skipped the 5s throttle and rewrote
last-status.json. Update the stored evidence without bumping the revision when
the authority itself (launch token, connection, tab, worktree) is unchanged.

* test(agent-hooks): remove timer-racy persistence count assertions
2026-11-08 03:18:10 -08:00
Brennan Benson f399a071bb Open a landing instead of a terminal when splitting a Chat UI pane (#39234)
* Open the new-tab landing when splitting a Chat UI pane

Splitting a chat with Cmd+D opened a terminal nobody asked for. The split now
opens an empty pane that shows the home-screen landing (New agent, New
Terminal, New Browser Tab, plus shortcuts); Cmd+W closes it. Chats in the
floating panel and inside terminal tabs keep their terminal split.

* Split landing review fixes: agent launch cancellation, browser policy, labels

- New Agent on the landing cancels like the keyboard shortcut when the user leaves the workspace or host
- Hide New Browser Tab where the creation policy hides it (paired web without streaming)
- Chat split actions read Split Right / Split Down; New Agent gets its own key
- Tour visibility reads the projection's existing group subscriptions

* Show the split landing only in panes a chat split opened

Other flows reserve an empty split group for content they already chose
(remote terminal splits, AI Vault resume, browser and source-control
opens). The landing, its Close collapse and the tour now apply only to
groups the chat split marked, kept in window-only state and dropped when
the group goes away.

* Move split landing marks with their groups on worktree rename

* Keep the rename test's chooser mark out of the cast fixture

* Read the landing's browser policy by workspace; keep Agent in the Japanese label

* Keep the passed split lesson in the agent sessions tour count

* Keep the workspace open on a waiting split landing when its last tab closes

* Keep a waiting split landing when its workspace is reopened; drop its close row when it is the only pane

* Let a waiting split landing satisfy automatic default seeding, not recovery

Restores main's agent-activation inventory gate (a chooser never bypasses
ownership checks). Each automatic default-surface decision (shared seeder,
deferred reseed, startup watcher, paired wake, stream bootstrap) now leaves
a waiting chooser in place, and the paired mirror keeps a marked chooser when
the host reports no tabs. Explicit launches and requested default tabs are
unchanged.

* Fill an emptied paired workspace with its waiting landings, layout and focus together

* Read landing labels through useTranslate for main's render-path ratchet

* Drop the split landing's subtitle
2026-11-08 03:08:20 -08:00
OrcaWinandOrcaWin 88aa9fa82a test: remove 154 low-value tests and redundant relay checkpoints (#39814)
* test: remove 155 low-value tests and two relay checkpoints

* test: retain schema drift protection and remove dead imports

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 03:06:41 -08:00