Commit Graph
21419 Commits
Author SHA1 Message Date
Neil e375e87621 fix(cloud): folder row actions as outline + link buttons; link buttons underline on focus; folder-like fixture project 2026-11-10 09:07:23 -08:00
Neil 5b69b88166 Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-signed-out-cloud 2026-11-10 09:02:16 -08:00
Neil 1955af1e2c feat(cloud): folders can pick Orca Cloud; the panel offers a GitHub repository instead (D3 for folders, design-squad) 2026-11-10 09:02:13 -08:00
Neil 0239076ae5 Merge pull request #286 from nwparker/np4/setup-trial-active-team
fix(billing): setup grants the trial to the desktop's active team
2026-11-10 08:52:01 -08:00
Neil 8e5ce5d0f1 Merge pull request #288 from nwparker/cloud/agents-badge-wrap
fix(cloud): secret names never truncate; chips sit under the name (design-squad P2)
2026-11-10 08:51:54 -08:00
Neil 062c05d2fe fix(billing): grant the trial to the desktop's active team when setup starts on it
Live m4air run: a signed-in owner whose active team never had a trial was sent
to T3/Checkout. Only teams bound in the browser got the trial. Session creation
now runs the same grant (N11 limits) for the active team, so the chain skips
the plan page.
2026-11-10 08:49:41 -08:00
Neil 604bbf75fb fix(cloud): signed-out and not-yet-entitled users can pick Orca Cloud and reach Set up and start 2026-11-10 08:48:26 -08:00
Neil 977a17e0a2 Merge pull request #284 from nwparker/cloud/w2-signed-out-project
fix(cloud): picking a GitHub project in the composer did nothing (D4 key collision)
2026-11-10 08:30:14 -08:00
Neil 6da29ef05c Merge pull request #282 from nwparker/cloud/agents-s0
feat(cloud): S0 Orca Cloud agent accounts + onboarding Agent row (G)
2026-11-10 08:30:08 -08:00
Neil e69a92a608 fix(cloud): a confirmed sandbox delete never surfaces as invalid_response (#285)
The desktop parsed the DELETE answer with the full strict sandbox view, so any view field the control
plane adds later (e.g. archive state) turned a successful delete into 'Orca Cloud returned an unexpected
response'. Destroy now parses only what confirms the delete (id + status) and ignores unknown keys; a
body without them is still rejected. Tests cover both.
2026-11-10 08:30:02 -08:00
Neil cf2989c063 Merge remote-tracking branch 'private/cloud/integration' into cloud/agents-badge-wrap 2026-11-10 08:29:44 -08:00
Neil 8c8788244e fix(cloud): secret names never truncate; key and 'Real value in sandbox' chips sit on a line under the name (design-squad P2) 2026-11-10 08:28:14 -08:00
Neil b79f2ed891 Merge pull request #283 from nwparker/cloud/agents-vm-keyguard
fix(cloud): closes the A6 MEDIUM: cloud VMs advertise themselves, desktops send them no Agent API keys; orcad drops carried agent credentials
2026-11-10 08:24:38 -08:00
Neil 0420622f95 fix(cloud): D4 row keys no longer swallow GitHub projects (github: prefix collided with project ids) 2026-11-10 08:24:30 -08:00
Neil f196d901a0 fix(cloud): design-squad on #282: one 'Copy code and open' for the Codex device code; panel row actions are outline xs buttons 2026-11-10 08:21:41 -08:00
Neil ece50d6b80 merge integration 2026-11-10 08:21:18 -08:00
Neil e6cdedd45e Merge pull request #247 from nwparker/cloud/agents-aws-badge
fix(cloud): W10-2: AWS keys marked 'Real value in sandbox' with a focusable tooltip; fixtures
2026-11-10 08:21:14 -08:00
Neil c4e5e43cf9 Merge pull request #253 from nwparker/cloud/agents-picker-design
fix(cloud): W10-1: Orca Cloud agent picker says when it substitutes an agent; fixtures; mobile chip labels
2026-11-10 08:21:09 -08:00
Neil c2de4acc48 merge integration 2026-11-10 08:17:26 -08:00
Neil e207371618 chore(cloud): S0 lint gates: no casts, exhaustive switches, fake-clock broker test 2026-11-10 08:14:31 -08:00
Neil f498cea0fe feat(cloud): the setup panel's Agent row (G) reads the S0 model; panel G fixtures
The merged Set up Orca Cloud panel's 'agent' step now comes from the same
row model as the standalone row: done with 'Claude · from your Orca account' /
'Codex · team key', Set up once / Renew to S0, the kill-switch info line,
signed-out copy, loading; hidden when nothing there helps. Drops the panel's
placeholder copy keys.
2026-11-10 08:11:24 -08:00
Neil 6973c6abe7 Merge remote-tracking branch 'private/cloud/integration' into cloud/agents-s0
# Conflicts:
#	src/renderer/src/components/new-workspace/NewWorkspaceComposerProjectSection.tsx
2026-11-10 08:11:00 -08:00
Neil b79f5165bd feat(vm-build): show the last 20 lines of a recipe error under an earlier-lines note (#281)
The cause usually prints last, so the Details window now keeps the tail,
opens scrolled to the end, and notes '…N earlier lines' (plurals) at the
top. Copy details still copies the full text.
2026-11-10 08:09:36 -08:00
Neil a3d362a49a fix(cloud): S0 security review: Windows quoting, repaint-safe token capture, broker id, identity binding
- setup-token on Windows goes through cmd with the shared quoting as one verbatim
  ConPTY line; the child env is buildClaudeChildProcessEnv (no inherited auth) and
  runs in the home directory.
- Token capture drops styling escapes, breaks on cursor moves, waits 1 s for a
  repaint and keeps the longest complete copy, so a split copy is never stored.
- Broker ids must start with a letter or digit (no '.'/'..' path tricks), checked
  at parse time too; server error names are looked up with a Map.
- A setup belongs to the Orca identity it started under: a changed identity drops
  the captured token / cancels the broker and resets the rows.
- A token being stored can't be cancelled or raced by a paste or a new start.
- The Codex driver only shows OpenAI sign-in pages and caps the wait at 20 min.
- The paste field clears in a finally; a rejected IPC reads as unknown.
2026-11-10 08:05:45 -08:00
Neil 5533d274e6 feat(vm-build): move local recipe raw errors into a Details disclosure (#280)
Local custom-recipe failure cards now show a plain-language summary with
the raw error in a collapsed Details disclosure (monospace, Copy details,
truncated to 20 lines with a note; Copy takes the full text). Orca Cloud
cards are unchanged. Adds collapsed/expanded/truncated fixtures and tests.
2026-11-10 08:04:11 -08:00
Neil 0fd423dea1 feat(cloud): S0 Orca Cloud agent accounts + onboarding Agent row (G)
Main:
- agent-credentials client for /v1/agent-credentials, /v1/agent-sources and the
  Codex broker routes; replies and errors are codes only. The shared control-plane
  request keeps the server's error name (HostedSandboxRefusalError) so newer
  routes (broker_in_progress, rate_limited, no_golden_image) map to codes.
- claude setup-token runner (pseudo-terminal in production, fake child in tests):
  captures the sk-ant-oat01 token in memory, never logs it, PUTs it from main
  with the local Claude account email as label. Capture failure or no claude
  offers "Paste the token instead"; a pasted value goes renderer -> main once.
- Codex broker driver: device code, poll until active, cancel, code expiry.
- orcaCloudAgents IPC + preload bridge: states and codes only.

Renderer:
- Settings > Agent accounts > Orca Cloud (S0, spec §5): not set up, setting up
  (browser / preparing / device code / paste / saving), state 7 Source choice,
  active, expiring, expired/revoked, kill switch, signed out, load and save
  errors; the mandatory policy line; Source via SettingsSegmentedControl.
- The composer's Agent row (cloud-start G) replaces ComposerCloudAgentHint:
  from your Orca account / team key (collapsed), Set up once -> S0, kill switch
  info, signed-out copy; hidden for members blocked by billing; never blocks.
- Telemetry cloud_first_start_agent_coverage (once per install).
- Fixtures: settings/agent-accounts/OrcaCloudAccounts:*, new-workspace/OrcaCloudAgentSetupRow:*.
2026-11-10 07:56:58 -08:00
Neil 7e516b5974 Merge pull request #279 from nwparker/cloud/w6-card-copy
fix(secrets): honest request-card copy; saved card gets out of the way
2026-11-10 07:55:17 -08:00
Neil b4d5193141 fix(secrets): request card copy is honest and the saved card gets out of the way
design-squad, after the W6 live run: an unknown asker reads 'A command asked for NAME' with no repeated 'from' line; the saved detail no longer claims the agent never gets the value (it is a plain env var); the CLI notes say the same. The saved card is announced, then dismisses itself after 6 s (paused while hovered or focused); while asking, scrolling or typing in the pane folds it to the pill.
2026-11-10 07:53:12 -08:00
Neil 61e71b4b74 Merge pull request #277 from nwparker/cloud/w2-d4-github-projects
feat(cloud): GitHub-only projects in the Project picker (cloud-start D4)
2026-11-10 07:52:50 -08:00
Neil 61d12fbdfd fix(build-sheet): pluralize the running-sandbox limit copy (1 sandbox, Put it to sleep) (#278) 2026-11-10 07:50:54 -08:00
Neil 3c368cbe52 Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-d4-github-projects 2026-11-10 07:49:42 -08:00
Neil fac72bd9e0 fix(cloud): D4 section says the clone line once; rows show owner and visibility; Show more repositories 2026-11-10 07:49:39 -08:00
Neil 13d6cf7e51 feat(cloud): GitHub-only projects in the Project picker (cloud-start D4) 2026-11-10 07:44:33 -08:00
Neil e48cf41c69 Merge pull request #276 from nwparker/cloud/agents-a5-followups
A5 follow-ups: offline last-known state, retry missed syncs, remove-prompt fixture, dev e2e
2026-11-10 07:43:54 -08:00
Neil 3f38c5122c Merge pull request #275 from nwparker/cloud/w2-squad-polish
feat(cloud): W2 lifecycle polish — DS-31/32/42/45, Capy P2s, limit plurals
2026-11-10 07:41:43 -08:00
Neil de930e1656 Merge branch 'cloud/integration' of https://github.com/nwparker/orca-private into cloud/w2-squad-polish 2026-11-10 07:39:01 -08:00
Neil 74deeee990 fix(cloud): "Sleeps in {{count}} minutes if idle"; neutral sentence-case Active badge in build history (#275 review) 2026-11-10 07:38:58 -08:00
Neil 47acabaf68 Merge pull request #264 from nwparker/np4/setup-seam
NP-4: register the setup session with w2's composer seam (stacked on cloud/w2-cloud-start)
2026-11-10 07:38:19 -08:00
Neil 67008f4515 feat(agent-api-keys): A5 follow-ups: offline last-known state, retry pending saves, remove-prompt fixture
- Signed in but Orca unreachable: rows keep their last-known state (from the per-account ledger:
  names, key ids and timestamps only) under "Can't reach your Orca account right now", with no
  account actions that would fail.
- Saves made while signed in that miss the account (offline or a transient failure) are queued in
  the ledger and retried at start, on wake and with backoff while waiting; the timer stops when
  idle. Only that key at that version: edits, removals and signed-out saves are never uploaded.
- Fixtures: removePrompt, cloudUnreachable.
2026-11-10 07:36:51 -08:00
Neil 9113edad5f feat(cloud-setup): register the setup session with the composer's seam (N1)
Set up and start opens the one-tab setup session for the project's GitHub repo.
The setup panel reads each poll's snapshot. A draft restored after a restart
resumes polling its session.
2026-11-10 07:35:25 -08:00
Neil 7d5608e05a fix: no restyle on DialogTitle 2026-11-10 07:33:53 -08:00
Neil c4b8987487 Merge pull request #274 from nwparker/cloud/w6-secret-request-wait
fix(cloud): two W6 live-e2e findings (secret request --wait <sec>, secrets saved mid-boot)
2026-11-10 07:33:02 -08:00
Neil 3ca68b2780 Merge pull request #273 from nwparker/cloud/w2-cloud-start
feat(cloud): Start in Orca Cloud — composer + entry points (spec v2)
2026-11-10 07:31:51 -08:00
Neil f4534a7b18 fix(cloud): "1 sandbox" in the running-limit errors (plural forms for team, seat and owner) 2026-11-10 07:29:59 -08:00
Neil 5a0eabd864 fix(cloud): compare the boot env inline; refresh in the background only when it changed 2026-11-10 07:29:12 -08:00
Neil cc6c623973 fix(cloud): visible-time reconnect cap, Intl relative times, reserved-port constant, plurals (DS-45)
- use-wake-attach-hold: only visible time counts toward the 8 s cap (+ test)
- cloud-workspace-format: formatRelative via Intl.RelativeTimeFormat in the UI locale (+ test)
- share-port-dialog-parts: reserved ports from SHARE_RESERVED_PORTS (was missing 6080), MAX_PORT_CHOICES
- archived 'more files not shown' gets a _one form; localization catalogs synced
2026-11-10 07:28:27 -08:00
Neil 11828e5b5c fix(cloud): type tokens, neutral build status, AA ANSI palette, visible script Tab hint (DS-42)
- text-[11px]/text-[10px] -> text-2xs/text-3xs across cloud folders
- BuildStatusIcon: in-progress/done neutral (muted-foreground), failed destructive
- Build log ANSI foreground palette clamped to >=4.5:1 on every log surface per theme
- Setup-script editor: visible 'Tab indents · Esc then Tab to leave' hint
2026-11-10 07:28:25 -08:00
Neil ca1bde58f5 fix(cloud): design-squad review — subtitle follows state, trial-only hides the panel, neutral checks, no inline Compare plans; drop interim GitHub row 2026-11-10 07:26:44 -08:00
Neil b20120d4d0 fix(cloud): secrets saved while a sandbox boots reach its session
The boot resolves the session env before the VM is up, and a secret change only refreshes running sandboxes, so a value saved from the build-sheet Secrets row during the boot never reached the workspace (found in the W6 live e2e). Once running, the boot re-resolves the env and refreshes the session when it changed.
2026-11-10 07:26:29 -08:00
Neil 8d102e2745 fix(cli): orca secret request accepts the documented --wait <sec>
--wait is a global boolean flag, so '--wait 300' left 300 as a positional and the command failed with 'Unknown command: secret request NAME 300' (found in the W6 live e2e). A spec can now list optionalNumberFlags; secret request does for wait.
2026-11-10 07:24:12 -08:00