Commit Graph
18310 Commits
Author SHA1 Message Date
Neil 70888d86aa feat(cloud): MFA notice escalates in the last three days, a one-time toast per deadline, badge in the members list 2026-11-12 20:53:17 -08:00
Neil a0836bade0 feat(cloud): MFA notice in the sidebar banner stack instead of the main window shell 2026-11-12 20:51:37 -08:00
Neil f8d8f301a5 feat(cloud): app-level MFA banner in the main window; setup screen where a team resource is refused; no edits to the Home list 2026-11-12 20:49:50 -08:00
Neil 62c606c406 feat(cloud): wire the team MFA banner, setup screen and mfa_required refusal into cloud workspaces and the team page 2026-11-12 20:43:36 -08:00
Neil 3a7d02e4ee feat(cloud): team MFA policy plumbing, banner, blocked screen and Require MFA row (views) 2026-11-12 20:33:26 -08:00
Neil 123ba0572d feat(cloud): MFA status column for team admins and two-factor row in Settings, Account 2026-11-12 20:29:29 -08:00
Neil b986eee372 Merge pull request #595 from nwparker/feat/open-external-split-button
feat(open-external): Copy link split button on sign-in, account, billing and GitHub browser buttons
2026-11-12 20:02:28 -08:00
Neil bfaa2e6418 test(cli): packaged launcher argv compares real paths (macOS resolves the /tmp symlink, Linux does not) (#608) 2026-11-12 19:56:50 -08:00
Neil 12053252dc Merge pull request #582 from nwparker/cloud/gh-list-missing
fix(cloud): the GitHub list is never silently empty; a failed read says so with Retry (GH-LIST-MISSING)
2026-11-12 19:36:37 -08:00
Neil 8f4e25ec5e fix(cloud): SLEEP-IN-PROGRESS (2/2) paired cloud workspaces get the waking overlay, an asleep read-only view and the saving state (#601)
* 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)
2026-11-12 19:26:54 -08:00
Neil 5aa721e324 fix(cloud): PAIRED-ARCHIVE Archive and Unarchive for paired cloud workspaces (hovercard and sidebar menu); paired Delete joins the INT-T1 archive guard (#602) 2026-11-12 19:15:18 -08:00
Neil 4fcc4721ae fix(cloud): SLEEP-IN-PROGRESS (1/2) say the read-only copy is saving until it is in, and say so if it never arrives (#580)
* 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
2026-11-12 18:43:46 -08:00
Neil 63b8b1eed7 fix(cloud): PAIRED-GIT-SETUP a paired row gets the commits-and-pushes-off strip and its Restart; paired card fixtures show Wake/Restart (#593) (#599) 2026-11-12 18:31:29 -08:00
Neil 3bfe3a03fb fix: drop catalog keys the Copy link chevron replaced; no casts in link tests 2026-11-12 18:24:00 -08:00
Neil 87a1f77f63 Merge pull request #568 from nwparker/cloud/paired-held-strips
fix(cloud): PAIRED-HELD-STRIPS paired-from-birth workspaces hold and strip like any Orca Cloud workspace
2026-11-12 18:23:55 -08:00
Neil 10b265d7a8 test: stub the widened hosted client in the GitHub link IPC test 2026-11-12 18:18:51 -08:00
Neil 1c3aa50908 fix(cloud): PAIRED-WAKE (2/2) Wake and Restart for paired cloud workspaces in the panel and hovercard (#593)
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.
2026-11-12 18:18:47 -08:00
Neil 9153d4ee88 Merge remote-tracking branch 'private/cloud/integration' into feat/open-external-split-button
# Conflicts:
#	src/renderer/src/components/orca-cloud/CloudSetupNotices.tsx
#	src/renderer/src/i18n/locales/en.json
2026-11-12 18:15:51 -08:00
Neil 46b41faf7b fix(cloud): CLOUD-ROW-DUP-TAG no Orca Cloud host pill on cloud rows (owned or paired); line 2 stays for the state word (#592) 2026-11-12 17:45:56 -08:00
Neil 1317dce10e fix(cloud): GH-LIST-MISSING review: Retry is a keyboard row with a Loading… state; identity includes the team role
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.
2026-11-12 17:39:46 -08:00
Neil 00be51f267 fix(cloud): the GitHub list is never silently empty; a failed read says so with Retry (GH-LIST-MISSING)
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.
2026-11-12 17:39:44 -08:00
Neil 52e3ed627c Merge pull request #572 from nwparker/cloud/repo-access-refresh
feat(cloud): back from GitHub, the new repository shows up and is picked (REPO-ACCESS-REFRESH)
2026-11-12 17:39:28 -08:00
Neil f356ef8412 Merge pull request #588 from nwparker/create-speed/option-trash-cloud
fix(sidebar): Option shows the trash on cloud workspace rows, owned and paired (OPTION-TRASH-CLOUD)
2026-11-12 17:37:00 -08:00
Neil ce321f0bb5 feat(open-external): Copy link split button on every sign-in, account, billing and GitHub browser hop
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.
2026-11-12 17:36:32 -08:00
Neil 3586ed611e fix(cloud): PAIRED-WAKE opening a paired workspace right after its Sleep wakes it (P0, n38 GATE) (#583)
* 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
2026-11-12 17:34:08 -08:00
Neil 038264f711 fix(cloud): PAIRED-CHROME paired rows get the live cloud mark, state word and hovercard (#569)
* 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
2026-11-12 17:27:38 -08:00
Neil 6f9044ea2c test(cloud): #568 GH-CREATE-SHEET hold test typing 2026-11-12 17:12:28 -08:00
Neil 9a697481f0 Merge private/cloud/integration (ae1127bfd7) into cloud/paired-held-strips: the first agent of a GitHub-only create moves after GH-CREATE-SHEET's hand-off (github-cloud-first-agent.ts), keeping no-prompt launch, worktree wait and FAIL-CLOSED confirmation 2026-11-12 17:05:30 -08:00
Neil f622900065 fix(sidebar): Option shows the trash on cloud workspace rows, owned and paired (OPTION-TRASH-CLOUD)
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.
2026-11-12 16:54:54 -08:00
Neil b89e292ec9 chore(cloud): dev-only probe of the org the Orca Cloud token claims (GH-LIST-MISSING diagnostics)
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.
2026-11-12 16:53:54 -08:00
Neil 9c18966cba Merge pull request #577 from nwparker/cloud/env-origin-toast
fix(cloud): 'Cannot reach remote origin' only after a confirming check, with Check again (ENV-ORIGIN-TOAST)
2026-11-12 16:44:15 -08:00
Neil 4bdcac157a Merge pull request #576 from nwparker/pl/wake-billing-card
fix(cloud): PAIRED-BILLING a wake the plan refused says why, never the code
2026-11-12 16:32:23 -08:00
Neil 4e545d8f36 fix(cloud): REPO-ACCESS-REFRESH review: 'Waiting for GitHub access…', a timeout line with Check again, backing-off re-reads
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.
2026-11-12 16:11:40 -08:00
Neil 1ca6aa9da9 feat(cloud): back from GitHub, the new repository shows up and is picked (REPO-ACCESS-REFRESH)
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.
2026-11-12 16:11:39 -08:00
Neil 636cfcf1f2 copy(cloud): say what an unreachable remote means: 'Pulls and pushes won't work until it can.' (design-squad, ENV-ORIGIN-TOAST) 2026-11-12 16:09:37 -08:00
Neil dedecde23c Merge pull request #575 from nwparker/create-speed/gh-create-sheet
feat(cloud-create): GitHub-only Orca Cloud create shows the full build sheet (GH-CREATE-SHEET)
2026-11-12 16:02:07 -08:00
Neil 62b6349cec test(cloud): fixtures for the can't-reach-GitHub line (ENV-ORIGIN-TOAST) 2026-11-12 16:01:44 -08:00
Neil 0361eb4705 fix(cloud): 'Cannot reach remote origin' only after a confirming check, with Check again (ENV-ORIGIN-TOAST)
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).
2026-11-12 16:00:18 -08:00
Neil a2d49d00a2 fix(cloud): PAIRED-BILLING design-squad: hours used turns overage on here and wakes again; Compare plans
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.
2026-11-12 15:54:54 -08:00
Neil 062d85cec6 fix(cloud): PAIRED-BILLING a wake the plan refused says why, never the code
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.
2026-11-12 15:45:37 -08:00
Neil 00205419f8 fix(cloud): PAIRED-WAKE (1/2) a sleeping paired cloud workspace wakes when opened, on focus and on hover (#571)
* 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
2026-11-12 15:27:56 -08:00
Neil ac06c09040 feat(cloud-create): a GitHub-only Orca Cloud create shows the full build sheet (GH-CREATE-SHEET)
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.
2026-11-12 15:26:26 -08:00
Neil 433add6c42 fix(cloud): copy workspace link through the main-process clipboard (#573)
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.
2026-11-12 15:19:05 -08:00
Neil f6701f1f44 test(cloud): #568 spawn-gate test mock takes the start arguments (typecheck) 2026-11-12 15:17:21 -08:00
Neil 6a9a81e370 Merge remote-tracking branch 'private/cloud/integration' into cloud/paired-held-strips 2026-11-12 15:08:54 -08:00
Neil 049c77b256 fix(cloud): #568 FAIL-CLOSED agent launch on Orca Cloud: main confirms a paired host when the catalog flag lags; no unheld launch when the placeholder fails; GitHub path waits for the cloud confirmation 2026-11-12 15:08:54 -08:00
Neil 09ed99034e fix(cloud): PAIRED-NO-ROW a paired cloud workspace keeps its sidebar row (P0 regression from #562) (#570)
* 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
2026-11-12 15:05:52 -08:00
Neil 77efed3630 fix(cloud): PAIRED-STATUS one status path for paired cloud workspaces (#566)
* 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)
2026-11-12 14:42:59 -08:00
Neil be47d4a366 fix(cloud): PAIRED-HELD-STRIPS a paired-from-birth Orca Cloud workspace holds and strips like any other
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).
2026-11-12 14:30:28 -08:00
Neil 17d0405965 fix(cloud): CHAT-CANCEL-ERROR held structured chats show no launch/session error cards; Cancel keeps the chat held 2026-11-12 14:30:09 -08:00