Commit Graph
16731 Commits
Author SHA1 Message Date
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
Neil 0a625740cc perf(orcad): skip the disposable startup preflight on Orca Cloud boots (#141)
On every Orca Cloud start and wake, orcad ran its disposable startup preflight child. That child is a
second full load of the 15 MB bundle plus the SQLite and node-pty probes, and it ran before main().
The cloud slot could never be qualified: qualification needed the managed-activation env, and the
marker lives in the slot directory, which is root-owned in the image. In-VM profiles showed the main
thread idle for about 580 ms waiting on that child.

- ORCA_ORCAD_STARTUP_QUALIFICATION_DIR names a writable directory for the startup-qualified marker
  and opts the slot into qualification. The key is unchanged: artifact version, file stat identity,
  runtime, ABI, kernel and launch env. It survives a stop and resume: inode, mtime and ctime are
  identical after resume, and the first launch after resume skipped the preflight.
- The image creates /opt/orca/startup-qualification. The provisioning smoke run records the marker,
  and orca-sandbox-start passes the env.
- Agent-state-rules live updates and speech-model warm-up now start after the ready line instead of
  before it.
- Once the ready line is published, a terminal list warms the terminal path (worktree catalog,
  daemon inventory) before the reconnecting desktop asks for it.

Real 4-vCPU VMs, readyMs median of 5: idle 1475 -> 903 ms; with 3 busy cores 1921 -> 1200 ms.
2026-11-09 18:44:16 -08:00
Neil 0ac8bb1e79 Merge remote-tracking branch 'private/cloud/integration' into cloud-sync
# Conflicts:
#	src/renderer/src/lib/browser/navigation/remote-oauth-callback-relay.ts
2026-11-09 18:42:43 -08:00
Neil e72c7598fb fix(cloud-integration): tests green after merging stably/main
- remote-desktop guest setup tolerates a destroyed/partial guest on its first load read
  (13 browser-manager suites)
- worktree Sleep handlers import the offline seam, not the whole offline service (6 worktrees ipc suites)
- ordinary http links open synchronously; only a runtime OAuth loopback URL waits for its relay
  (terminal link and markdown link-routing suites)
- recipe options load through a promise so a missing VM bridge is a handled failure
2026-11-09 18:37:08 -08:00
Neil 1f51735ac4 fix(cloud): localization keys for Apply changes again; fixed clock in the sweep test 2026-11-09 18:24:51 -08:00
Neil ef5db64afc fix(cloud): lint (no casts; persisted transfer parsed with zod), split partial-result view 2026-11-09 18:22:12 -08:00
Neil 13d5cc0b68 test(cloud): type the reopen-continue send mock 2026-11-09 18:19:12 -08:00
Neil 4abbc03f42 feat(cloud): Apply changes again after a partial or failed move (idempotent apply onto the same worktree, conflicts reported, survives restart); continue an interrupted agent when its pane is reopened later 2026-11-09 18:17:17 -08:00
Neil 78cfe7a87b chore(cloud): desktop P2 fixtures follow the primitives' lint rules 2026-11-09 18:14:46 -08:00
Neil 8ef12e5729 fix(cloud): desktop P2 review — unarchiving state, dismissible progress, late/thrown wake failures, one failure message 2026-11-09 18:12:17 -08:00
Neil 724e8bce0b feat(cloud): remote desktop P2 — Unarchive action, wake then open, light reconnect card, palette entry 2026-11-09 18:12:13 -08:00
Neil 0d5fc44d67 Merge pull request #136 from nwparker/cloud/w6-mcp-lows
W6: close MCP sync lower-severity review findings
2026-11-09 18:08:29 -08:00
Neil 9309abdba8 test: compare parsed servers without a cast 2026-11-09 18:05:53 -08:00
Neil 5049474808 Merge pull request #124 from nwparker/cloud/w5-ui-followups
feat(cloud): teammate names on Orca API keys, connected apps, audit and routines; meaningful i18n placeholder names
2026-11-09 18:04:52 -08:00
Neil 108e7d362d fix(cloud-integration): follow upstream's renderer lib moves (keyboard/shortcut-platform, text-input/ime) 2026-11-09 18:03:42 -08:00
Neil 9e32dc17ca fix(cloud): MCP sync review lows — project-scope servers go to the sandbox workspace's Claude project scope (never user scope), Codex reformatting its block no longer orphans it, egress ledger applies serialized, OAuth relay can't hold the browser back more than 4s 2026-11-09 18:03:20 -08:00
Neil e998a5ce96 W8 follow-ups: removal and role loss reach phones; role-aware plan-denial copy (#135)
* fix(w8): removing a member revokes their phones; role changes move phones too; a phone's stored role never re-syncs keys

* fix(w8): one removal path revokes keys, phones, grants and routines; stale desktop tokens can't re-sync roles or vouch phones; a grant revoked mid-issue stays revoked

* fix(w8): a removed member's unexpired desktop tokens stop working; changes count from auth's time; desktop re-mints and retries enroll on stale_token

* feat(w8): role-aware plan-denial copy on the phone (owners and admins get the fix, members who to ask)

* fix(w8): W10 copy (per-seat team limit, choose a plan) and FE review (3 s abortable role read, Android live region, more copy cases); no casts
2026-11-09 18:02:56 -08:00