Commit Graph
22022 Commits
Author SHA1 Message Date
Neil 07288af2a6 Merge pull request #441 from nwparker/cloud/rr-a-setup-cancel-keeps-hold
fix(cloud): RR-a cancelling a held launch's setup keeps the launch held (P1)
2026-11-11 05:37:01 -08:00
Neil add67aae5a test(cloud): RR-a strip-actions test sets window.api without a type cast 2026-11-11 05:35:06 -08:00
Neil d983dcb9fd fix(cloud-skills): a Synced list that grows past 10 after Sync now collapses too (#438) 2026-11-11 05:32:40 -08:00
Neil 64c1d97e9f fix(cloud): RR-a cancelling a held launch's setup keeps the launch held
On a held 'Claude isn't set up' pane, Cancel during the browser sign-in
released the hold with 'cancel', so the pane lost its strip and Start for
good, even after Claude was set up from Settings. Cancel during a setup now
stops only the setup; the pane is back on 'Set up once', and a setup from
anywhere flips it to 'Start Claude' (the held strip reads the live account
state). Cancel with no setup running still gives up the launch.
2026-11-11 05:32:22 -08:00
Neil 849d37db1e Merge pull request #437 from nwparker/cloud/premerge-same-folder-tests
chore(cloud): premerge runs same-folder and importer tests via run-vitest.mjs; PREMERGE_FULL=1 runs pnpm test (PM-gap, P1)
2026-11-11 05:30:33 -08:00
Neil 65c85cc73a Merge pull request #436 from nwparker/cloud/ja21-wrap
Cloud: the Run on billing-wall reason wraps, never truncates (JA-21 follow-up)
2026-11-11 05:25:22 -08:00
Neil 7901b0e37e fix(cloud): JA-21 wall line: action on its own line, flush-left, no separator 2026-11-11 05:16:12 -08:00
Neil 4d67445d8c chore(cloud): premerge runs tests through the repo's run-vitest.mjs (env policy) and PREMERGE_FULL=1 runs pnpm test
Bare 'npx vitest' skips run-vitest.mjs's env (e.g. ORCA_BACKGROUND_LAUNCH=1) and the workspace package
build, which made 37 tests fail spuriously in a full run on integration HEAD.
2026-11-11 05:11:21 -08:00
Neil f4097ab696 fix(cloud): JA-21 the billing-wall reason wraps, never truncates
design-squad: the glossary reason ('Out of sandbox hours') is never cut. Under
Run on the line wraps (action on the same line if it fits, else below). In the
menu the 'Orca Cloud' title stays whole, the reason wraps on the second line, and
the action aligns to the top. Only in the flagged wall state. Fixtures added.
2026-11-11 05:03:31 -08:00
Neil 21a5d759b4 Merge pull request #433 from nwparker/cloud/cr-title-guard
Cloud: a generated '<Agent> <id>' vault title never names a tab (CR-title)
2026-11-11 05:00:09 -08:00
Neil 144707f18b chore(cloud): premerge also runs same-folder tests and tests that import a changed module; PREMERGE_FULL=1 runs the full suite (PM-gap)
#347 (c267ae3676) broke cloud-workspace-archive-delete-race.test.ts and the premerge never ran it,
because it only mapped changed sources to sibling-named tests (foo.ts -> foo.test.ts). #435 then ran 0
targeted files for the same reason. Now each changed source also selects every test in its folder and
every src test that imports it by module name; for cloud-workspace-actions.ts that is 14 files including
the race test. PREMERGE_FULL=1 runs the whole vitest suite.
2026-11-11 04:59:14 -08:00
Neil 9e1c1b3633 Merge pull request #435 from nwparker/lc2/fix-archive-delete-race
fix(cloud): Delete during the archive's preview read cancels the archive (INT-T1)
2026-11-11 04:57:00 -08:00
Neil 4948e61c6d fix(cloud): a Delete started while the archive reads its local-copy preview cancels the archive (INT-T1) 2026-11-11 04:53:41 -08:00
Neil c80adac3db Merge pull request #434 from nwparker/cloud/w2-no-asleep-while-connecting
fix(cloud): nothing shows asleep while a wake is Connecting… (W2-wake)
2026-11-11 04:53:34 -08:00
Neil 5a4fe161a5 Merge pull request #421 from nwparker/cloud/w2-composer-cloud-advanced
fix(cloud): composer Advanced hides Parent worktree for Orca Cloud; sparse checkout stays (DS-j)
2026-11-11 04:52:06 -08:00
Neil 88edfa672a fix(cloud): nothing shows asleep while a wake is Connecting… (stale reads on the way in)
W6 saw ~750ms before a wake went live (pill still "Connecting…"): the row back to
"Asleep", the Files panel's Wake button, and the terminal's "This workspace is
asleep" note. Same race as #408 on the way in: main's ready lands before the status
re-read, and the stale "sleeping" read (or the not-yet-updated VM record) won.
#408 only fixed the row word's derivation; the terminal note and Files panel read
the status and VM record directly. One rule now, isWakeReadyAfterRead: a ready
wake newer than the last status read makes those reads stale for the dot state,
the view's VM-record override, the terminal recovery context and the Files
panel. A newer read or a failed wake still shows asleep.
2026-11-11 04:51:13 -08:00
Neil 0b808222cb fix(cloud): CR-title a generated '<Agent> <id>' vault title never names a tab
A session whose first turn failed (expired sign-in, network, the harness's fake
token) has no transcript title or prompt, so the vault answers the generated
'Claude 6ebe07c5' and the tab-title sync wrote it over the tab's own title. The
sync now skips that generated name; the tab keeps 'Claude' or its launch title.
The generator moves to shared so main and the renderer agree on it.
2026-11-11 04:41:20 -08:00
Neil c8b42013a5 Merge pull request #432 from nwparker/cloud/ja21b-preflight
Cloud: Run on preflight, already-selected case + dev billing fault (JA-21b, flagged)
2026-11-11 04:39:47 -08:00
Neil 9124482944 Merge pull request #431 from nwparker/cloud/cr-cmd-stage
Cloud: stage Orca-built agent lines on Orca Cloud hosts, so panes don't echo flags or the prompt (CR-cmd)
2026-11-11 04:39:42 -08:00
Neil 094fe08219 fix(cloud): JA-21b dev fault as a lookup (exhaustive-switch lint) 2026-11-11 04:37:00 -08:00
Neil 37dbe597f6 Merge pull request #429 from nwparker/cloud/ra11-bind-ensure
fix(cloud): RA-11 resume race: Restart resumes in the pane (P1)
2026-11-11 04:35:14 -08:00
Neil 0bc9607a0c feat(cloud): JA-21b already-selected wall keeps the target, says why, holds Create; dev billing fault
Behind the same runOnPreflight flag: when Orca Cloud is already the selected
target (a remembered default) and a billing wall applies, the selection stays,
one line under Run on gives the reason and the one fix (members: 'Ask an owner
or admin'), and Create is disabled until it's fixed. Dev/QA only:
localStorage['orca:dev:billingFault'] = out-of-hours | payment-issue | lapsed
simulates a wall for real-app shots (import.meta.env.DEV).
2026-11-11 04:32:51 -08:00
Neil 98b44f7574 test(cloud): CR-cmd merge fs imports 2026-11-11 04:27:39 -08:00
Neil 3e703b7a52 fix(cloud): CR-cmd stage Orca-built agent lines on Orca Cloud hosts
On an Orca Cloud VM (orcad, ORCA_IS_CLOUD=1) the pane echoed the whole agent
launch line: claude --plugin-dir '/vercel/...' '--dangerously-skip-permissions'
'<prompt>'. Orca-built agent lines are now always staged there, so the pane shows
. /tmp/orca-launch-<hex>.sh; the script is 0600 and removes itself when the shell
runs it, before the agent starts. Local launches are unchanged (cloud-only rule).
2026-11-11 04:25:13 -08:00
Neil 42f5dc216f Merge pull request #430 from nwparker/cloud/ja21-preflight-flag
Cloud: Run on preflight behind an off-by-default flag (JA-21)
2026-11-11 04:24:00 -08:00
Neil ce91546a69 test(cloud): JA-21 composer fixtures, flag off and on 2026-11-11 04:21:10 -08:00
Neil 75aae53d3a feat(cloud): JA-21 Run on preflight, behind an off-by-default flag
With capability flag runOnPreflight (or localStorage orca:dev:runOnPreflight=1
for the harnesses), the composer's Orca Cloud row is disabled for an owner or
admin whose team can't start a sandbox now (out of hours, payment failed, plan
ended): it shows the reason and its one fix (Turn on overage / Update payment
method / Renew), and Enter runs that fix instead of picking a target that would
fail after Start. Members keep 'Ask an owner or admin'; a plan not started yet
(trial offer) stays pickable, it's setup. Flag off: no change.
2026-11-11 04:19:36 -08:00
Neil 78baab7e4b Merge remote-tracking branch 'private/cloud/integration' into cloud/ra11-bind-ensure 2026-11-11 04:18:53 -08:00
Neil 92ec6c23c7 Merge pull request #428 from nwparker/cloud/ga-p3t-one-tab
Cloud: one tab on a cloud create; the startup terminal holds the initial-terminal seeder off (GA-P3t)
2026-11-11 04:16:34 -08:00
Neil afa471da29 fix(cloud): RA-11 resume race: Restart resumes in the pane
A cloud Restart stopped the pane's host terminal, ensured a --resume in its
leaf, then reconnected. But the pane's own transport reacted to the stop
ending its stream by resubscribing (session.tabs.activate), which woke the
stopped leaf with its ORIGINAL launch before the ensure arrived; the ensure
then adopted that live terminal and the resume was lost (a new
conversation). Seen 3/3 on golden 4020131de0.

- Release the pane's transport before the stop (split releasePaneForRestart
  out of handleRestartPane), so nothing reattaches on its own.
- resumeRemotePaneAgent returns the ensured terminal; on 'adopted' it stops
  that terminal and ensures once more, else fails (Couldn't restart).
- Reconnect only after the host lists that exact terminal live in the
  pane's tab and leaf (bounded 15 s, else Couldn't restart).
- After reconnecting, the pane must bind that handle; any other handle
  shows Couldn't restart. A failed restart reattaches the pane so it is
  never left empty.
2026-11-11 04:15:34 -08:00
Neil d35cce0534 test(cloud): GA-P3t seeder test without a cast 2026-11-11 04:13:07 -08:00
Neil 14f59d060a fix(cloud): GA-P3t one tab on a cloud create — the startup terminal holds the seeder off
A cloud create whose agent launch is planned in the pane (held, or any create the
host didn't spawn) made two host terminals in the same second (real m4air probe,
W-137): the create's startup terminal (ensureWebRuntimeWorktreeTerminalAfterWake)
and a plain one from the session-tabs initial-terminal seeder, which saw the
host's empty first answer and had its own latch. The after-wake create now also
claims the seeder's bootstrap latch, released like the seeder's own (failed: at
once; created: when the host's row is mirrored).
2026-11-11 04:09:04 -08:00
Neil 5272310384 Merge pull request #427 from nwparker/cloud/w6-composer-wait-exit
fix(terminal): Enter sends stop waiting for a launch composer once the agent has exited (P2)
2026-11-11 04:06:46 -08:00
Neil 2fbec8ef2c fix(terminal): an Enter send stops waiting for a launch composer once the agent has exited
A send with enter on a fresh Claude/agent-teams launch waits for the launch composer (up to 8 s). When the launched agent had already exited back to its shell (a turn-less --resume printing 'No conversation found'), the composer never came, so every Enter send waited 8 s and was then refused. The launch composer watch now also watches for the agent's exit (OSC 133 launch finished + shell in front, the same check readiness waits use) and settles at once so the send goes to the shell; the send's own wait also stops when its request is cancelled.
2026-11-11 04:04:43 -08:00
Neil 7b353c4e0f Merge pull request #426 from nwparker/cloud/w6-relaunch-args
fix(agents): host relaunch of a pane reuses its launch args (RA-11d); idempotent exact stop
2026-11-11 04:01:28 -08:00
Neil 09ca7fa3eb Merge pull request #425 from nwparker/cloud/ra11e-send-retry
fix(cloud): RA-11e fresh start is typed reliably; never a quiet bare shell (P1)
2026-11-11 03:47:00 -08:00
Neil 4020131de0 Merge pull request #422 from nwparker/lc2/asleep-mark-after-held-wake
fix(sleep): tabs wake after Wake to continue on the held asleep view (#397 x #399)
2026-11-11 03:44:50 -08:00
Neil 2869e93941 Merge pull request #424 from nwparker/cloud/pc3b-create-focus
fix(cloud): Start focuses the agent's tab on the create path (PC-3b, #415 follow-up)
2026-11-11 03:44:19 -08:00
Neil 5a668bbdaa fix(cloud): RA-11e fresh start is typed reliably; never a quiet bare shell
After a --resume that finds no conversation, the fallback typed the fresh
command with terminal.send { enter: true }. On the host an Enter send waits
for the launched Claude's composer (watchLaunchComposer, 8 s default),
which never comes once Claude exited to the shell, and is then refused:
the 5 s request timed out and nothing was written, leaving a bare shell.

- Send the Enter inside the text (same bytes, no composer gate).
- Treat a refused send as a failed try; 20 s timeout, up to 3 tries, and
  re-read the tail before each retry so nothing is typed twice.
- If every try fails, show Couldn't restart (hostUnresponsive) so the
  person can Try again, instead of leaving the pane quiet.
2026-11-11 03:43:54 -08:00
Neil 269bb70d27 Merge pull request #423 from nwparker/cloud/w6-ensure-resume-sleeping-leaf
fix(agents): Restart's explicit resume runs --resume in the pane, never its old launch (P1)
2026-11-11 03:40:31 -08:00
Neil 27a4254475 fix(cloud): Start focuses the agent's tab when it arrives after the placeholder closes (PC-3b create path)
In the create-with-prompt flow the agent's tab reaches the store after the
held placeholder's close resolves, so focusAgentTab found no tab and did
nothing; the placeholder's neighbour (a plain Terminal) stayed active.
Wait up to 10 s for the agent's tab, and never take focus if the person
picks another tab meanwhile.
2026-11-11 03:40:14 -08:00
Neil e356740984 fix(sleep): browser tabs wake after a wake pressed on the held asleep view, not only on re-activation (d3 smoke follow-up to #397/#399) 2026-11-11 03:39:02 -08:00
Neil dfcb2aa323 fix(agents): an explicit resume into a Restart-stopped pane runs --resume there, not the pane's old launch
Restart stops the pane's PTY (stopExact keepHistory) and asks the host to ensureAgentSession with the pane's provider session and tab/leaf. The stopped PTY still owned the leaf, so the host adopted it and woke it with its original argv: no --resume, a new conversation. When a launch carries a provider session and the leaf's PTY is not running, the host now names it as the stopped owner, so the leaf spawns fresh with the resume command. Live panes are still adopted; plain reconnects (no provider session) still wake the original.
2026-11-11 03:38:06 -08:00
Neil a9938a457b fix(cloud): composer Advanced hides Parent worktree for Orca Cloud; sparse checkout stays (DS-j)
Traced the Orca Cloud create path: sparse checkout IS honoured (cloud provisions in
'orca-worktree' mode; the sparse directories go to the sandbox's own git worktree
create), so Sparse/Full checkout stays. Parent worktree is NOT: every new cloud
workspace is on its own sandbox host and an explicit cross-host parent fails the
create (enforceCreateLineageHostBoundary). So with Run on = Orca Cloud the card
passes no parent handler (the shared AdvancedSection then shows no picker, no
change to it), and a parent picked before switching to Orca Cloud is not sent.
The decision lives in run-on/cloud-advanced-options.ts. Fixtures:
NewWorkspaceComposerAdvancedSection advancedLocal / advancedOrcaCloud.
2026-11-11 03:35:07 -08:00
Neil 7fcf75452c Merge pull request #420 from nwparker/cloud/w2-setup-stepper-web-steps
fix(cloud): setup stepper matches the web (Account · Team · Plan · GitHub); agent glyph in the header (DS-b, NS-04)
2026-11-11 03:32:37 -08:00
Neil 5d9c31bc4c fix(cloud): setup stepper matches the web (Account · Team · Plan · GitHub); agent glyph in the header (DS-b, NS-04 e)
DS-b: the in-app stepper now lists the web's four steps (stablyai/orca-cloud#730):
Team always follows Account (done once signed in, as the web ticks a team made for
you; a team switch keeps its own step), and the plan step is always "Plan" (a
trial is how it gets done, not a step). GitHub ticks when the repository is
readable, unchanged. NS-04 (e): the agent's glyph sits before its name in the
header context line, muted (currentColor, never the coloured mark), aria-hidden.
NS-04 (c) needs no change: the only skip line was the Agent step's italic aside,
and that step no longer renders. Fixtures: CloudSetupPage signedOut, trialPlan,
githubLeft.
2026-11-11 03:30:20 -08:00
Neil 988ed4a4cf Merge pull request #418 from nwparker/cloud/w2-ja30-cloud-home
feat(cloud): JA-30 cloud Home without clutter (filters from 5, first-run invitation, no wordmark over the list)
2026-11-11 03:25:23 -08:00
Neil b9bf98738a Merge pull request #419 from nwparker/cloud/w6-env-stale
feat(cloud): boot-time orcad refresh so environment and older-image workspaces get VM fixes (ENV-STALE, P1)
2026-11-11 03:23:51 -08:00
Neil 5d3cdae414 fix(cloud): JA-30 Home actions shrink to one row in a narrow centre column
design-squad: at 900 wide with both side panels open, Add project / Create
workspace stacked as two large buttons over the cloud list. The row is now
LandingActions (landing-layout.tsx); over the cloud list its column is an
@container and below 600px both buttons take small sizing on one row (wrapping
only if they still can't fit). Fixtures: landing-layout actionsOverCloudList
Wide/Narrow.
2026-11-11 03:23:24 -08:00
Neil 134fc24436 feat(cloud): boot-time orcad refresh so environment and older-image workspaces get VM fixes (ENV-STALE)
Golden source builds publish their orcad + in-VM CLI as a commit-pinned bundle (R2, uploaded by the build VM over a signed PUT; the Worker computes the stored sha256). On every boot and wake, before orcad starts and inside the existing orcad phase, a sandbox whose /opt/orca/runtime/orcad/SOURCE_COMMIT differs from its region's active golden fetches that bundle from the control plane's own host (already on the egress allowlist) with a 10-minute signed URL, verifies the sha256 the control plane passes in, checks the commit and node runtime, and swaps orcad + orca-cli atomically. Any failure keeps the old orcad and boot continues; every outcome is logged (runtime_refresh: outcome, from, to, ms). RUNTIME_REFRESH=off is the kill switch. Dev R2 bucket orca-sandbox-runtime-dev.
2026-11-11 03:21:01 -08:00