Commit Graph
20265 Commits
Author SHA1 Message Date
Brennan Benson 5642e4e84e fix(mobile): localize the folder and uncertain-create messages in the workspace composer 2026-11-09 03:02:05 -08:00
Brennan Benson bbc8d5f23a ci: retrigger checks 2026-11-09 02:25:40 -08:00
Brennan Benson 4d984d48f4 test(mobile): type the replayed refusal reply in the retry test 2026-11-09 01:50:21 -08:00
Brennan Benson c7be14385e fix(mobile): a replayed refusal after an agent-launch fallback stops the retry, and the composer says it may have been created 2026-11-09 01:38:03 -08:00
Brennan Benson 9695a66385 fix(mobile): a create refused on a resend after a lost reply tries no other name and stays unconfirmed 2026-11-09 01:08:10 -08:00
Brennan Benson 70f02cd3a0 test(mobile): declare the submit hook's folder launch in its recording fixture 2026-11-09 00:53:51 -08:00
Brennan Benson c63ee6f6cd Merge remote-tracking branch 'origin/main' into brennanb2025/mobile-folder-create-worktree
# Conflicts:
#	mobile/src/tasks/worktree-create-retry.test.ts
2026-11-08 23:54:10 -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
Neil f36751f79f Revert "feat(cli): create workspaces on environment recipes (#40108)" (#40184)
This reverts commit 862d315575.
2026-11-08 23:10:35 -08:00
Kelvin Amoaba 80deb09aa9 feat(dictation): fixed-size dictation pill with cancel, timer and finish (#40155)
* feat(dictation): fixed-size dictation pill with cancel, timer and finish

* fix(dictation): abort a cloud upload cancelled while finishing; time recorded audio

* refactor(dictation): reuse Esc/IME helpers, keep the pane on the target, isolate meter renders

* fix(dictation): pause the pill timer while hidden; compile under React Compiler
2026-11-09 07:04:54 +00:00
Brennan Benson 4466fda848 Merge remote-tracking branch 'origin/main' into brennanb2025/mobile-folder-create-worktree 2026-11-08 23:03:52 -08:00
Kelvin Amoaba 46451538e4 feat(mobile): remove filler words from text the phone recognizes itself (#40157)
* feat(dictation): remove filler words from text the phone recognizes itself

Phones that dictate with their own recognizer (Automatic or This phone)
never send text through the computer, so its filler pass never saw it.
The page's on-device speech adapter now runs the same shared text
pipeline on the phone's live and final text, in the language of the
locale the recognizer started in, and honours the computer's Remove
Filler Words switch, which the host now reports in its dictation setup.
An older host that doesn't report it leaves the switch on, its default.

* test(mobile): expect both commas to go around a mid-sentence filler on the phone too
2026-11-09 07:01:42 +00:00
OrcaWinandOrcaWin 398052f94e test(e2e): hold split toolbar focus before the grab chord (#40182)
The active terminal refits a frame after the browser splits mount and can
refocus xterm after the spec focused the Reload button, so Ctrl+C reached
the shell instead of arming grab. Refocus until the toolbar keeps focus.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 23:01:23 -08:00
Brennan Benson 55b915bc66 fix(mobile): a folder setup choice resends only its own unconfirmed create, and the newest form silences older ones 2026-11-08 22:52:09 -08:00
OrcaWinandOrcaWin 8e020e107a fix(test): pass the reaper site in the supervised-stop integration test (#40186)
#40036 made ClaudeChildTreeReaperDeps.site required while #40103 added this
call without it, leaving main's typecheck red.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 22:48:32 -08:00
OrcaWinandOrcaWin 6e4481a870 test: remove low-value mobile and composer suites (#40174)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 22:43:09 -08:00
Kelvin Amoaba 6c07eac31c fix(speech): move OpenAI dictation to gpt-transcribe before the gpt-4o models shut down (#40159)
OpenAI shuts gpt-4o-transcribe and gpt-4o-mini-transcribe down on
2027-02-26. Offer GPT Transcribe instead, retire both old entries so a
saved choice loads as the new model, and send the language hint as
languages[], which gpt-transcribe takes in place of language.
2026-11-09 06:37:29 +00:00
Kelvin Amoaba 78ccc737f3 fix(dictation): drop both commas around a filler removed mid-sentence (#40177)
"I think we should, uh, ship it" became "I think we should, ship it":
the filler's own comma went with it, but the one before it stayed. When a
pause follows the filler too, the comma before it now goes as well.
2026-11-09 06:36:27 +00:00
Brennan Benson c897ae4649 fix: stale renders React Compiler introduced in the browser run button, Linear toolbar and usage tooltip (#40162)
- Browser run Show button: keep the remembered page in state instead of reading a module Map during render, so a run keeps the page it drove.
- Linear description toolbar: subscribe to active formats with useEditorState; the editor mutates in place.
- Usage tooltip: recompute the 'Updated' and reset-credit expiry labels on each countdown clock tick.
2026-11-08 22:30:56 -08:00
Brennan Benson 4297435307 fix(mobile): a folder card never resends a form's create, and one form owns the folder screen at a time 2026-11-08 22:26:29 -08:00
Brennan Benson 278e0f11c2 Attribute forced child closes to the owning agent (#40036) 2026-11-08 22:26:21 -08:00
NeilandJustas Brazauskas 862d315575 feat(cli): create workspaces on environment recipes (#40108)
* feat(cli): create workspaces on environment recipes

`orca worktree create --recipe <id>` creates the workspace on a new
environment from one of the repo's environment recipes, and
`orca vm recipe list` shows which recipes it accepts.

The desktop app on the provisioning computer runs the same main-side
provisioning the composer uses (write-ahead record, per-step timeouts,
cancellation), registers the project on the environment's Orca server,
then creates (orca-worktree) or adopts (provisioned-root) the
workspace there. Named progress steps ride on long-poll keepalive
frames, so the CLI prints them to stderr; older CLIs ignore them. A
failure after the VM exists destroys it through the shared cleanup and
returns recipe_workspace_create_failed with the failed step, the
recipe failure code and whether the destroy finished. Ctrl+C aborts
the request and destroys a started environment.

Paired devices cannot start a recipe create. Hosts advertise
worktree.recipe-create.v1 only when the desktop wires the recipe
service, so orcad and older hosts are refused before anything runs.

Based on #39228 by jutaz, a port of #28439.

Co-authored-by: Justas Brazauskas <brazauskasjustas@gmail.com>

* fix(cli): report the VM outcome when connecting fails; record no cross-host parent

* fix(vm-recipes): destroy the VM when recording its environment fails; reset exitCode in CLI tests

* perf(types): keep recipe orchestration out of the runtime's type graph

---------

Co-authored-by: Justas Brazauskas <brazauskasjustas@gmail.com>
2026-11-08 22:19:52 -08:00
Neil 5c4dbe5992 test(profile-state): skip the read-only backup step for Bun builds that cannot open a closed WAL read-only (#40168) 2026-11-08 22:13:57 -08:00
Kelvin Amoaba 3d2b0b1281 feat(dictation): Auto shortcut mode, hold to record until release or tap to toggle (#40150)
* feat(dictation): add an Auto shortcut mode where holding records until release and a tap toggles

* fix(dictation): apply the terminal shortcut policy and the shortcut recorder to held dictation presses

* test(dictation): drop casts from the shortcut mode tests

* fix(dictation): time Auto holds by the key, not a Cmd release macOS reports alone

* fix(dictation): start an Auto hold pressed while the last dictation finishes

* refactor(dictation): simplify Auto hold timing and reuse the shared IME check
2026-11-09 06:09:48 +00:00
Brennan Benson 323819a228 fix(mobile): pause folder rows under the create form; a lost folder create is checked, never resent as another 2026-11-08 22:07:36 -08:00
Brennan Benson 0ac70856cd fix(mobile): folder creates keep their name, and a left or replaced form shows and holds nothing 2026-11-08 21:57:16 -08:00
Jinjing 7c1483278b Reduce excessive tooltips and clarify action details (#39960)
* wip

* rm execessive tooltip

* Clarify deletion options and improve resource popover layout

- Show the scope of persistent deletion choices directly in the menu
- Keep resource details accessible in short windows
- Style disabled dropdown actions consistently

* Clarify detached commits and deletion guidance

* Preserve translated tooltip guidance
2026-11-08 21:53:12 -08:00
OrcaWinandOrcaWin c0d3d2e0db test: remove 13 low-value suites and redundant cases (#40138)
* Remove low-value file, runtime and chat test cases

* test: remove low-value shared contract and timing suites

* test: remove leaking browser IPC mock suite

* test: isolate legacy relay bridge transport fixture

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 21:51:31 -08:00
Brennan Benson 973fc4a9d4 test(mobile): a folder create resent after a lost reply carries the same mutation id 2026-11-08 21:43:27 -08:00
Neil 345ffb56d2 perf(sqlite): refresh the legacy profile copy hourly and cap the profile WAL file (#40136)
* perf(sqlite): refresh the legacy profile copy hourly and recover crashed row caches

- The legacy whole-document refresh rewrote every changed split domain each 5 minutes
  (~4-8 MB per cycle, ~200 MB/hour of WAL plus checkpoint on an active profile). Writer
  start and graceful close already bring it current, so refresh at most hourly in between.
- Cap the profile-state WAL at 8 MB; without journal_size_limit it stayed at the size of
  the largest transaction ever written.
- Row caches: a read-only startup read cannot roll back a hot journal (or recover a WAL
  without -shm), so retry once on a writable connection instead of disabling the store
  on every launch.
- Row caches: drop the saved baseline when a commit throws, since COMMIT may report an
  error after the rows landed and our own commit does not move data_version.

* test(sqlite): accept Windows exit status for the crashed-writer fixture; document recovery cost

* docs(sqlite): state the crash-recovery cost without overstating its bound

* fix(sqlite): rebuild a row cache a crash left needing recovery instead of replaying it on main

* revert(sqlite): keep crash-recovery failures non-destructive; drop the rebuild fallback
2026-11-08 21:42:55 -08:00
Neil 39902f398b refactor: bind browser and remote runtime consumers to concrete owners (#40135)
* refactor: use concrete browser and input owners

* refactor: bind remote runtime callers to concrete transport owners

* Use checked subscription mock argument types

* Type browser lease mock with its subscription contract

* refactor: bind sleeping VM status probe test to socket owner
2026-11-08 21:41:28 -08:00
Brennan Benson c917f245e5 fix(mobile): folder creates keep their repository until the folder shows them
Every create from a folder's empty state, direct or through the
composer, holds its repository from admission until the folder lists
the new worktree, so a lost reply, a remount or a reopened form can't
start a second one. The composer and toasts belong to the folder
screen, stay on the folder's host, and say nothing once it's left. A
relayed server's repository read holds no desktop event stream, and a
failed read can be retried.
2026-11-08 21:39:56 -08:00
Neil 83a2d506b2 feat(setup): import setup scripts from .conductor/settings.toml, dev containers, Cursor, Copilot and Capy configs (#40125)
* feat(setup): import setup scripts from more workspace config formats

* fix(setup): isolate imported Copilot steps and harden config parsing

* chore(setup): drop type assertions flagged by the quality gate

* fix(setup): keep the orcad bundle ASCII and skip unrewritable dev container variables
2026-11-08 21:26:03 -08:00
Neil 980becbf88 fix(runtime): a phone viewing a headless terminal no longer resizes it for every client (#40101)
* fix(runtime): a phone viewing a terminal on a headless runtime no longer resizes it for everyone

On orca serve / orcad, a phone that only opens a terminal now views it at the
current owner's size. It takes the size when it types or when the user taps
the phone-mode key; the desktop's take-back reclaims it. Desktop hosts keep
fitting phones on open.

* fix(runtime): keep phone claims across leave grace and held phone fit; pin the headless default for the process
2026-11-08 21:15:44 -08:00
Kelvin Amoaba 80a9ed69f0 fix(native-chat): move open Codex chats to the account you switch to (#40148)
A Codex chat launched codex app-server on the account home saved when the
chat was created, and nothing compared it with the selection, so after a
switch every message kept going to the old account. A chat that had hit
its usage limit kept failing with "Codex hit its usage limit" even though
the new account had quota.

Codex chats now follow the selection the way Claude chats do: the launch
prepares the selected account's home, the started process reports that
home, and the host replaces an idle chat whose account no longer matches
before its next message. Codex resumes a thread only from a rollout in its
own CODEX_HOME, so the launch links the thread's rollout into the new home
first. The chat's usage card reads the account its next turn runs on.
2026-11-09 05:15:37 +00:00
Kelvin Amoabaandmahedi-emon 04d3a8dcbe fix(native-chat): clear /compact and /clear from the composer once sent (#40145)
* fix(native-chat): clear /compact from the composer once it is sent

Conversation commands kept their draft until the host replied, while
messages release it as soon as they are on their way. Thread the
composer's onPending through the command dispatch so a sent /compact
or /clear leaves the input immediately; a refusal still hands it back.

Fixes #39122

* fix(native-chat): keep a command typed while a refused one was answering

A refused conversation command is handed back through the independent
draft merge, which replaces a lone command in the composer. With the
draft now released on send, a /clear typed while /compact was answering
was overwritten by the refused /compact. Return a refused command only
to an empty composer; anything typed since stays as typed, and the
refusal notice still says the command was not done.

* fix(native-chat): count images when a refused command checks for an empty composer

---------

Co-authored-by: mahedi-emon <113725370+mahedi-emon@users.noreply.github.com>
2026-11-09 05:11:56 +00:00
Kelvin Amoaba 09ecfbb90f feat(dictation): remove filler words like “um” and “uh” from dictated text (#40137)
* feat(dictation): remove filler words from dictated text, per language

Spoken fillers (um, uh, äh, えーと, 음, 嗯 and their equivalents) are
dropped from dictated text before it is inserted, on desktop, the web
client and phones that dictate through the computer. The pass runs once
in the speech host's event sink, so every route shares it, and lives in
a new shared text pipeline that later passes join.

Only standalone sounds go, never words with meaning, and the comma after
a filler goes with it. The language comes from a single-language model
or the dictation language setting; an unknown language uses only
fillers that are no word in another language. Voice settings gain a
Remove Filler Words switch, on by default.

* fix(dictation): take the filler language from what the engine is told, and drop the comma before a final filler

* fix(dictation): keep 嗯 as a reply, clean all-caps transcripts, and read the sentence start in constant time

* refactor(dictation): one list of sentence-end marks in filler removal, and drop a duplicate off-switch test

* fix(dictation): write non-ASCII filler punctuation as escapes so the orcad bundle stays ASCII
2026-11-09 05:04:50 +00:00
Neil 76b17ad670 fix(orcad): ship session search worker entry to remote hosts (#40133)
ORCAD_CHILD_ENTRY_POINTS builds session-search-worker-entry.js, but
ORCAD_ARTIFACTS never listed it, so templates, the materializer, and the
remote installer dropped it and SSH-hosted session search failed with
'Session search worker entry not found'. Add the artifact and a test that
every built child entry is listed.
2026-11-08 20:56:01 -08:00
Neil 4fa7b00f53 fix(session-search): bound tool-row purge to rowids above a persisted high-water mark (#40134)
The legacy tool-row purge rescanned the whole messages table on every
writer open and foreign data_version change. Persist the scanned rowid in
meta, and install a trigger that records a floor whenever any writer
(including a downgraded build) inserts a tool row, so reused or later
rowids are still purged without full rescans.
2026-11-08 20:48:30 -08:00
Brennan Benson 9e21a88b5a chore(mobile): merge the folder repo read's execution-host imports 2026-11-08 20:47:29 -08:00
Neil 803e257954 fix(sidebar): let the divider resize instead of scrolling the workspace list (#40087)
* fix(sidebar): let the divider resize instead of scrolling the workspace list

The 4px scrollbar strip past the seam covered the visible divider pixel, so
grabbing the divider over a scrolling list dragged the scrollbar. Drop the
strip and start the resize handle on the divider; the native scrollbar inside
the sidebar is unchanged.

* fix(sidebar): trim the resize handle's outer reach by 1px
2026-11-08 20:41:06 -08:00
Neil 4652a35f87 fix(vm-recipes): stop dialing a sleeping workspace VM, and resume one whose host is gone (#40105)
A suspended recipe VM kept getting reconnect attempts: shared-control
socket retries, health probes and SSH logins. Providers that resume a VM
on a new SSH login or connection woke it again, so suspend saved nothing
(#36363).

While a VM's record is suspended (or its resume failed) and no wake is
under way, Orca now makes no background dial to it:
- SSH: connect and the reconnect ladder refuse that VM's own SSH host,
  which covers tunnels, managed-server checks, census and browser bridge.
- Shared control: no retry after close, and no socket open, including a
  retry timer armed before the sleep.
- Status probe: answers asleep without dialing.
A wake (opening the workspace, Resume) is pending before it dials, so the
wake's own connect passes. Afterwards the server's control socket and
status are reopened.

A VM recorded as up whose SSH host Orca gave up reaching (the reconnect
ladder used every attempt) may have been stopped or reclaimed by its
provider. Before, opening the workspace did nothing for it (#34089). Now
it runs the recipe's resume and reconnects. If that fails, the record is
left as it was, so normal reconnects go on.

Fixes #36363
Refs #34089
2026-11-08 20:40:19 -08:00
Brennan Benson 27fa98d9c3 feat(mobile): create a worktree per repository from an empty folder workspace
A folder workspace with no attached worktrees lists one card per
repository in its project group, as desktop's empty state does. Tapping
one creates a worktree named after the folder, attached to it, in place;
a taken name or a setup choice opens the new-workspace composer with the
repo, the name and the folder parent filled in. Shown only when the host
creating it supports exact-name creation.
2026-11-08 20:39:05 -08:00