Commit Graph
20291 Commits
Author SHA1 Message Date
Jinwoo-H 9b2a9bfb87 fix(orchestration): gate --on on the carrying Orca, ack retried deliveries, refuse payloads and federated workers 2026-11-09 05:16:05 -05:00
Jinwoo-H 550d568623 feat(orchestration): mail agents on a paired server with send --on, replies come back by themselves 2026-11-09 05:16:05 -05:00
OrcaWinandOrcaWin 19afa64ee7 test: remove low-value provider and renderer assertions (#40279)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-09 10:11:48 +00:00
Kelvin Amoaba 0684ef586f feat(i18n): translate the dictation pill, error pill and queued-send copy (#40266)
* fix(dictation): don't throw when the paired web client has no speech catalog

* feat(i18n): translate the dictation pill, error pill and queued-send copy

* fix(i18n): say Chinese queued sends happen automatically
2026-11-09 10:03:37 +00:00
Neil 75c37220b5 fix(terminal): end a dead preserved terminal host's PTYs as host loss (#40095)
* fix(terminal): end a dead preserved terminal host's PTYs as host loss

After an update Orca keeps the previous version's terminal host so agents
survive. That host has no respawn, so when it later died nothing ended its
PTYs: panes stayed connected on a frozen frame and input went nowhere.

Once every reconnect attempt finds its endpoint refused or missing, each of
its PTYs now ends as host loss with history kept, and the pane's restore is
no longer refused because the dead host cannot answer.

Fixes #38432

* fix(terminal): require process-exit proof on POSIX and keep checking until proven

Review follow-ups: an unproven attempt restarts the count instead of ending
the check; on POSIX the old host's pid must also be gone; a proven-gone host
answers 'not live' for every id; one throwing exit listener cannot strand
the remaining sessions.
2026-11-09 02:01:41 -08:00
OrcaWinandOrcaWin f10be535ca test: remove low-value mobile renderer and rate-limit suites (#40188)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-09 01:46:01 -08:00
Kelvin Amoaba cd2e0cd787 docs(dictation): say why Hold can't see a key release inside a browser page (#40269) 2026-11-09 09:45:46 +00:00
Jinwoo Hong 1b78d1d1d4 fix(orchestration): explain the --terminal and --agent refusal; name chat addresses in terminal commands (#40092) 2026-11-09 09:31:22 +00:00
Kelvin Amoaba e9d762fff4 fix(dictation): a paired phone or browser waits as long as the computer for long cloud dictations (#40238)
* fix(dictation): wait as long as the host's cloud deadline when a paired phone or browser stops

* fix(dictation): compute the host's cloud deadline from its exact sample count
2026-11-09 09:29:04 +00:00
Neil 7ccd47f8a4 docs: put Chat or Terminal first in README features (#40262) 2026-11-09 01:22:54 -08:00
OrcaWinandOrcaWin eb3493acb0 test: remove low-value renderer and budget suites (#40222)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-09 01:22:00 -08:00
Jinwoo Hong 19b571248d fix(native-chat): pad the sender name chip in orchestration worker cards (#40258)
The compact sender name had no horizontal padding, so its hover fill hugged
the text. Add an inlineChip button size (inline height, px-1.5).
2026-11-09 04:19:43 -05:00
OrcaWinandOrcaWin ef66245430 test: remove low-value WSL and renderer suites (#40237)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-09 01:15:07 -08:00
Neil f04e06b023 fix(agent-picker): list agents named by the search before other agents' model setups (#39806)
* fix(agent-picker): list agents named by the search before other agents' model setups

Typing "codex" in the agent picker showed OpenCode/Cursor model setups
(e.g. "OpenCode · GPT-5 Codex") above the Codex agent itself, and Enter
picked the first setup. Direct agent matches now render first and are the
Enter target.

* test(agent-picker): assert search highlight and Enter target for named agent

* test(agent-picker): import fireEvent after rebase
2026-11-09 09:13:24 +00:00
Kelvin Amoaba fc93af8baf fix(dictation): save Auto mode so older builds keep a working shortcut, and show it on the phone (#40231)
* fix(dictation): store Auto as Toggle plus hold-to-record so older builds keep a working shortcut

* test(mobile): type the Auto mode settings fake instead of casting

* fix(dictation): migrate a stored Hold without hold-to-record

* fix(dictation): keep phone mode segments typed and clear hold-to-record when a phone picks Hold

* refactor(dictation): reuse the shared mode settings in the migration and phone writes
2026-11-09 09:12:23 +00:00
Brennan Benson 9a798602fe Continue every usage-limited chat at once, and stop after five automatic refails (#40055)
* fix(native-chat): continue every usage-limited chat at once and stop after five automatic refails

The automatic continue sent one chat per 10 s sweep, so chats stopped by the same limit resumed one by one. Its retry budget belonged to the cut, so a continuation that hit the limit again started a fresh budget and could repeat indefinitely.

Send every due chat in one pass, one at a time. Count consecutive automatic continues that ended in another usage limit from the journal: each continue's message id names the cut it answered, and the next cut's turn is joined to that submission through its key or provider item. After five, the chat shows that Orca won't continue it automatically.

* fix(native-chat): read the usage-limit continue chain from the tail, not the whole conversation

The chain walk built a map over every journal row and rescanned history for each link. Walk back from the end instead, so the work is the chain's own rows; add an N/10N contract. Replace the fan-out test's casts with typed fixtures.

* test(native-chat): count a Claude echo-opened continue in the usage-limit chain

* fix(native-chat): derive the usage-limit continue chain once per cut

A status rebuild for the same cut reuses the chain it already derived, since only history before the cut decides it; the turn's limit is read without copying its rows.

* fix(native-chat): skip slash-command turns when walking a usage-limit continue chain

A /compact run after a usage limit sits between the cut and its automatic continue; the latest-turn read skips it, so the chain walk must too. Count visited rows in the perf contracts with typed getters.

* test(native-chat): type-guard the recorded Claude capture events

* fix(native-chat): recompute the usage-limit chain when a late receipt attributes its opener

Reuse across rebuilds is keyed on the cut, its turn row's revision and the newest send, so a late attribution that completes a join is counted instead of keeping a stale zero.

* test(native-chat): guard usage-limit chain reuse at the status projection

Drives StructuredAgentSessionJournalProjections.read through real journal invalidations at 100 and 1000 turn rows: one chain derivation for an unchanged cut, again for a new cut or epoch, and a recount when a late receipt attributes the continue's opener.

* fix(native-chat): reuse a usage-limit chain only while everything it read is unchanged

The chain walk now reports the turn rows it looked up and the oldest submission it examined; the status projection keys reuse on their revisions and join evidence, so a late receipt for any link, not just the newest send, recounts the chain.

* fix(native-chat): derive the usage-limit chain fresh on each status rebuild

Reuse across rebuilds kept missing inputs the walk reads (late receipts, revised failure rows) and its key re-serialized settled history. The status projection's own cache still skips unchanged reads; each rebuild now walks only the chain's tail. Contract tests at the projection count total reads: independent of earlier history, linear in the chain's rows, one scan of the sends when no opener matches.

* fix(native-chat): find an echo-opened turn's opener without reading the turn before it

A Claude echo-opened turn names the provider's key while its opener row keeps the submission's, so the slash-command check scanned the whole previous turn and missed echo-opened commands. It now stops at the nearest root user row.
2026-11-09 01:11:12 -08:00
34e0385acd Keep hosted reviews, conversations, and optional GitLab jobs accurate (#40080)
* Fix hosted review selection, conversations and optional job failures

Co-authored-by: Mahedi Hasan Emon <mahedi.emon62@gmail.com>

Co-authored-by: Victor GALISSON <victor.galisson@purecontrol.com>

* Retain complete review history within provider bounds

* Declare optional membership retention policy

* Narrow hydrated revision metadata without a cast

* Preserve completed check presentation through the shared classifier

* Read malformed revision metadata without retaining it

* Exercise legacy alternate discovery after local absence

* Preserve observable remote review routing coverage

* Keep optional GitLab job warnings consistent in details

* Reuse the optional job presentation color

---------

Co-authored-by: Victor GALISSON <victor.galisson@purecontrol.com>
2026-11-09 01:10:52 -08:00
Neil 3d2a015a34 ci(release): mirror published downloads to Cloudflare R2 (#40254)
onorca.dev offers an opt-in 'mirror link' (https://downloads.onorca.dev)
next to the GitHub download for when GitHub release downloads 5xx.
Upload the onorca.dev download assets there right after each stable
desktop release and each Android release, instead of polling.

- config/scripts/release/publication/mirror-release-to-r2.sh: retrying,
  resumable download from GitHub, size + sha256 check, S3 multipart
  upload to R2 (no 300 MiB wrangler cap)
- release-mirror-r2.yml: reusable + manual backfill
- release-cut: run after publish-release for stable vX.Y.Z tags only
- mobile-android-release: run before bump-apk-download so the site's
  mirror link never points at a missing APK (success not required)
2026-11-09 01:09:27 -08:00
Kelvin Amoaba 5fd4fe8382 fix(dictation): stop phone and browser cloud dictation at the 10-minute limit with a notice (#40240)
* fix(dictation): stop a phone's cloud dictation at the 10-minute limit with a notice

* test(dictation): pin the cap flag on every phone chunk reply

* perf(dictation): skip decoding phone audio the host will drop past the cloud cap
2026-11-09 09:05:41 +00:00
NeilandJustas Brazauskas c3910146ee fix(vm-recipes): destroy a recipe VM when a phone deletes its workspace (#40205)
Deleting a recipe workspace from the phone removed only its checkout and
left the VM this desktop created for it running. Only the desktop window
ran the destroy.

The relaying desktop now tags the rows of workspaces whose VMs it created
with the environment's name, and says whether deleting will destroy it.
The phone's delete sheet names the environment, and its delete asks for
the destroy (`destroyHost: true`). The desktop then owns that removal:
- it runs as a workspace lifecycle delete
- the environment's Orca removes the checkout and must answer positively.
  An older Orca that answers on acceptance is polled until the workspace
  is gone.
- the VM is destroyed through the shared cleanup, behind any running wake
  or suspend, and only when no other workspace remains on it
- the result reports host.state truthfully: destroyed, kept, or
  left-running (no destroy step)

The environment's own error codes reach the phone unchanged, and a failed
removal shows its message on the phone instead of only a haptic.

Removals that don't ask for the destroy (older phones, the CLI, other
clients) keep today's behavior. No CLI API changes.

Based on #39235 by jutaz, a port of #28435.

Co-authored-by: Justas Brazauskas <brazauskasjustas@gmail.com>
2026-11-09 01:03:23 -08:00
Jinjing 6b5460e752 Fix Simplified Chinese translation for floating button action (#40252) 2026-11-09 09:03:11 +00:00
OrcaWinandOrcaWin 2093801982 test: remove low-value shared and native suites (#40172)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-09 01:02:16 -08:00
OrcaWinandOrcaWin 40abff3220 test: reconcile VM mobile and native test removals with current main (#40154)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-09 01:02:00 -08:00
Jinjing 728133dab6 Polish agent picker search and rows (#40242)
* wip

* Polish agent picker interactions
2026-11-09 01:00:35 -08:00
Neil 929d53b5d6 feat(vm-recipes): build checklist and failure card for VM creates (#40152)
After a recipe provisions a VM, run the environment doctor on the VM's own
server (new environment.doctor RPC) before creating the workspace. The VM
create sheet shows Provision VM, Check environment and Create workspace; a
failed step gets Fix with agent, Retry, Edit recipe, and (for checks) Open
anyway, which keeps the VM. Older VM servers skip the checks; dismissing
aborts a running check and destroys the VM as before.
2026-11-09 00:59:46 -08:00
Kelvin Amoaba 4b557a86ad feat(dictation): Enter or Send while dictating sends once the words land (#40226)
* feat(dictation): Enter or Send while dictating sends once the words land

* refactor(dictation): composer queued send as a hook

* fix(dictation): queue only Enter typed into the terminal; keep the pill until the send runs

* fix(dictation): a cancel during the terminal's Enter delay drops the Enter

* fix(dictation): keep the queued label until the terminal Enter is pressed

* fix(dictation): keep the queued send compilable
2026-11-09 08:56:36 +00:00
Kelvin Amoaba c323f876b8 feat(dictation): dictate into the focused field of a page in the browser pane (#40191)
* feat(dictation): dictate into the focused field of a page in the browser pane

* test(dictation): cover dictation into a focused browser page

* fix(dictation): type page dictation through the frame that owns the field

* fix(dictation): space page rich-text dictation within its block and offer editors the beforeinput

* test(dictation): simplify the page insertion test mock

* fix(dictation): copy page dictation to the clipboard when an editor blocks the input
2026-11-09 08:52:28 +00:00
Neil f358eb6a7d Plugins: add workspace.rename and project names in workspace.list (#40197)
* feat(plugins): add workspace.rename and project names in workspace.list

Plugins that name workspaces had to read Orca's private runtime token and call
worktree.set over the runtime socket, bypassing capability consent. workspace.rename
(workspace:write, worker only, host API 1.5) does the same update as a sidebar
rename. workspace.list rows gain the project name so plugins can prefix names
without reading the runtime's repo list.

* fix(plugins): harden workspace.rename against twin folders and hidden characters

Folder renames require a unique folder id, so twins on two hosts are not both renamed,
and fail when no folder has the id. Names refuse C1, bidi and zero-width characters,
which could make a label read as another workspace's name.

* fix(plugins): workspace.rename matches a sidebar rename for folders and reports kept names

A folder rename also cancels a pending first-agent-message rename, so the automatic
title cannot replace the plugin's name. A rename Orca does not apply (during a WSL
move) is a conflict instead of a silent success. workspace.list's project is optional,
so mocks written for host API 1.4 still validate. More invisible characters are refused.
2026-11-09 00:48:33 -08:00
Neil 920a83889c refactor: move browser contracts and publication to defining owners (#40209)
* refactor: move atomic publication to its filesystem owner

* refactor: group shared browser definitions by feature

* refactor: bind proxy process and session contracts to defining owners

* refactor: consolidate direct session contract type imports

* refactor: retain atomic publication test timing under moved owner

* fix(benchmark): resolve historical tunnel framing source before loading
2026-11-09 00:45:45 -08:00
Kelvin Amoaba fd50fcfdf2 fix(speech): send cloud dictation through the proxy set in Settings (#40236)
* fix(speech): send cloud dictation through the proxy set in Settings

* fix(speech): keep OpenAI cookies out of the desktop session

* refactor(speech): send transcription and the key check through one request helper
2026-11-09 08:42:56 +00:00
OrcaWinandOrcaWin 8abac5357e fix(worktrees): offer nested-worktree delete on remote runtime hosts (#40235)
* fix(worktrees): offer nested-worktree delete for remote runtime hosts

A remote host's 'contains another registered worktree' refusal showed only
the raw error. Add worktree.previewNestedRemoval and an approved-plan
worktree.rm path on the runtime, and route the toast's nested-delete dialog
to the workspace's own host.

* fix(worktrees): re-check checkouts between remote nested deletes; scale reply timeout

* chore: compose nested worktree ids; record improved ratchets

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-09 00:37:58 -08:00
Neil 5fc098542d feat(vm-recipes): add "Set up with an agent" to Cloud VMs settings (#40131)
* feat(vm-recipes): add Set up with an agent to the Cloud VMs settings

Starts the default agent in the project's workspace with a prompt that loads
the per-workspace environment skill, loops on the recipe and environment
doctors, and ends with a commit and PR. The launcher also takes failure
context (redacted log tail) for callers such as a failed VM create.

* refactor: split recipe log redaction into a browser-safe module

* fix(vm-recipes): bound and redact failure text in the setup-agent prompt
2026-11-09 00:37:53 -08:00
OrcaWinandOrcaWin 45cb96ef54 fix: request native ABI process report only on Linux (#40233)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-09 00:36:04 -08:00
Kelvin Amoaba b2fbbbca42 feat(mobile): cancel dictation in place and show which device is transcribing (#40185)
* feat(mobile): cancel dictation in place and show which device is transcribing

* fix(mobile): give each composer its own dictation cancel target

* fix(mobile): keep the dictating composer row on one line

* refactor(mobile): share the dictation mic face and measure the cancel target per platform
2026-11-09 08:36:02 +00:00
Neil 019a03f0b6 fix(browser): restrict paired-host browser tunnel destinations (#40203) 2026-11-09 00:33:36 -08:00
Neil 72935f9d6c fix(vm): resume a paired-server VM whose host went away on its own (#40199)
* fix(vm): resume a paired-server VM whose host went away on its own

* fix(vm): count only continuous failures as a lost paired server
2026-11-09 00:32:50 -08:00
Jinjing af1e9907b3 fix(ci): reuse installed pinned Bun in test workflows (#40234) 2026-11-09 00:27:13 -08:00
Jinwoo Hong e0c14ee6d5 fix(orchestration): keep a paired server's worker list when one Dispatch is from an earlier pairing (#40170)
* fix(orchestration): keep a paired server's worker list when one Dispatch is from an earlier pairing

The server's fleet snapshot refused the whole batch when one requested
Dispatch was not this home's (for example, one started before the home
re-paired), so the home showed every worker on that server as
host_unavailable. Now only that Dispatch reads as unverifiable.

* test(orchestration): cover a live Dispatch held for another home in the fleet snapshot

* test(orchestration): assert the other home's fleet item without a cast
2026-11-09 03:24:18 -05:00
Neil 02ad6d9671 feat(cli): add orca vm env doctor to check that an environment can run agents (#40120)
* feat(cli): add orca vm env doctor to check a workspace environment

Checks required CLIs (git plus what the repo manifests imply), agent CLIs
and their sign-in, Git fetch and a dry-run push, the orca.yaml setup script
(optionally re-running it with Orca's runner), and free disk. Pass/warn/fail
with --json; checks live in src/main/environment-doctor for runtime reuse.

* fix(env-doctor): ship the doctor modules in the packaged CLI and share the check formatter

* fix(env-doctor): run Git probes in the C locale so folder detection is locale-independent
2026-11-09 00:09:00 -08:00
Jinjing 1d5f010f97 Show usage reset dates in account switcher (#40210) 2026-11-09 00:08:12 -08:00
Jinwoo Hong f4b438c5d0 fix(orchestration): refuse a paired-server worker start onto a busy terminal before any wait (#40102)
One terminal claim owner now covers local Dispatches and attachments a paired
coordinator starts here, so either kind refuses the other with terminal_busy
before readiness waits or briefs.
2026-11-09 03:00:35 -05:00
Brennan Benson fb9adc7bc5 fix(claude): name Orca as the client of its Claude chats (#40057)
* fix(claude): name Orca as the client of its Claude chats

Orca's Claude chats reported the SDK's default entrypoint (sdk-ts), or the
value of a Claude session Orca was launched from. Set CLAUDE_CODE_ENTRYPOINT
to orca for every structured Claude launch; a value in Orca's launch
environment still wins.

* fix(claude): keep a differently cased Windows entrypoint override

Windows env names are case-insensitive, so a launch value spelled
claude_code_entrypoint lost to the uppercase Orca default when Node
deduplicated the keys.

* fix(claude): let a launch value replace a differently cased inherited one on Windows

* fix(claude): store a Windows entrypoint override under the name the SDK reads
2026-11-08 23:53:49 -08:00
Jinwoo Hong 1a60595845 fix(orchestration): record orchestration as the origin of nested workers on connected servers; lead the guide with new-child (#40091)
worker-start --on <server> --worktree new-child now tells the server that
orchestration picked the parent, so the server records the child's lineage as
orchestration, as a local child is, instead of cli. Older coordinators omit the
field and keep cli. The guide now shows new-child first and new-top-level as
the no-parent choice.
2026-11-09 02:48:36 -05:00
Brennan Benson cbbb769e88 Keep port refreshes efficient with many workspaces (#40149)
* perf(ports): index workspace ownership once per listener inventory

* perf(ports): stop command matching at impossible path prefixes

* Avoid unused port ownership index construction

* Match command ownership with bounded prefix transitions
2026-11-08 23:41:00 -08:00
Brennan Benson 3ad9b7c44f Fix the speed button's unknown, Flex and chat-options Escape cases (#40173)
* Fix the speed button's unknown, Flex and composer Escape cases

Follow-up to #40052 from its review:
- An unknown speed names no tier instead of claiming Standard.
- Escape in the speed list inside the chat options popover closes only the
  list, not the whole popover.
- Only Codex's Fast tier gets the on/off chip, bolt and pressed fill; Flex
  and other tiers are picked from the list. The Fast test is shared with
  the main process.
- The list trigger takes the chip's pressed fill from the shared variant,
  and the list has an accessible name.

* Show every agent's speed as the same Speed button in every picker

Claude's and Cursor's Fast mode now use the ⚡ Fast button under a Speed
label in the chat options popover and the select-mode pickers too, instead
of a Fast mode switch, matching Codex: one button for two modes, a list for
more.
2026-11-08 23:38:32 -08:00
Kelvin Amoaba 2fd4993cff feat(dictation): error pill that keeps the recording and retries it (#40189)
* wip: error pill

* wip: error pill tests and strings

* wip: start failures with audio are model-load failures

* wip: tests

* fix(dictation): fresh pill per recording, keep the recording when a retry fails

* fix(dictation): retry a recording cut at the cloud cap; leave Esc alone on the error pill

* refactor(dictation): share the cloud cap and the pill's close button; fetch the catalog once

* feat(dictation): a retry types only the words after those that already landed
2026-11-09 07:33:31 +00:00
Neil 815854777b refactor: give browser, RPC and process contracts concrete owners (#40167)
* refactor: separate execution route and child exit owners

* refactor: move browser data into defining feature owners

* refactor: give runtime RPC entry its shutdown implementation

* refactor: use defining process types and colocate host telemetry test

* docs(process-host): point piped child contract to Node owner

* docs(process-host): clarify both piped contract owners
2026-11-08 23:32:21 -08:00
Neil 6b7d5d6336 fix(remote-runtime): detect a paired host that stays connected but stops answering (#40104)
* fix(remote-runtime): detect a runtime that stays connected but stops answering

The shared control socket only checked ws pings, which a relay hop or a runtime
whose request path is stuck still answers, so a host could read as connected for
hours with no updates (#39785). Ready sockets now send a cheap status probe after
an idle interval; a missed deadline retires the socket so reconnect backoff runs,
and the mark stays in diagnostics until the runtime answers again. Asleep and
manually disconnected hosts are never probed.

orcad also starts a worker-thread watchdog that logs a blocked event loop and,
when run under a service manager, exits after five minutes so it is restarted
(#34410).

* fix(remote-runtime): clear the unresponsive mark on any post-ready frame and ignore late deadlines

Review follow-ups: a reconnected socket that streams frames proves the runtime
answers, so it clears the mark and lets backoff reset; the probe deadline now
sits above the ws liveness window so a dropped link is not blamed on the runtime;
a deadline that fires late after sleep is not counted; integration tests no longer
depend on wall-clock timing.

* fix(remote-runtime): gate the heartbeat on the shared retry hold and isolate the wedged-runtime test

* test(orcad): wait for stdio close before reading the watchdog child's stderr
2026-11-08 23:28:31 -08:00
Neil 0cb357a83c feat(setup): slim the setup-script import card and fit long scripts in review (#40180)
* feat(setup): slim the setup-script prompt and make long imported scripts collapsible

* fix(setup): require the full imported script on screen before saving

* style(setup): use the ghost button colour for the script toggle

* style(setup): keep the source path readable in the narrow prompt card

* feat(setup): title imports, restore the package-manager card, keep the review dialog inside the viewport

* fix(setup): count every script line, keep the e2e import spec in step with the new copy
2026-11-08 23:22:34 -08:00
OrcaWinandOrcaWin a489ef5ba3 test: reconcile approved test removals with current main (#40176)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 23:19:51 -08:00