* fix(cloud): SLEEP-IN-PROGRESS (2/2) a paired cloud workspace shows the waking overlay, its sealed read-only copy with Wake to continue, and the saving state after Sleep
- PairedCloudWorkspaceSurface, mounted from OrcaCloudWorkspaceSurface for paired rows
- the same CloudWakingOverlay (Retry wakes through the control plane, billing copy included)
- asleep: the control plane's sealed snapshot via useCloudReadSnapshot + CloudReadSnapshotView
- Sleep marks a paired copy saving; re-read every 2.5 s until a new-enough copy, failed at the deadline
- useWakeOverlay moved to its own module (shared by owned and paired)
* fix(cloud): SLEEP-IN-PROGRESS (2/2) re-read the sealed copy through the window-visibility interval (recurring-timer ratchet)
* fix(cloud): SLEEP-IN-PROGRESS (1/2) a sleeping cloud workspace says it is saving its read-only copy until the copy is in, and says so if it never arrives
From the Sleep press until a copy at least as new as the press is read back, the row ("Going to
sleep · Saving copy…"), the asleep view and the Files pane show a saving state instead of their
"nothing was saved" lines or an older copy; the view polls every 2.5s meanwhile. No copy within 90s:
"Couldn't save a read-only copy. Your files are safe in the workspace." with Wake. Owned workspaces
(paired ones have no read-only view yet: 2/2). Copy and layout per design-squad.
* chore(cloud): SLEEP-IN-PROGRESS drop the two now-unused localization keys
Restart reaches a paired workspace's sandbox: main's restart resolves a bound pairing
(restartPairedOrNotCloud) and restarts it through the control plane, dropping the bound server's
dead connection so it reconnects, with the same waking > connecting > ready / failed progress as an
owned restart. The panel offers Wake (the sidebar open path, which wakes paired rows since #571/#583)
and Restart on paired rows again; Archive and Move stay hidden until PAIRED-ARCHIVE.
design-squad: arrow keys land on Retry like on any row, Enter runs it, and while it reads it shows
Loading… and can't run twice. Coordinator: the GitHub list (and other team answers) re-read on an
owner/member role switch; tests cover owner → member → owner, then a restart.
A failed first page resolved as an empty listing, cached for 5 minutes per identity, and an empty
list hides the Project picker's GitHub section: after a restart or role change the section was
gone for minutes. A failed read now isn't cached and the section says 'Couldn't load GitHub
repositories. Retry'; an empty answer isn't kept either, so each open asks again.
Every button that opens a URL in the external browser gets a chevron with
"Copy link" that copies the exact URL (minted the same way for lazy links),
for incognito windows or another browser profile.
* fix(cloud): PAIRED-WAKE opening a paired workspace right after its Sleep wakes it (fresh status read; paired Sleep refreshes the row)
n38 GATE: the first open after Sleep sat in "Reconnecting… retrying automatically" with a green
Active dot. wakePairedCloudWorkspaceIfAsleep read status through the 30s cache, and paired Sleep
never refreshed it, so the cache still said "ready" and no wake ran (a later open, past the cache,
woke it). The open now always reads status fresh; paired Sleep re-reads the row's status at once
(Asleep, not Active) and notes it slept here, so a failed read on the next open still wakes it.
* test(cloud): PAIRED-WAKE literal result types in the first-open mocks
* fix(cloud): PAIRED-CHROME paired rows get the live cloud mark, state word and hovercard (actions main can't run for them yet hidden)
* test(cloud): PAIRED-CHROME paired-row hovercard fixtures (running, asleep, menu)
* fix(cloud): PAIRED-CHROME asleep paired card says opening it wakes it (no Wake button until PAIRED-WAKE 2/2); split the card's primary action
Holding Option showed the delete quick action on local worktrees but never on a cloud
workspace's row. The gate (canShowWorkspaceDeleteQuickAction) refused every main
worktree, and a cloud workspace's own row is its sandbox's main checkout. The gate now
takes cloudPrimary (useIsCloudPrimaryRow: owned, or paired via the runtime catalog
or bindings). The live card's DeleteQuickAction (place.deleteQuickAction) reads it, and
the click goes through runWorktreeDelete, whose cloud-primary branch opens the cloud
delete confirmation (requestCloudPrimaryDelete), never Remove Project. A local repo's
primary checkout still gets no trash.
Dev builds only: globalThis.__orcaCloudTokenClaims() in the main process returns { org, orgRole,
sub } from the current sandbox token's payload, never the token. Packaged builds install nothing.
design-squad: the wait says what it waits for, and when it runs out it reads 'No new repository
yet.' with [Check again] (one read, wait again from the same baseline) instead of vanishing.
punchlist-lead: re-reads back off (4, 4, 8, 15, 30 s; about ten per wait, none while away), since
each goes through the control plane to GitHub's installation listing; tests for a hand pick while
waiting (never replaced by a later grant) and for the timeout.
After 'Add a GitHub repository…' the composer waits for GitHub: 'Waiting for GitHub…' under
Project, the list re-reads when the window regains focus and every 4 s while focused (paused when
hidden), for up to 3 minutes. The first repository that wasn't listed before is picked and Run on
follows it. Picking or clearing a repository ends the wait.
The create's environment check runs right after the sandbox answers. A failed
'git ls-remote origin HEAD' (git.fetch) fell through triage to a generic 'check' notice: the
in-workspace Workspace setup toast showed the doctor's bare label with no action. A fresh sandbox
can briefly miss its GitHub credential, so the line now waits for two confirming checks (5 s, then
15 s) and shows only if origin still doesn't answer, as 'This workspace can't reach <repo> on
GitHub right now.' with Check again (re-runs the check, drops the line once it passes).
Hours used: an owner's fix is the create sheet's [Turn on with a $X cap] (billing's default cap; plain
Turn on overage without one), applied in place, then the wake runs again. Plan ended: Compare plans,
the one label for that action (also on the Restart/Sleep failure toast). Drops the private
orcaCloudWorkspace.error.seePlans key it no longer uses.
The waking card showed the control plane's code on a billing refusal (paired: "entitlement_denied";
owned: "Orca Cloud refused the request (entitlement_denied).") and offered Restart, which fails the
same way. Failed wake/restart/unarchive events now carry the plan's refusal (billingDenial), from
main's recipe resume, restart and unarchive and from the paired wake. The card uses the create
sheet's billing words, offers the one fix to an owner or admin (See plans, Raise spend cap, Update
payment method) and tells a member who to ask; running limits keep the shared workspace copy.
* fix(cloud): PAIRED-WAKE (1/2) a sleeping paired cloud workspace wakes when opened (sidebar, Home), on focus and on hover, like an owned one
cloudWorkspaces:wake wakes a paired workspace's sandbox through the control plane (this desktop has
no VM record to resume) and reconnects its bound server at once. Opening its sidebar row wakes it
when asleep (waking overlay, failure card), and Home > Open wakes it before connecting to the saved
pairing. Predictive wake treats a sleeping paired workspace as a candidate with the same preflight
(fresh status + billing caps) and wakes it quietly (coordinator decision). Wake progress never adds
a paired row to the owned ids.
* fix(cloud): PAIRED-WAKE localize the not-paired message; test uses fixed timestamps
* fix(cloud): PAIRED-WAKE design-squad copy for the not-linked wake failure
Starting a cloud workspace from a GitHub repository with no clone here showed only a
'Starting <repo> in Orca Cloud…' toast. It now opens the same build sheet as a cloud
create from a local clone: Start sandbox, Clone repository with git's progress, Open
workspace; the same failure cards and JA-21b billing blocker (plan, hours, spend cap,
payment; members get no See plans); Retry; and Back to draft (composer back on Orca
Cloud with the GitHub repository picked and the prompt kept).
Main: createFromGitHub runs the hosted driver's create path (createSandboxWithProgress,
shared with the owned create): boot plan, create, waitForClone, with the same
[orca-cloud] progress lines streamed on ephemeralVm:provisionEvent under the window's
creation id, the same failure reason lines and codes (hostedCreateFailure), Cancel via
ephemeralVm:cancelProvision, and an Idempotency-Key. The workspace id is fixed per
creation so a Retry sends the same body.
Renderer: the GitHub start is a pending creation with the Orca Cloud recipe and a
githubSource; retryBackgroundWorktreeCreation routes it to its own runner. A Retry
after a lost answer resends the same key (same sandbox back); after an answered failure
it is a new attempt; after a failed open it only opens the sandbox it already has.
The paired workspace has no environment-checks step.
The W-number chip, Home's Copy link, the menu items and the copy-link
shortcut all went through navigator.clipboard.writeText after an awaited
control-plane lookup. Electron rejects that write once the document has
lost focus or user activation (always true from the menu or a shortcut),
so the copy failed with "Couldn't copy the link". Use
window.api.ui.writeClipboardText like every other renderer copy, make the
link lookup never reject (3s cap, sandbox-id link fallback for paired or
offline devices), and keep the error toast for real clipboard failures.
The chip tooltip now also says who the link is for.
* fix(cloud): PAIRED-NO-ROW a paired cloud workspace keeps its sidebar row (paired servers left out of team scoping)
Since #562 a paired "<name> (cloud)" server counts as Orca Cloud, so selectOrcaCloudHostScopeKey
scoped it by team. Its owner is never in cloudAccountIdByEnvironmentId (this desktop's own runtimes
only), so it landed in hiddenHostIds and every row and project of a paired workspace vanished, a
GitHub-only create included (n37 P-paired). Paired servers are left out of that scoping, as before
#562.
* test(cloud): PAIRED-NO-ROW typed repo literal
* fix(cloud): PAIRED-STATUS one status path for paired cloud workspaces (main resolves a bound pairing; store registers paired rows)
getStatus/getArchive take { workspaceId, environmentId? }: main resolves this desktop's own runtime
first, else a paired server bound to a sandbox (findCloudSandbox), never an arbitrary sandbox.
The window registers each paired cloud workspace's own row (main checkout on a server the catalog
marks orcaCloudPaired) in the cloud workspace store's `paired` map, apart from the owned ids, so its
status lands in status[worktreeId] and every status surface reads it unchanged.
* fix(cloud): PAIRED-STATUS read worktrees through selectWorktreesByRepo (workspace-record ratchet)
On a workspace created from a GitHub-only repo (a paired server, no local
runtime record), #562's shared check makes every strip gate pass; two causes
remained:
- orcaCloudSandboxIdFor (main) only searched local ephemeral-VM runtime
records, so D13's workspace Sources read answered not_found and the expired
strip after a revoke never showed; setWorkspaceSource and cloud secrets failed
the same way. It now falls back to the pairing binding (same sandbox id).
- startCloudWorkspaceFromGitHub launched the agent only with a typed prompt and
an already-listed worktree, so a new user who picked Claude never saw
"Claude isn't set up · Set up once". It now starts the chosen agent with no
prompt (once per create), waits up to 90 s for the repo's first worktree, and
if that runs out logs it and says "{{agent}} didn't start because the
workspace was still getting ready…" (not over Settings; dismissed once the
workspace becomes ready).