The generator now emits VM_SCRIPTS_HASH and a monotonic VM_SCRIPTS_STAMP
(kept while the scripts are unchanged; max(previous + 1, now) on a change).
Provisioning records the stamp in /opt/orca/bin/.scripts-stamp (source
builds use the fetched commit's stamp), installEntryPoints writes the
Worker's, and ensureEntryPoints probes stamp + marker in one command and
skips images whose stamp is newer than the Worker's. Golden refreshes use
ensureEntryPoints too, so a lagging Worker cannot bake older scripts into
a refreshed golden.
A PR that deletes or changes widely imported modules selects hundreds of
test files; passing them all to one vitest spawn failed with E2BIG. Run them
in batches of PREMERGE_TEST_BATCH (default 150); every batch must pass, so
the gate and the premerge OK record are unchanged.
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)
Sleep on a paired cloud workspace's own row (no local VM record) now stops its sandbox via
cloudWorkspaces.sleep(sandboxId), so it stops billing; failures reuse the cloud sleep toast.
useIsCloudHostRow / isCloudPrimaryRowNow also read the runtime catalog's orcaCloudPaired mark,
so a GitHub-only create loses its "primary" badge and gets "Delete workspace…" and Sleep without
waiting for the pairing bindings to load.
The proof's first restart showed "couldn't check your sign-in" on a chat whose
account read returned 'none' a moment later: a hold restored before the read
landed stayed 'unread'. The account watch now turns it into the read's answer
(isn't set up / expired / covered); it still never starts.
* fix(cloud): PAIRED-AWARE paired Orca Cloud servers count as Orca Cloud everywhere (catalog marks bound servers; shared check and sandbox map include them)
* fix(cloud): PAIRED-AWARE paired-server mark held in memory from bindings reads and writes (no sync fs on main); catalog republishes on change
- holdCloudAgentLaunch registers its outcome before awaiting the account read,
so startup and the launch's retry asking at once share one hold (no orphaned
hold, no hung launch). resumeChat leaves a hold the retry already owns.
- joinedSessions is marked only when the joined hold was put back at startup.
- useCloudHeldChatUnavailable hides only the not-signed-in verdict.
- cloud-structured-held-launch-memory: one record per held structured chat
(session, workspace, environment, agent), per Orca profile; never prompts
or secrets; bounded, ages out.
- holdStructuredCloudLaunch remembers a chat while it holds and forgets it on
settle; a chat with a record holds as restored (a failed or covered read
waits as awaitingStart, never creates signed out); a launch joins a hold
already placed for its key (joinCloudAgentHold) instead of holding twice.
In-session launches are unchanged.
- cloud-held-launch-resume: at the host subscription, each held chat's hold is
put back as soon as its tab is in the store, whatever becomes of its
launch's retry (probes that throw leave the hold and strip up). If no retry
joined it, Start retries the launch once and Cancel abandons it.
- While a chat is held on its cloud strip, the host's not-signed-in verdict is
the strip's to explain (useCloudHeldChatUnavailable in the structured pane
notices); unheld chats keep the generic notice.
- DUP-EXPIRED-STRIP: CloudRunningStripPortal yields to a tab-key hold too, so
a host-published held strip never stacks with the running strip.
composer-redo's #555 note: cloudAgentHoldReason returns null for killSwitch and
unavailable, so the account watch started an expired hold while the agent was
paused or withdrawn. Proceed only when coverage is 'account' or 'key'.
Tests: kill switch keeps it held, a renewal then starts it; the in-session
cases move to their own describe.
holdCloudAgentLaunch's account watch treated any change away from 'expired'
as a renewal, so removing the credential ('none' -> notSetUp) started the
agent with nothing covering it. Proceed only when the account now covers the
agent; a removed sign-in turns the hold into the one-time setup.