Commit Graph
1142 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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 9288e84d7a Merge remote-tracking branch 'private/cloud/integration' into cloud-sync
# Conflicts:
#	src/renderer/src/i18n/locales/en.json
2026-11-09 18:01:10 -08:00
Neil 60377d3364 feat(cloud): remote desktop Beta — single-use tickets, fit, clipboard, keyboard release (W10 RD-1..6) (#122)
* feat(cloud): remote desktop single-use tickets, fit, clipboard and keyboard release

- VM: Xvnc on a 0600 socket with no VNC auth plus an X cookie; orca-desktop-proxy (websockify
  subclass) admits one WebSocket per unused 60 s ticket from the same localhost origin, refuses
  rebinding Hosts, scrubs tickets from logs, serves the page with connect-src 'self'.
- Worker: POST /desktop mints a fresh ticket per call (schemaVersion 2).
- Desktop: no secret in the tab URL; main hands the page tickets on load and reconnect (backoff,
  floor, pause with Reconnect), only for the exact URL of a live forward it opened; keyboard stays
  in the desktop until Ctrl+Cmd / Ctrl+Alt; a paste key pushes this computer's clipboard; sandbox
  copies reach this computer after a copy gesture.
- UI: keyboard hint, asleep/starting neutral tone and mapping, persistent error toasts, Beta badge.

* fix(cloud): remote desktop review fixes

- Security review: noVNC host/port/encrypt pinned to the page's origin, CSP connect-src 'self',
  exact-URL + live-forward trust, mint floor and per-minute cap, copy gate on copy gestures only,
  X display cookie.
- Design review: archived is its own neutral state, starting covers waking, page messages say
  "Wake it in Orca", pause overlay is a status for calm states and focuses Reconnect, hint wraps
  and hides from assistive tech when faded.
- FE review: paste follows the keyboard layout, AltGr never releases, page calls settle on
  navigation, state notices only on change, hint once per load/release, paste always pushes,
  no committed bytecode, session tests.

* fix(cloud): remote desktop archived page message, hint layout, fixtures

* fix(cloud): remote desktop copy gate counts double-clicks (pointer events have no click count)

* chore(cloud): remote desktop lint (exhaustive pause reasons, no test casts or wall clock)
2026-11-09 17:36:19 -08:00
Neil 36ea9cac01 Merge stably/main into cloud/integration
# Conflicts:
#	src/main/ipc/ephemeral-vm-runtime-handlers.ts
#	src/preload/api/ephemeral-vm-api.ts
#	src/preload/api/ephemeral-vm-bridge.ts
#	src/renderer/src/components/terminal-pane/pty-connection/host-ownership/pty-connection-runtime-owner-spawn-routing.spec.ts
#	src/renderer/src/i18n/locales/en.json
2026-11-09 15:54:48 -08:00
Neil 9d48206ac8 feat(files): stream runtime file and folder downloads with progress, cancel and open-locally 2026-11-09 15:35:45 -08:00
Jinjing 3e86c5ac73 fix(i18n): translate sparse preset validation failures (#40277)
* fix(i18n): translate sparse preset validation failures

* fix: classify sparse directory validation by type
2026-11-09 15:12:50 -08:00
Neil 604ce7c913 Merge pull request #99 from nwparker/cloud/w6-mcp-final
W6: MCP config sync into Orca Cloud sandboxes (egress hosts + OAuth loopback relay)
2026-11-09 15:10:16 -08:00
Neil f4032bf36f fix(cloud): drop Start empty (a host-local project can't open on a sandbox), Try again after pushing; sidebar pending row uses sandbox wording and the card's title 2026-11-09 14:48:07 -08:00
Neil a8d6bb4698 fix(cloud): build sheet round 4: glossary cards, GitHub not connected + no GitHub remote before any sandbox, measured start hint from /v1/config, Orca Cloud host label
- Account/billing cards use glossary titles (Out of sandbox hours, Spend cap reached, Payment failed,
  running-sandbox limits), role-aware next steps, and 'Nothing was created, and you weren't charged.'
- 409 github_not_connected: 'GitHub isn't connected for <owner/repo>' + Connect GitHub (POST
  /v1/github/connect, opens the GitHub install page) + Try again.
- A repo without a GitHub remote is refused in main before the control plane is called, with
  Start empty / Push to GitHub first.
- GET /v1/config serves createTiming (p50/p95 of recent create-to-ready); the sheet's 'usually ~Ns'
  reads it and shows no hint without a measurement.
- Orca Cloud servers display as 'Orca Cloud' in sidebar host labels and the usage segment; legacy
  '<repo> VM <id>' names are renamed at startup.
2026-11-09 14:48:06 -08:00
Kelvin Amoaba 98bc1acf16 feat(dictation): pulse three dots in the pill while spoken words are still on their way (#40443)
* feat(dictation): show pending dots while the engine holds speech it hasn't committed

The VAD pause segmenter already knows when a phrase is open. The recognizer
now posts speech-pending when a phrase opens and clears it once that phrase's
text is posted, and the desktop pill shows three dots after the text while it
is on. Only pause-cut on-device streams send it, so cloud, the paired web
client and phones keep today's pill.

* fix(speech): keep a lone click from turning the pending dots on
2026-11-09 20:14:48 +00:00
Jinjing 8ef4680142 Improve project group ordering across hosts (#39816)
* Improve project group ordering across hosts

* fix(project-groups): restore each group order after a failed drop

A deleted group made the aggregate rollback stop early, leaving other groups at
the ranks from the failed drop. Restore each group independently and log the
swallowed single-update failures again.

* refactor(main): give project group RPC methods their own module

Keeps repo.ts under the 300-line cap as the project group surface grows.
2026-11-09 11:40:51 -08:00
Kelvin Amoaba 58733086c9 feat(speech): spell dictated code terms with a personal and per-repo dictionary (#40450)
* feat(speech): spell dictionary terms in dictation, with repo terms and Whisper prompt

* test(speech): pin host repo terms for phone dictation

* fix(speech): keep symbol terms whole, accept null setup params, resolve SSH repos

* refactor(speech): key transcript words once and type phone terms at the reply schema

* refactor(speech): merge speech-types imports in the speech IPC
2026-11-09 19:22:46 +00:00
Kelvin Amoaba 9a45e8bdfb feat(speech): dictate through any OpenAI-compatible transcription service (#40160)
Add an OpenAI-compatible model whose base URL, model and optional key
are set up in a Voice settings dialog and sealed together in ~/.orca,
so a key is never sent to a host it wasn't saved for. It reaches
OpenAI, Groq, Mistral and local servers, and replaces the unused
userModels setting.
2026-11-09 16:57:24 +00:00
Neil d6593b834f fix(cloud): MCP servers panel review fixes — shared InlineError and Skeleton, glossary copy (sandbox), egress note, per-server toggles in main, stale-reply guard; host merge hardening from round 1 2026-11-09 08:13:49 -08:00
Neil 0df9ea1fbf feat(cloud): org environment builds — desktop: Settings → Cloud environment, live logs, CLI, low-disk banner (#47)
* fix(sandbox-control): read the orgRole claim that Orca Cloud auth mints (#29)

Auth mints the live org role as orgRole on sandbox tokens (same claim as billing
tokens, stablyai/orca-cloud#695); the verifier read org_role, so admins would
never have been recognized.

* wip(cloud): environment builds control plane

* wip(cloud): environment build boot path, staleness, routes

* wip(cloud): env build tests, anonymous staleness fallback

* wip(cloud): migration 0008 (claimed), quieter recovered clone errors

* fix(cloud): env build review: interrupted-snapshot recovery, bounded log reads, secret redaction, activation guard, hook/prelude fixes

* fix(cloud): wait briefly for the build exit code after its log ends; print the base image and package manager

* wip(desktop): org environments client, IPC, CLI, settings UI, orcad disk usage + low-disk banner

* perf(cloud): smoke-boot each environment build before activating it; skip the redundant prelude fetch

* fix(cloud): a GitHub token error fails the build as github_unavailable instead of cloning anonymously

* perf(cloud): warm pool VMs per hot environment build, so a create from an org environment skips the provider boot

* wip(desktop): cloud environment UI round-3 fixes

* fix(cloud): pool-per-build review: smoke race safety, provider hiccups skip smoke, usage-based hot builds with caps, bounded boots, index

* fix(desktop): Configure with an agent hands the prompt over at launch (trust dialog swallowed the pasted Enter); CLI builds table widths

* polish(desktop): W10 P2s — InlineError action slot, shared focus-ring, copy

* feat(cloud): build event stream heartbeat every 20 s

* fix(desktop): FE review — stable virtualizer, shadow-buffer replays, heartbeat-aware build watch, CLI follower restarts, repo import path checks, poll races
2026-11-09 08:03:35 -08:00
Neil 382b54efce feat(cloud): sync desktop MCP servers into Orca Cloud VMs on connect; relay agent OAuth loopback callbacks to the host 2026-11-09 07:58:14 -08:00
Neil 0bf3dcb720 Merge pull request #85 from nwparker/cloud/w4-multiplayer
feat(cloud): W4 follow-up — attested git-as-sender (default on), terminal sender envelope, follow + chat links, fixtures
2026-11-09 07:45:35 -08:00
Neil baef8f91e0 feat(cloud): member git identity only within a window after the member's own client reports a send (0031); entry points kept current per boot
# Conflicts:
#	cloud/apps/sandbox-control/image/vm-scripts.generated.ts
2026-11-09 07:30:39 -08:00
Neil e5e48898f1 Merge remote-tracking branch 'private/cloud/integration' into w5-ui-merge
# Conflicts:
#	src/main/startup/main-window-core-services.ts
#	src/preload/api-types.ts
#	src/preload/index.ts
2026-11-09 07:30:10 -08:00
Neil bb07c4bdd7 feat(cloud-secrets): main-process client, IPC and preload bridge for Orca Cloud secrets
Shares the control-plane call (token, base URL, redirect guard, zod) between the sandbox and
secrets clients. Values go renderer -> control plane only; failures cross IPC as codes.
Adds the .env paste parser and the client-side mirror of the server's name/value rules.
2026-11-09 07:20:18 -08:00
Neil 30c5b84e64 fix(cloud): FE review round 2 — PATCH matches server (no nulls, 5–120 min), webhook URL from edits, team-aware token cache, approval busy guard, polls keep loaded pages, inert aria-disabled refresh, CSS.escape, lenient link parsing, Intl list formatting 2026-11-09 07:20:07 -08:00
Neil 9db4199107 fix(cloud): W10 round 5 — sticky footer flush, Open workspace via local sandbox lookup, focus after disconnect/create, aria-disabled pending buttons, rotate blocked while dirty, friendly time zones, quieter failure reasons 2026-11-09 07:20:06 -08:00
Neil 2cee7bc17e feat(cloud): connected MCP apps on the API keys page; split routine row 2026-11-09 07:19:58 -08:00
Neil 2e76ad5592 feat(cloud): Orca Cloud API keys + routines settings (private builds)
Main-process /v1 client (zod-validated, token never leaves main, errors mapped
to stable codes), IPC + preload bridge, Settings → API Keys (create with scope
presets, one-time secret, revoke, MCP approve-an-app code, docs/MCP links,
vmCliEnabled org toggle, admin activity log) and Settings → Routines (list,
editor for schedule/GitHub/webhook triggers, run now, history, delete), gated
on a configured Orca Cloud control plane. Component fixtures + unit tests.
2026-11-09 07:19:57 -08:00
Neil 32d9782649 feat(orca-cloud): session lifecycle feedback (restart now, idle sleep, cancel cleanup, sidebar state, queued first prompt) (#66) 2026-11-09 07:05:25 -08:00
Neil 165d6813fe Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-transfer
# Conflicts:
#	src/main/hosted-sandbox/hosted-sandbox-install.ts
#	src/preload/api-types.ts
#	src/renderer/src/components/sidebar/workspace-actions/context-menu/WorktreeContextMenuView.tsx
2026-11-09 07:02:59 -08:00
Neil b0b593ed45 Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-transfer
# Conflicts:
#	cloud/apps/sandbox-control/src/index.ts
#	cloud/apps/sandbox-control/src/lifecycle.ts
#	cloud/apps/sandbox-control/src/pool.ts
#	cloud/apps/sandbox-control/src/sandbox-vm-commands.ts
#	cloud/apps/sandbox-control/test/fake-vercel.ts
#	cloud/apps/sandbox-control/test/lifecycle-flow.test.ts
#	src/main/hosted-sandbox/hosted-sandbox-control-plane-client.ts
#	src/preload/api-types.ts
#	src/renderer/src/components/sidebar/workspace-actions/context-menu/WorktreeContextMenuView.tsx
#	src/shared/hosted-sandbox/hosted-sandbox-wire.ts
2026-11-09 07:01:38 -08:00
Neil cf7d27ec93 Merge pull request #74 from nwparker/cloud/w2-ui
feat(cloud): workspace lifecycle UI, asleep reading cache and wake-on-message queue
2026-11-09 06:59:40 -08:00
Neil 2cca473b9a Merge cloud/w2-cache (queue fixes) and cloud/integration into cloud/w2-ui; final nits 2026-11-09 06:56:40 -08:00
Neil 90adbc6601 wip(team): team page, checkout flow, dev billing token 2026-11-09 06:55:54 -08:00
Neil 777f078c76 feat(cloud): W4 team collaboration on cloud workspaces
## W4: team collaboration on Orca Cloud workspaces

### Control plane (`cloud/apps/sandbox-control`)
- **Registry** (`0024_workspace_registry.sql`, applied on dev D1): owner (reassignable), `created_by`, branch, `visibility` (private default / team), section, last activity, token spend. Reuses 0020's `name`/`archived_at`.
- **Routes under `/v1/team/*`** (W5 owns `/v1/workspaces`): list with Mine/Team/All, By, In, Archived filters; PATCH (rename, share or make private, section, archive, reassign owner); presence heartbeats; wake and lease for teammates; links resolve; org prompts/PR instructions (compare-and-set).
- **Security fix:** `/v1/sandboxes/:id` used to be account-scoped, so any org member could resume a teammate's sandbox and receive its orcad pairing code. It is now owner-only; admins can still suspend and destroy.
- **Per-member, per-device E2EE grants:**
  - The VM mints a single-device orcad offer and seals it to the requesting device's X25519 key.
  - The control plane stores only the orcad device id.
  - Revocation runs `orca pair --revoke`, which closes the device's live sockets, plus an on-disk registry removal.
  - When the VM is asleep, the revoke is queued and applied at boot before orcad starts.
  - Triggers: explicit revoke, making a workspace private, archive, reassign, member removal (internal route), and phone device-session revoke (W8).
  - VMs from older images get the entry points installed on demand.
- **Git as the sender:** a member's own GitHub user-to-server token (App OAuth, envelope-encrypted) is swapped in at egress only for the workspace repo. The VM gets per-member git configs and `orca-git-as`.
- **Cost:** metered compute × billing rate, plus optional token spend.

### orcad (generic)
- New owner-only RPC `pairing.revokeDevice` and `orca pair --revoke <device-id>`: revokes a device and closes its open connections immediately.

### Desktop
- A "Cloud workspaces" section on Home: Team/Mine, By, In and Archived filters; sections; live presence; cost; last activity. Single-click Open on a teammate workspace pairs this device through an E2EE grant. Also a row menu (share/private, move to section, reassign, archive) and copy link.
- Deep links `orca://cloud/w/<id>[/c/<chat>]` (open-url, argv, second instance, sidecar handoff) and the `cloudWorkspace.copyLink` keybinding.
- Messages to agents in shared workspaces carry a sender envelope.
- Uses the W10 shared primitives.
- Two rounds of adversarial design and frontend review.

### Evidence
Real Vercel VMs; see the W4 report. Numbers:
- grant issued in 0.55 s, paired in 1.35 s
- revoke closes the live desktop socket ~30 ms after the PATCH returns
- two members' pushes land on GitHub with their own author identities (shared dev Worker, preview alias w4); a push to another repo gets 403
2026-11-09 06:53:24 -08:00
Neil 9a21a515d3 fix(vm-recipes): hide an in-progress VM checkout in every window, the phone and the jump palette (#40373)
* fix(vm-recipes): hide an in-progress VM checkout in every window, the phone and the jump palette

A VM create's checkout was hidden only in the sidebar of the window that
started the create. Windows now publish their pending VM checkouts to the
main process, which shares every window's set with all windows and
filters the paired phone's host workspace list and workspace context.
The jump palette and the sidebar read the shared set, and a grouped VM
project no longer draws an empty-project placeholder while its create
is pending. A window's set is dropped when it closes, crashes or reloads.

* test(project-groups): reset leaked runtime environment revisions between files
2026-11-09 06:51:21 -08:00
Neil 2aac889a78 Merge remote-tracking branch 'private/cloud/integration' into cloud/integration
# Conflicts:
#	src/renderer/src/components/sidebar/workspace-actions/context-menu/WorktreeContextMenuView.tsx
2026-11-09 06:45:27 -08:00
Neil 309245d0d4 feat(w3): remote desktop for Orca Cloud workspaces (Xvnc + noVNC over the port forward) (#61) 2026-11-09 06:43:19 -08:00
Neil 2cfddb1a41 Merge origin/main into cloud/integration
# Conflicts:
#	src/preload/api/ephemeral-vm-bridge.ts
#	src/renderer/src/components/sidebar/workspace-actions/context-menu/WorktreeContextMenuView.tsx
#	src/shared/ephemeral-vm-runtime-store.test.ts
2026-11-09 06:40:52 -08:00
Neil 984f29fc37 feat(cloud): SSH into Orca Cloud workspaces (orca ssh, ssh-proxy, VS Code/Cursor Remote-SSH) (#55)
* feat(cloud): SSH into Orca Cloud workspaces (orca ssh, ssh-proxy, VS Code/Cursor Remote-SSH)

- VM: unprivileged key-only sshd on 127.0.0.1:2222 (orca-sshd), host key and Orca-managed
  authorized_keys on the persistent disk; orca-ssh-keys entry point; provision extracts only the
  server binaries (dnf or apt, +1.5-2 MB) and unlocks the sandbox user for key logins.
- Control plane: POST/DELETE /v1/sandboxes/:id/ssh-keys runs the fixed entry point and answers
  the pinned host key; editor Remote-SSH server hosts on the egress allowlist.
- Desktop: per-workspace ed25519 keys in userData (0600), Orca-owned ssh_config + pinned
  known_hosts, ~/.ssh/config Include only after consent; wake -> key -> runtime port forward
  (openRuntimePortForward reason 'ssh'); revoke (deferred while asleep); SSH traffic keeps the
  workspace awake.
- CLI: orca ssh-proxy <workspace> (ProxyCommand) and orca ssh <workspace>.
- UI: Open in -> VS Code / Cursor over Remote SSH, SSH submenu (Copy SSH Command, Revoke),
  include consent dialog, progress/error toasts.

* fix(cloud-ssh): review fixes — no agent forwarding, reinstall per VM boot, wake to revoke

- ForwardAgent/ForwardX11 no in Orca's host blocks; AllowAgentForwarding no in the VM's sshd.
- Reinstall the key (idempotent; restarts sshd, re-pins the host key) once per VM boot, so a
  wiped disk, rollover or dead sshd heals on the next connection.
- Revoke wakes the VM to remove its copy; only an unreachable VM falls back to the queue.
- orca-ssh-keys rejects multi-line keys; sshd log truncated per start; audit log entries for
  ssh key add/remove; state parsed per entry; % escaped in ssh_config paths; ProxyCommand pinned
  to this app's profile; ssh-proxy flushes stdout before exit; --print shell-quotes; editors
  open via --folder-uri with a checked path; "Remove from ~/.ssh/config" + one-time backup.
2026-11-09 06:37:23 -08:00
Neil 793c578874 fix(w3): ports UI polish from W10 design review round 3 (#60)
* fix(w3): W10 round-3 polish for ports (one 'in use' wording, actionable errors + Reconnect, xs actions, Badge, focus ring, live region, toast durations/coalescing, range InlineError)

* chore(w3): drop obsolete port-forward localization keys
2026-11-09 06:33:18 -08:00
Neil 1737dcdfbd feat(cloud): share links for Orca Cloud workspace ports (W3) (#51)
* feat(cloud): share links for Orca Cloud workspace ports (gateway, in-VM share proxy, wake interstitial, Ports panel UI)

* fix(cloud): share-link security review (no cookie fallback, path mode dev-only, per-link cookie scoping, SW and Referer blocked, proxy key via stdin, connection deadline, link-bound viewer, wake cap, rate limit, secret rotation)

* fix(cloud): share links re-review (host-only app cookies in subdomain mode, previous-secret proxy retry, 30 min connection cap, share-domain pinning on the desktop)
2026-11-09 06:30:40 -08:00
Neil cd884b94ea Run-on picker: Orca Cloud as a top-level target, entitlement pre-check, keyboard submenus (#50)
* feat(run-on): Orca Cloud as a top-level Run-on target with entitlement pre-check and keyboard submenus

* fix(run-on): reviewer fixes, sign-in/upsell row, glossary copy, current-row check

* fix(run-on): main reports Orca Cloud availability; reload recipes on auth change

* fix(run-on): an offline session refresh hides Orca Cloud instead of asking to sign in
2026-11-09 06:20:06 -08:00
Neil d6679e8e93 feat(cloud): move a cloud workspace to this computer, wake on SSH (sshd over a wss bridge + desktop ProxyCommand), preview wake helper 2026-11-09 06:11:42 -08:00
Neil db07983ef7 Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-ui 2026-11-09 05:56:22 -08:00