Commit Graph
21110 Commits
Author SHA1 Message Date
Neil 6feed28d32 copy(cloud): W10 — team list cell spells out 'sandbox hours' (drops the column when narrow); '{{n}} sandbox hours of overage this month' 2026-11-10 01:55:59 -08:00
Neil d4653c15d3 feat(cloud): one overage constant (ORCA_CLOUD_OVERAGE_CENTS_PER_HOUR, $1) for billing and the control plane; workspaces show sandbox hours, not per-workspace dollars (desktop list, phone status) 2026-11-10 01:52:05 -08:00
Neil d2593a8605 Merge pull request #187 from nwparker/cloud/run-actions-ports
Run actions (orca.yaml scripts.run) + per-workspace ORCA_PORT blocks; Conductor import
2026-11-10 01:37:21 -08:00
Neil 01335d7cfc Merge pull request #200 from nwparker/cloud/agents-creds
fix(cloud): Copilot CLI sign-in works in cloud workspaces (GitHub placeholder no longer overrides /login)
2026-11-10 01:36:09 -08:00
Neil bf7477e1ce refactor(cloud): run-action wake relaunch subscribes to wake progress itself (store stays under max-lines) 2026-11-10 01:35:06 -08:00
Neil 1095b509fc fix(cloud): Copilot CLI sign-in works in cloud workspaces (GitHub placeholder no longer overrides /login)
Copilot prefers GH_TOKEN/GITHUB_TOKEN over a stored /login. In Orca Cloud those hold the workspace
GitHub App placeholder, so every Copilot start said 'Resource not accessible by integration' and a
user who signed in could never use it. A wrapper drops the two placeholders for Copilot only, unless
BYOK is configured (no GitHub sign-in needed; gh in Copilot's shell keeps working).
2026-11-10 01:33:29 -08:00
Neil 118c74fb51 Merge remote-tracking branch 'private/cloud/integration' into cloud/run-actions-ports 2026-11-10 01:33:03 -08:00
Neil 7f4ff74bde Merge pull request #188 from nwparker/cloud/agents-picker
Orca Cloud agent pickers list only the agents the image ships
2026-11-10 01:28:09 -08:00
Neil 084369b74c Merge pull request #199 from nwparker/cloud/overage-100
feat(billing): overage $1.00 per sandbox hour (interim)
2026-11-10 01:28:08 -08:00
Neil dc0bf820ea feat(billing): overage $1.00 per sandbox hour (interim); plans.ts is the single source (setup script, e2e and spend-cap math read it); new Stripe TEST price 2026-11-10 01:26:39 -08:00
Neil 440e6b2737 Merge pull request #198 from nwparker/cloud/w9-eval
feat(cloud): acceptance region/size bench tools, external-result import, checkpoints verified, agent caps for user e2e
2026-11-10 01:22:24 -08:00
Neil f1aa875edc docs(cloud): checkpoints verified independently by W9 (host path + real git tests) 2026-11-10 01:21:08 -08:00
Neil 1c50f70acc Merge pull request #197 from nwparker/cloud/w2-wake-polish
fix(cloud): waking pill clears the pane header icons; predictive pill counts from the intent
2026-11-10 01:20:43 -08:00
Neil c9c0a0c65e feat(cloud): acceptance records owner-reported results (import-external); checkpoints capped until independent run 2026-11-10 01:20:19 -08:00
Neil f6b6c5141c feat(cloud): acceptance create-bench (host CPU/size/region), wake-split region + CPU per wake, bench-summary 2026-11-10 01:20:19 -08:00
Neil f9cc0f0c89 docs(cloud): agent caps lifted only by the user's own e2e session (no gateway runs) 2026-11-10 01:20:19 -08:00
Neil 84fc2c87e3 Merge pull request #191 from nwparker/cloud/code-checkpoints
feat(native-chat): per-turn code checkpoints; Rewind can also restore files
2026-11-10 01:18:54 -08:00
Neil afcb876aa9 fix(cloud): waking pill sits below the pane header icons (split/close stay clickable); a predictive wake's pill counts from the intent, not from the resume after its checks 2026-11-10 01:17:03 -08:00
Neil 434b89f36d fix(run-actions): keep every run with a live tab across reloads (restart replaces it); local runs that ended while unobserved read as exited after startup 2026-11-10 01:16:42 -08:00
Neil 027ca19046 fix(checkpoints): newline-safe undo coverage, path-matched workspace busy, focus Cancel
- assertUndoCovers never asks batch-check about a path with a newline (counts as
  unsaved), so answers can't shift.
- The workspace-busy probe matches rows by workspace id or worktree realpath and
  treats a truncated listing as busy.
- Rewind dialog opens with focus on Cancel; a disabled option reads as disabled.
- Notes: unreadable tracked deletes keep their staged blob; the turn-starting
  mark is process-local by design.
2026-11-10 01:14:22 -08:00
Neil 80af83cb46 fix(checkpoints): nested repos, undo coverage, workspace-wide busy; W10 copy
- Refuse a restore that would write or delete inside a nested repository, and
  verify every on-disk path it touches is in the undo tree first (git add can
  skip a path without failing).
- A turn counts as busy from its snapshot until the hand-off; terminal agents
  working in the workspace make restores refuse; the preview reports busy and
  the dialog disables the files choice.
- W10 copy: statement description, i18n plurals, state-dependent detail line,
  option directly under the description, 'The chat was rewound, but…' errors.
- Index restore keeps skip-worktree bits; large-file scan honours the deadline.
- Component fixture for the rewind prompt states.
2026-11-10 01:08:53 -08:00
Neil ce388262db test(e2e): live spec settles on a quiet chat, logs dispatch state 2026-11-10 01:08:53 -08:00
Neil 94d0d4041f test(e2e): live rewind-with-restore against a real Claude Code agent 2026-11-10 01:08:53 -08:00
Neil 6e1905851c fix(checkpoints): address data-loss review
- A restore that fails partway names its undo point; the error toast offers Undo.
- Refuse when an ignored file sits where the checkpoint needs a folder, or when
  a file to overwrite is unreadable (neither could be saved first).
- Busy check runs inside the per-worktree queue and covers every chat in the
  worktree; the rewind stays pending until files are back.
- add --ignore-errors exit 1 (unreadable/nested repo) no longer disables
  checkpoints; untracked files over 10 MB are left out of snapshots (saved only
  if a restore would overwrite them); one deadline per capture.
- Skip-worktree/assume-unchanged entries are left alone; stale temp indexes swept;
  retention never prunes the checkpoint just written.
2026-11-10 01:08:53 -08:00
Neil c43d52f48b feat(native-chat): per-turn code checkpoints; Rewind can also restore files
Before each turn a message opens, the host snapshots the chat's worktree as a
stash-like commit under refs/orca/checkpoints/<session>/turn/<item> (working
tree incl. untracked files, staged tree as second parent), via a private temp
index. HEAD, the branch, the user's index and the stash list are untouched.

Rewind to here now offers 'Also restore files (N changed)', on by default when
a snapshot exists. Restore first saves an undo checkpoint (also covering ignored
files it overwrites), refuses on merge conflicts or file/folder clashes before
writing anything, never moves HEAD, and restores staging only while HEAD is
unchanged. The toast offers Undo. Retention: newest 50 turn / 10 undo
checkpoints per chat, nothing older than 30 days.

Measured: capture p50 356 ms on a 40k-file repo, 637 ms on 200k files; restore
0.44 s / 0.78 s.
2026-11-10 01:08:53 -08:00
Neil cc771c6b30 fix(run-actions): premerge gate — async port registry (no sync fs on main/orcad), no casts, theme tokens, menu primitives 2026-11-10 01:08:35 -08:00
Neil 63b6999dee feat(cloud): pdx1 default region, iad1 fallback, golden per region; Standard = 8 vCPU / 16 GB (U17, U18) (#194)
* feat(cloud): pdx1 default region with iad1 fallback and one golden per region; Standard is 8 vCPU / 16 GB (U17, U18)

- golden_images and environment_builds record their region (0040, backfilled iad1); rotation,
  git-source builds, smoke and activation run per region; lifecycle picks the region's golden.
- New creates default to pdx1; a create with no pinned region falls back to iad1 automatically on a
  capacity/provider error (VERCEL_FALLBACK_REGIONS). Until pdx1 has an image, creates use iad1.
- Environment builds boot and smoke in their own region; workspaces from a build boot there.
- One size: Standard = 8 vCPU / 16 GB (ORCA_CLOUD_SANDBOX_SPEC). Legacy 'large' requests map to
  standard; 0040 rewrites existing large rows.

* merge cloud/integration (ORCA_CLOUD_SANDBOX_SPEC landed in #196)
2026-11-10 01:07:56 -08:00
Neil 97a53a98b7 Merge remote-tracking branch 'private/cloud/integration' into cloud/run-actions-ports 2026-11-10 01:04:17 -08:00
Neil 20f252aa1d fix(run-actions): Run button tolerates partial stores (tab-group tests) 2026-11-10 01:03:47 -08:00
Neil 3b0e985a74 fix(run-actions): Run button in tab strips, shortcut dispatched from terminals, a finished one-shot doesn't take the button
Found on m4air: with the right sidebar open the titlebar strip isn't rendered, so the button also
sits next to Quick Commands in the (focused) tab strip; workspace.run is dispatched by the global
keybinding handler; the primary action is the last one still running, else the default.
2026-11-10 01:02:02 -08:00
Neil b22512a759 Merge pull request #196 from nwparker/cloud/standard-8vcpu-copy
feat(cloud): one sandbox size (8 vCPU · 16 GB, 1×): billing and copy
2026-11-10 01:00:13 -08:00
Neil c893c5d570 Merge pull request #195 from nwparker/cloud/agents-node-ca
fix(cloud): orcad and its terminals trust the egress proxy's CA (Gemini CLI hung in cloud terminals)
2026-11-10 00:59:02 -08:00
Neil c997f9cf3c fix(cloud): orcad and its terminals trust the egress proxy's CA (Gemini CLI hung in every cloud terminal)
Hosts with credential rules (model APIs, api.github.com) are answered by Vercel's egress proxy with a
certificate from its CA. Vercel's command env trusts it (NODE_USE_SYSTEM_CA, NODE_EXTRA_CA_CERTS,
SSL_CERT_FILE) but orcad starts under env -i, so Node clients in terminals used Node's bundled roots:
Gemini CLI retried forever ('This is taking a bit longer') while the same call from a command
returned at once. Found on the live proof of the new agents; NODE_USE_SYSTEM_CA=1 in the terminal
fixed it there (1 s to the provider's answer).
2026-11-10 00:57:32 -08:00
Neil ff12245a82 feat(cloud): one sandbox size (8 vCPU · 16 GB, 1×) — billing counts every size 1×, plans/usage/run-on/env/CLI/phone copy from ORCA_CLOUD_SANDBOX_SPEC, size pickers removed 2026-11-10 00:54:28 -08:00
Neil b403e6d459 Merge pull request #193 from nwparker/cloud/w2-wake-live-fixes
fix(cloud): slow wake leaves no dead pane; no reconnect banner during a wake; pill below the tab strip; predictive pill shows at once
2026-11-10 00:51:30 -08:00
Neil 9d1ae65dbc Merge pull request #192 from nwparker/cloud/control-staging-auth
feat(sandbox-control): dev trusts staging auth sandbox tokens (U19 e2e)
2026-11-10 00:49:41 -08:00
Neil 2e16712692 fix(cloud): pane layout send returns a tagged result (type-aware lint) 2026-11-10 00:48:28 -08:00
Neil 0ca83ef860 feat(sandbox-control): dev control plane also trusts staging auth sandbox tokens
Staging sign-in now works end to end in dev without a dev operator key on the user's machine.
Same account ids as billing dev (which trusts staging already); never honored when SANDBOX_ENV=prod;
a staging key cannot pass as the prod issuer.
2026-11-10 00:46:50 -08:00
Neil 5f82993ac6 fix(cloud): a slow wake no longer leaves the woken pane dead (calls and streams wait for the in-flight wake instead of being refused at their call timeout; waking refusals retry soon; pane layout push retries); the pill waits until the pane takes input and fails visibly at 8s; no reconnect banner during a wake, cloud copy names the workspace; pill sits below the pane tab strip; earlier-started wakes show at once 2026-11-10 00:44:42 -08:00
Neil fd199a4ea6 chore(i18n): run-action strings in the English catalog; protected-copy keys 2026-11-10 00:39:52 -08:00
Neil a51591cd22 fix(cloud): Orca Cloud picker keeps the local pick and surface; hook test
Review follow-up: Orca Cloud derives its agent without overwriting the user's
pick (a local-only pick returns on the local host), drops the terminal-only
surface from cloud picks, and tests the composer hook end to end.
2026-11-10 00:33:19 -08:00
Neil f3510092e2 feat(cloud): Orca Cloud agent pickers list only the agents the image ships
Desktop composer with Orca Cloud selected: the picker is enabled and lists the
image agents (minus disabled ones) as terminal rows, defaulting to the user's
default when the image ships it, else claude; a local-only pick is repaired.
Phone cloud picker and composer read the same shared list and default.
2026-11-10 00:33:19 -08:00
Neil 64fbff83f1 Merge pull request #190 from nwparker/cloud/agents-in-image
feat(cloud): OpenCode, Gemini CLI, Cursor agent and Copilot CLI in the image; their keys swapped at egress
2026-11-10 00:33:06 -08:00
Neil 4286eb9cfc fix(cloud): no swappable key reaches the VM unrouted; Cursor's exchange reply passes only the access token
Security review: a Copilot BYOK key without a usable base URL (or with one from another scope) had
no route, so it went to the VM as itself. Every swappable name now becomes a placeholder, routed or
not, and the Copilot pair resolves like the other agent keys (shared beats personal, as a pair).
The Cursor exchange reply is parsed whatever its content type and cut down to accessToken; headers
(set-cookie) are not passed. opencode.ai is not allowlisted (anonymous share uploads).
2026-11-10 00:24:34 -08:00
Neil a1d4aad723 build(cloud): source-build smoke prints used disk and /opt/orca size 2026-11-10 00:20:05 -08:00
Neil 095c4ed960 build(cloud): fail the golden build when a new agent CLI does not start; smoke checks them 2026-11-10 00:19:31 -08:00
Neil 2086f40305 feat(cloud): OpenCode, Gemini CLI, Cursor agent and Copilot CLI in the golden image, keys swapped at egress
Image: pinned opencode-ai 1.19.5, @google/gemini-cli 0.67.0, @github/copilot 1.0.108 (npm) and
cursor-agent 2026.11.05-86047df (checksummed tarball). opencode's unused linux build variant is
dropped (~205 MB). First-run screens are answered at every boot/secret refresh (folder trust for
Gemini, Cursor and Copilot; Gemini's auth picker when a Gemini key is set; OpenCode's gateway model
from ANTHROPIC_MODEL/OPENAI_MODEL); self-update is off for all four.

Egress: GEMINI_API_KEY / GOOGLE_GENERATIVE_AI_API_KEY (generativelanguage.googleapis.com,
x-goog-api-key), CURSOR_API_KEY (api2.cursor.sh, only POST /auth/exchange_user_api_key; the
refresh token is stripped so nothing long-lived lands on the VM) and COPILOT_PROVIDER_API_KEY /
BEARER_TOKEN (host of COPILOT_PROVIDER_BASE_URL, same scope only) are placeholders in the VM and
swapped by the proxy. Allowlist adds the agents' API and sign-in hosts. API/MCP accept the image's
agents; routines stay on claude/codex.
2026-11-10 00:19:04 -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 8e9c8e71d4 fix: no cast in isOrcaCloudImageAgent 2026-11-10 00:13:19 -08:00
Neil b86ecdd0b4 refactor: Run button view + headless fixtures for review 2026-11-10 00:01:49 -08:00