Commit Graph
16747 Commits
Author SHA1 Message Date
Neil fd199a4ea6 chore(i18n): run-action strings in the English catalog; protected-copy keys 2026-11-10 00:39:52 -08:00
Neil 4733dd920c fix(run-actions): review findings — serialize starts, run the approved command, survive host-restart tab churn, cross-process port registry
- startRunAction serializes per (workspace, action); a double restart no longer orphans a run.
- After approval, re-read orca.yaml and run exactly the approved action (never a stale cache).
- Host restarts snapshot running actions (arm/relaunch/disarm) so tab-list rebuilds can't drop
  them; relaunch skips the interrupt and keeps the old tab if approval is declined.
- Port registry re-reads the shared file before allocating and refreshes use daily (LRU eviction).
- OSC 133;D without an exit code reads as exited; action names are single-line.
- Cloud wake hook moved to orca-cloud/cloud-run-action-relaunch.ts.
2026-11-10 00:13:21 -08:00
Neil b86ecdd0b4 refactor: Run button view + headless fixtures for review 2026-11-10 00:01:49 -08:00
Neil 60194b60b6 feat: run actions (orca.yaml scripts.run) and per-workspace port blocks
- orca.yaml scripts.run.<id> {command, name, cwd, env, default, runMode, availableIn},
  scripts.runMode (concurrent|nonconcurrent), scripts.autoRunAfterSetup; snake_case and the
  bare-string form are accepted for Conductor parity.
- Every workspace gets a stable, collision-free block of 10 ports per host: ORCA_PORT,
  ORCA_PORT_COUNT and a CONDUCTOR_PORT alias, in every terminal and the setup/archive env.
- Run button + Cmd/Ctrl+Alt+Enter: runs open a 'Run: <name>' terminal; Stop interrupts, then
  closes the terminal after 5 s; Restart; status from OSC 133; detected ports link to Ports.
- Shared run actions go through orca.yaml trust ('run' kind); imported ones are local.
- Conductor importer maps run/run_mode/auto_run_after_setup (settings.toml, settings.local.toml,
  conductor.json runScriptMode) instead of skipping them.
- Cloud layer: relaunch running actions after wake and rollover.
2026-11-09 23:59:46 -08:00
Neil 855d8ed34b Merge pull request #183 from nwparker/cloud/w2-wake-visibility
fix(cloud): wake visibility (W10 audit): slow hint at 10s, Connecting… until the pane re-attaches, type-through fixtures
2026-11-09 23:27:47 -08:00
Neil 06ca3350e7 fix(cloud): wake attach hold: no narrowing type guard (typecheck) 2026-11-09 23:25:36 -08:00
Neil 0c7fc55008 fix(cloud): slow hint text left-aligned inside the right-anchored type-through card (W10 nit) 2026-11-09 23:23:35 -08:00
Neil dd1edba0a7 fix(cloud): wake attach hold derives state during render and polls through the window-visibility interval (lint gates) 2026-11-09 23:22:43 -08:00
Neil 37001fc918 fix(cloud): type-through waking pill anchors top-right, clear of the prompt line (W10 P2) 2026-11-09 23:15:18 -08:00
Neil a8179682e6 feat(cli): always show cloud wake, sleep and --on cloud create progress
W10 wake-visibility P1s. stderr '- …' lines (NDJSON phase events with
--progress json; --json defaults to none; stdout keeps only the result):
- wake: 'Waking <ws>...', one 'Still waking (Ns)…' line at 10 s,
  '<name> is awake (took Ns).', or, when the API answers still waking
  after its wait, '<name> is still waking. Check with: …' (exit 0, status
  waking kept in the result)
- sleep: 'Putting <ws> to sleep...' / '<name> is asleep (took Ns).'
- worktree create --on cloud: 'Still starting (Ns)…' at 10 s and
  'Workspace <id> is running (took Ns).'
Lifecycle handler moved to cloud-lifecycle.ts; shared helper cloud-progress.ts.
2026-11-09 23:14:14 -08:00
Neil 558b9d6111 fix(cloud): wake visibility (W10 audit): slow hint at 10s with reassurance, also in type-through; pill holds as Connecting… until the pane in front re-attaches (bounded 8s); keys-waiting plurals; type-through wake fixtures 2026-11-09 23:12:35 -08:00
Neil 4dd72d4c35 fix(orcad): scrub the qualification dir from panes, create it on first record (#178)
A user's own orcad started from a server pane must not share or overwrite the server's
marker, so the variable joins ORCAD_SERVER_LAUNCH_ENV_KEYS. The launcher may name a directory
that does not exist yet; create it (0700) before writing the marker.
2026-11-09 23:07:46 -08:00
Neil 5099c08e6b perf(orcad): load RPC method handlers on first call, not before ready (~50 ms off ready) (#177)
The dispatcher now takes either a method list or a loader. The RPC server's default is a loader
that imports the method registry on the first call; orcad preloads it right after its ready line,
so a reconnecting client normally finds it loaded. Concurrent first calls share one load; a failed
import answers those calls with an RPC error and the next call retries.

The legacy relay CLI imported the registry statically, which kept it on orcad's startup path; it
now loads it with its first relayed command (its dispatcher moves to its own file for that).

Measured on a 4-vCPU VM from the current golden, n=20 interleaved: readyMs p50 679 -> 621,
p95 716 -> 665.
2026-11-09 23:02:38 -08:00
Neil c9a87ee49c test: no casts in the remote-sleep tests' mock state 2026-11-09 22:48:32 -08:00
Neil 26939bbfb6 fix(cloud): a VM slept from the CLI/phone/another window wakes promptly
The desktop's runtime record kept saying 'running' after a sleep from another
client until lost-contact tripped (minutes), so an open or predictive wake
returned at once without resuming, and the row read awake.

- Wake path: a cloud record still 'running' asks the control plane; when the
  sandbox is suspended the record is marked asleep and the resume runs.
- Status reads (window refresh, predictive preflight, the 1 min beat) mark a
  running record asleep when the control plane says sleeping, so the row
  reads Asleep. Only when the record is unchanged since it was read.
- Quiet (predictive) wakes report whether a resume actually ran; one that
  found the VM up is 'skipped': no unopened hold, no backoff, no short idle
  window in main.
- A skipped wake (preflight no, or nothing to resume) gives the 30 s
  hover/focus gap back.
2026-11-09 22:47:22 -08:00
Neil 7b9d400865 fix(cloud): predictive wake: any row drag (the sidebar's own pointer drag too) cancels the press wake, detected by pointer travel; a drag whose end never reaches the window clears on the next buttonless move 2026-11-09 21:46:45 -08:00
Neil e810a54dd2 fix(cloud): deleting an asleep cloud workspace no longer asks its sandbox for archive hooks (31 s of request timeouts) 2026-11-09 21:33:25 -08:00
Neil 84d68eb0c8 test(cli): no casts in the --on cloud dispatch tests 2026-11-09 21:11:02 -08:00
Neil 70e9b2a6c4 feat(cli): orca worktree create --on cloud[:<project>] [--env] creates an Orca Cloud workspace (private build); clear plan/at-cap/payment/sign-in errors; API accepts a team environment 2026-11-09 21:08:55 -08:00
Neil a878062983 Merge pull request #163 from nwparker/cloud/w2-predict-gaps
fix(cloud): predictive wake gaps: drag, cross-client sleep cooldown, seat cap
2026-11-09 20:43:41 -08:00
Neil 0a7785d4b5 fix(cloud): predictive wake gaps: a drag never wakes (press waits for release, drag cancels pending), the sleep cooldown reads the server's last chosen sleep from any client, and a wake is skipped with the owner's seat or team at or one below its running cap 2026-11-09 20:41:25 -08:00
Neil c6b9a52015 perf(terminal): a freshly spawned Linux shell's first prompt may claim the idle submit (#162)
#151 added the /proc foreground proof, but the OSC 133 prompt hint only reaches 'prompt'
after a clean C -> D;0 -> A cycle, so the first command typed into a new terminal (every
wake's first command) still waited the 500 ms paste settle. A runtime mirror that starts
at the shell's spawn treats its first prompt as clean; any C, failed D or seed (restored or
attached stream) keeps the old rule. Linux only, where the /proc proof gates it.
2026-11-09 20:40:06 -08:00
Neil 7f6859f8d9 Merge pull request #159 from nwparker/cloud/w2-predict
perf(cloud): predictive wake on intent, pre-connect during resume, one handshake per wake
2026-11-09 20:32:55 -08:00
Neil 4a364f485e fix(cloud): predictive wake setting catalog matches the W10 title; drop unused toggle label; runtime catalog synced 2026-11-09 20:30:44 -08:00
Neil a0b57b10f5 fix(cloud): an intent wake for the active workspace is claimed at once; any cloud activation claims in main (claimOnly, no wake); main activation (CLI, phone) claims; suspend clears the unopened mark 2026-11-09 20:28:26 -08:00
Neil f6dec546f0 fix(cloud): unopened intent wakes return to sleep through the lease scheduler's verdict-gated idle path (3 min window, never with live work); any activation claims; idle sleeps keep focus-wake; wheel re-arm survives the prewarm 2026-11-09 20:26:29 -08:00
Neil 1bd5504707 fix(cloud): predictive wake review fixes (cap on awake-unopened sandboxes with return to sleep, shared hover/focus rate limit, no focus re-wake after a chosen sleep, quiet refusals leave no failed-resume record and back off, pre-connect bound to the wake, no pre-connect on lost-contact recovery, wheel re-arms the dwell) 2026-11-09 20:22:54 -08:00
Neil af9c09a23d fix(cloud): predictive wake setting reads the idle window from workspace status (constant only as fallback); headless fixture 2026-11-09 20:19:10 -08:00
Neil 6332129506 fix(cloud): predictive wake setting moves to Orca Account (Orca Cloud accounts only) with W10 copy, idle minutes from the shared constant 2026-11-09 20:17:31 -08:00
Neil 52f1ba7796 docs+copy(cloud): the per-seat running cap counts the workspace owner's seat; at-cap errors a teammate sees name the owner 2026-11-09 20:11:19 -08:00
Neil db187e0e26 fix(cloud): picker sign-in selects Orca Cloud under StrictMode; a Delete cancels or silences the archive queued by Move to this computer 2026-11-09 20:03:54 -08:00
Neil bde9bd1486 fix(cloud): predictive wake timers return cancel functions (no casts); localization keys 2026-11-09 19:47:01 -08:00
Neil d5e57508cf Merge pull request #152 from nwparker/cloud/activity-keepalive
feat(cloud): VM activity, not the desktop, keeps a sandbox's lease alive
2026-11-09 19:44:57 -08:00
Neil 4dee4cc7c6 feat(cloud): VM activity keeps a sandbox alive without a desktop - orcad publishes its work verdict, the cron renews busy leases and sleeps idle ones 2026-11-09 19:41:36 -08:00
Neil 893be16f77 perf(terminal): prove an idle Linux daemon shell from /proc so Enter skips the paste settle (#151)
terminal.send text+Enter to a daemon-backed shell always waited the 500 ms agent paste
settle: the daemon's shell-foreground answer is lifecycle ownership, which is only proven
after a recovery or full-screen exit, never for a fresh or plain-command shell. On Linux
the idle-prompt claim now also accepts the shell's own /proc stat (process group is the
terminal foreground group, i.e. ps '+'), scoped to the target PTY; other hosts unchanged.

The acceptance wake split uses one persistent paired connection per wake (the desktop's
transport) by default; transport=cli keeps the per-call socket the CLI dials.
2026-11-09 19:38:55 -08:00
Neil 5a71e62ff6 perf(cloud): predictive wake on intent (hover dwell, row press, window return), wake pre-connect from the saved pairing, one handshake per wake 2026-11-09 19:34:33 -08:00
Neil 05d43602c8 Merge pull request #149 from nwparker/cloud/delete-unconfirmed-fix
fix(cloud): P0 delete leak - never drop a row for an unconfirmed sandbox; creator can delete across teams; asleep delete without wake
2026-11-09 19:33:17 -08:00
Neil 9b497d2b0e test(cloud): drop type assertions in cloud delete tests 2026-11-09 19:29:52 -08:00
Neil 5bdec31000 fix(cloud): address review - asleep delete needs Force delete and runs ownership checks, destroyed sandboxes forget their row, removed members get no cross-team delete, destroy errors always surface 2026-11-09 19:27:29 -08:00
Neil cb7d58bbc0 fix(cloud): deletes never drop a row for a sandbox Orca Cloud can't confirm; asleep cloud delete skips the wake; creator can delete across teams; picker sign-in selects Orca Cloud; signed-out create shows the sign-in card 2026-11-09 19:20:44 -08:00
Neil 59a628033e Merge pull request #144 from nwparker/cloud/w2-close
feat(cloud): Apply changes again after a partial move; continue an agent when its view is reopened after a restart (real-app run on m4air)
2026-11-09 19:19:35 -08:00
Neil 3335c23f73 fix(cloud): a stale continue loop exiting never un-tracks the newer loop for that pane 2026-11-09 19:16:01 -08:00
Neil 0f73bb4a80 fix(cloud): single node:fs import 2026-11-09 19:11:05 -08:00
Neil 55624dad49 refactor(cloud): continue helpers out of the continue module (line limit) 2026-11-09 19:08:59 -08:00
Neil da208a006d fix(cloud): keep the untracked archive on any skipped file, sweep temps, link fallback, Discard on the after-restart offer, disarm reaches running continue loops 2026-11-09 19:08:15 -08:00
Neil c8eb1319fc perf(cloud): 0-RTT port-forward opens, idle-proof SSH/forward activity, faster small downloads (#146)
- Forward tunnel early data (workspace-ports.forward-tunnel.early-data.v1). It is negotiated on
  each attach: the client asks for it and the host echoes it in `ready`. The client sends up to
  64 KiB, its receive credit and a half-close right behind Open. The host holds those bytes
  until the destination connects, writes them before Opened, and drops them if the connect
  fails. Old hosts and old clients keep the strict ordering, and the browser tunnel is unchanged.
  New-connection HTTP GET through a forward on a real VM: p50 127 -> 64 ms, p95 138 -> 70 ms.
- SSH and port-forward idle-sleep activity now use ForwardUseMeter instead of the
  2 KiB/min byte threshold. An idle VS Code remote window sends 2.3-3.0 KB/min of
  keepalives, so it kept the VM awake forever. The meter counts packet bursts and
  payload-sized packets instead; the unit tests replay traces recorded on the real VM.
- Downloads: files.stat now goes out with the first pages instead of one round trip ahead
  of them.
2026-11-09 19:06:01 -08:00
Neil effd263938 refactor(cloud): move-run guard in its own module (no import cycle) 2026-11-09 19:03:09 -08:00
Neil 6cce49913b fix(cloud): typecheck in the re-apply flow 2026-11-09 19:01:46 -08:00
Neil bbb035b5a4 fix(cloud): review fixes for Apply changes again and late continue (staged+unstaged re-apply, untracked files never lost, no archive with leftovers, atomic writes, per-transfer lock and worktree check, after-restart offer; one continue loop per pane, late reopen verifies session or offers Continue) 2026-11-09 18:59:48 -08:00
Neil 6100c61bf5 Merge pull request #143 from nwparker/cloud/sync-upstream-main
Merge stablyai/orca main into cloud/integration (+ health fixes, gate/sync script updates)
2026-11-09 18:48:01 -08:00