Commit Graph
21126 Commits
Author SHA1 Message Date
Neil 9dcda9941c chore(cloud): mobile switch exhaustiveness; extract the read-panel hook 2026-11-10 02:32:17 -08:00
Neil 6fb8497a1a Merge remote-tracking branch 'private/cloud/integration' into cloud/sleeping-read-snapshot
# Conflicts:
#	cloud/apps/sandbox-control/image/vm-scripts.generated.ts
#	mobile/src/cloud/cloud-control-plane-client.ts
#	mobile/src/i18n/en-runtime-required.json
#	mobile/src/i18n/locales/en.json
#	src/renderer/src/components/cloud-workspaces/CloudWorkspaceRow.tsx
#	src/renderer/src/components/cloud-workspaces/CloudWorkspacesHome.tsx
2026-11-10 02:21:17 -08:00
Neil 298fbc7cfa fix(cloud): DS-38 read-only header marker, queued caption alignment, offline poll catch 2026-11-10 02:20:25 -08:00
Neil ebec244447 Merge pull request #203 from nwparker/cloud/agents-gaps2
feat(cloud): swap COPILOT_GITHUB_TOKEN and GOOGLE_API_KEY at egress; routines run all six image agents; AWS keys marked stored on workspace
2026-11-10 02:16:56 -08:00
Neil 42b5d60656 style: one import for cloud-secret-rules 2026-11-10 02:14:30 -08:00
Neil df8927b7f5 fix(cloud): security review: Copilot token limited to Copilot's GitHub endpoints; routine summaries are final messages with session secrets redacted; untrusted context capped
- COPILOT_GITHUB_TOKEN on api.github.com: GET /user and GET /copilot_internal/* only (normalized
  paths; dot or encoded segments refused); the Copilot API hosts are unchanged. It resolves like
  an env variable (personal beats team): it is one person's GitHub identity.
- Routine summaries for opencode (JSON events), cursor (JSON result) and copilot (--silent) are the
  agent's final message, and every summary has the session's secret values replaced before it can
  be posted as a comment or PR body.
- Webhook/GitHub context in a routine prompt is capped at 48 KiB (compact, then cut), so a prompt
  passed as one argv entry stays under Linux's 128 KiB limit.
- A test fails if an agent credential is neither swapped nor marked 'Stored on workspace'.
2026-11-10 02:13:11 -08:00
Neil e35ff0844a feat(cloud): COPILOT_GITHUB_TOKEN and GOOGLE_API_KEY swapped at egress; routines run all six image agents; AWS keys marked stored on workspace
- COPILOT_GITHUB_TOKEN: placeholder in the VM, swapped on api.github.com (Bearer or token form, next to
  the workspace token's own route) and on the Copilot API hosts (left open for Copilot's own session
  token). GOOGLE_API_KEY: swapped on generativelanguage.googleapis.com and aiplatform.googleapis.com
  (Vertex express). A credential may now route to several hosts.
- Routines accept claude, codex, opencode, gemini, cursor and copilot; the in-VM runner has a
  headless command for each (checked against a local stand-in model: prompts starting with '-' stay
  prompts). The editor picks the agent from a list.
- AWS_* keys (SigV4, signed in the VM) and Bedrock API keys can't be swapped: the secrets UI marks
  them 'Stored on workspace' with the reason, in the list, the .env preview, the effective view and
  the editor.
- Gemini's auth method is seeded for GOOGLE_API_KEY too (vertex-ai with GOOGLE_GENAI_USE_VERTEXAI);
  headless Gemini refuses to start without one.
2026-11-10 02:08:00 -08:00
Neil 209d658b03 Merge pull request #202 from nwparker/cloud/status-rate
feat(cloud): one overage constant ($1/h); workspaces show sandbox hours, not dollars
2026-11-10 01:57:47 -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 ff5fb6b631 Merge pull request #201 from nwparker/cloud/w9-eval
feat(cloud): acceptance — agent image/keys-swap rows, sub.size at 8/16, region/size AFTER benchmarks
2026-11-10 01:46:39 -08:00
Neil 8550787232 docs(cloud): region/size AFTER benchmarks — wake p95 5.85 s in pdx1 2026-11-10 01:45:21 -08:00
Neil 2920f1c173 feat(cloud): acceptance image.agents, agent.keys-swap (no model), sub.size at 8/16 (U18); more-agents owner-reported 2026-11-10 01:45:21 -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 0559156ce2 chore(cloud): read snapshot lint/quality gates (no casts, async key store, split parser, l10n) 2026-11-10 00:49:53 -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