Commit Graph
17522 Commits
Author SHA1 Message Date
Neil 7edec952af test(cloud): DS-b team-switch fixture carries the team detail and Switch action, as the app does 2026-11-11 05:48:26 -08:00
Neil 29cadf9a8d fix(cloud): setup stepper always shows Account · Team · Plan · GitHub; unknown steps pending (DS-b)
Journey re-run on 37dbe597f6: signed out the stepper read Account · Team · Plan
(no GitHub), and a member with no active team read Account · Team · GitHub (no
Plan). #420 only made Team permanent. Now all four always show, in the web's
order; a step the desktop can't judge yet (GitHub before sign-in, Plan while a
team switch is pending) is a neutral pending step. It is display only: the
current step and action still come from the known rows, so a placeholder can
never hold a start. No repository (D3) keeps its single step. Tests for both
repros and the never-holds-a-start case; fixtures signedOutGithubUnknown and
teamSwitchPlanUnknown.
2026-11-11 05:37:24 -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 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 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 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 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 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 aec9fde90d fix(cloud): JA-30 no '0 workspaces' next to the title on an empty list 2026-11-11 03:17:45 -08:00
Neil 07c3c45f92 test(terminal): no type assertion in the reap test state 2026-11-11 03:16:15 -08:00
Neil d3dfd7aff4 Merge pull request #414 from nwparker/cloud/ra11e-fallback-fix
fix(cloud): RA-11e resume backstop watches the relaunched terminal (25 s, ANSI-safe, logged)
2026-11-11 03:13:35 -08:00
Neil 779a0c0738 Merge pull request #415 from nwparker/cloud/pc3b-start-focus-2
fix(cloud): PC-3b Start Claude focuses the agent tab after the placeholder closes
2026-11-11 03:13:31 -08:00
Neil 7a88c3e916 chore(cloud): JA-30 copy in the English catalog 2026-11-11 03:13:25 -08:00
Neil 877bbb2dc6 fix(agents): exact stop is idempotent; a bare host relaunch of a pane reuses its launch args (RA-ORPH follow-up, RA-11d)
terminal.stopExact with targetOnly on a PTY that is already gone now reaps whatever still carries its id and succeeds, or fails agent_survived, instead of a set mismatch, so Try again can finish the job. createAgentSession remembers the explicit agent args and launch preferences of each placed launch (worktree, tab, leaf, agent) and reuses them for a later launch of the same pane that names none.
2026-11-11 03:12:52 -08:00
Neil fc85fa40b0 feat(cloud): JA-30 cloud Home without clutter: filters from 5, a first-run invitation, no wordmark over the list
- Filters (Team/Mine, owner, repo, Running, Archived) and refresh show only with 5+
  workspaces, or while any filter is off its default so it can be undone.
- Empty list: "Start your first cloud workspace" + the glossary line + one
  "New cloud workspace" button (composer on Run on = Orca Cloud). Mine on a team:
  "You don't have any cloud workspaces yet." with the same button.
- Landing: while the cloud list shows, no ORCA wordmark or "Select a workspace…";
  Add project / Create workspace stay as a top row aligned with the list. Upstream's
  plain home is unchanged.
Fixtures: CloudWorkspacesHome emptyTeam, emptyMine, fewWorkspaces, teamList.
2026-11-11 03:11:14 -08:00
Neil 8952fc654a fix(cloud): asleep header note is always the agreed "Read-only copy saved when it went to sleep."
design-squad: the copy kept on this computer said "Read-only copy kept on this
computer." while the cloud one said the agreed text; once asleep it is the agreed
text everywhere. Drops the now-unused locale key.
2026-11-11 03:03:12 -08:00
Neil ffd4a975b8 fix(cloud): PC-3b Start Claude focuses the agent's tab after the placeholder closes
integration-keeper (44b4c2072d, nk-pc3b/4-started): after Start the Claude tab opened but the plain
Terminal stayed active. The agent create did ask for focus, but the held placeholder is closed right
after, and closing the active tab selects its neighbour. When the person started it, the agent's tab
now takes focus once the placeholder is gone; a Renew auto-start still never steals focus.
2026-11-11 03:00:00 -08:00
Neil 3eaf8d64e7 fix(cloud): RA-11e the resume backstop watches the relaunched terminal for 25 s, strips ANSI, never fails to build its command
integration-keeper's smoke of Neil's cut (44b4c2072d): Restart on a turn-less pane ran
'claude --resume 53b983b5…', which printed 'No conversation found' and left a bare shell; the backstop
never relaunched fresh. The watch now keys off the pane's terminal handle (a relaunch may reuse the
host's PTY id), waits up to 25 s (Claude's start on a sandbox plus the pane's re-attach can exceed
10 s), strips ANSI before matching, falls back to the plain launch when the fresh command can't be
built from settings, and logs each step so a miss is diagnosable.
2026-11-11 02:57:09 -08:00
Neil 8a72dba6a3 fix(cloud): asleep terminal copy puts each boot's prompt on its own line, no blank rows above
From design-squad's review of the #410 shot: a respawned terminal's saved tail
had each boot's prompt glued onto one row (with a horizontal scrollbar) above
~300px of never-written rows. The read-only copy now splits a line where a new
'user@host:' prompt starts right after a '$'/'#' prompt, and trims leading and
trailing blank rows. Ordinary output (addresses, $ amounts, blank lines inside)
is untouched. Fixture: CloudWorkspaceOfflineView:terminalAfterWakes.
2026-11-11 02:56:43 -08:00
Neil fd52c450aa Merge pull request #410 from nwparker/cloud/w2-snapshot-one-terminal-per-tab
fix(cloud): the asleep copy keeps one terminal per tab, not one per boot
2026-11-11 02:51:46 -08:00
Neil 4f1af901ef Merge pull request #413 from nwparker/cloud/w6-stop-exact-stragglers
fix(terminal): exact stop reaps every process of the PTY, even ones that left its session (RA-ORPH, P1)
2026-11-11 02:50:41 -08:00