Commit Graph
22966 Commits
Author SHA1 Message Date
Neil a99ae6d512 fix(cloud): ENTERPRISE-AUDIT lint gates: fixture data filename, no cast in the category filter, fixed clock in the pane test 2026-11-12 20:52:30 -08:00
Neil c8e56c2e26 fix(cloud): ENTERPRISE-AUDIT design review: one Contact sales per page, no upsell for an Enterprise team, Former member; API keys pane test for non-Enterprise teams 2026-11-12 20:45:04 -08:00
Neil 4e7a04c50a feat(cloud): ENTERPRISE-AUDIT (2/2) Settings > Enterprise with the team audit log; remove Recent activity 2026-11-12 20:36:13 -08:00
Neil 45aefab3e8 Merge pull request #606 from nwparker/pl/nameless-copy
fix(cloud): NAMELESS-COPY a nameless cloud workspace gets its own sentences
2026-11-12 20:07:01 -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 ccc8235684 fix(cloud): NAMELESS-COPY a nameless cloud workspace gets its own sentences, never "This workspace" mid-template
Waking card, owned and paired surfaces, the asleep view and the Sleep-failed toast spliced "This
workspace" into {{name}} templates ("Couldn’t wake This workspace", "Waking This workspace.").
cloud-workspace-name-copy.ts gives each sentence an unnamed variant ("Couldn’t wake this
workspace", "Couldn’t put this workspace to sleep", "Waking this workspace."…) and headings read
"Cloud workspace". Drops the two private fallback keys it replaced.
2026-11-12 19:34:27 -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 01091ab42c Merge pull request #604 from nwparker/cloud/sec3-kek-rotation
feat(cloud): KEK rotation re-wraps stored secrets (SEC-3)
2026-11-12 19:20:56 -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 af554dd1ab feat(cloud): KEK rotation re-wraps stored secrets (SEC-3)
Operator routes GET /v1/internal/secrets/kek and POST /v1/internal/secrets/rewrap
move every envelope-encrypted row (secrets, agent_credentials, github_user_tokens)
from a retired KEK to the active one: idempotent, resumable, conditional writes,
counts-only logs. A v2 row format behind SECRETS_SEAL_FORMAT=v2 (default v1)
keeps the KEK id out of the value layer's AAD so rotation re-wraps data keys
without decrypting values. Adds the KMS design doc.
2026-11-12 19:06:23 -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 dc756699cf Merge pull request #596 from nwparker/cloud/premerge-realpath-tmp
fix(premerge): resolve TMPDIR to its realpath (macOS /tmp -> /private/tmp)
2026-11-12 18:02:54 -08:00
Neil 8cf078076f fix(premerge): resolve TMPDIR to its realpath (macOS /tmp -> /private/tmp)
packaged-cli-assets' macOS launcher test compares an os.tmpdir()-based path
with the realpath the launcher reports, so it failed in the gate on any PR
selecting it (#574 batch 8, parallel and serial). Export a realpath'd TMPDIR
so the gate environment matches what child processes see.
2026-11-12 17:59:43 -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 38b86db579 Merge pull request #587 from nwparker/pl/cloud-lock-jose
fix(cloud): CLOUD-LOCK-JOSE repair cloud/pnpm-lock.yaml so a frozen install passes
2026-11-12 17:43:14 -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 db969be006 Merge pull request #586 from nwparker/cloud/dev-token-org-claim
chore(cloud): dev-only probe of the org the Orca Cloud token claims (GH-LIST-MISSING)
2026-11-12 17:24:22 -08:00
Neil 1603d99434 Merge pull request #590 from nwparker/cloud/premerge-serial-retry
fix(premerge): re-run a failed vitest batch once serially before failing the gate
2026-11-12 17:16:05 -08:00
Neil 6f9044ea2c test(cloud): #568 GH-CREATE-SHEET hold test typing 2026-11-12 17:12:28 -08:00
Neil b16f430738 Merge pull request #589 from nwparker/cloud/w6-iat-backdate
fix(cloud): IAT-BACKDATE-GAP member-change/removal checks allow for auth's 30 s iat backdate
2026-11-12 17:08:32 -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 2f5e89cc35 Merge pull request #585 from nwparker/cloud/w6-vm-scripts-stamp
fix(sandbox-control): never install older VM scripts over a newer golden (VM-SCRIPTS-DOWNGRADE)
2026-11-12 17:04:27 -08:00
Neil 63c4d367ef fix(cloud): IAT-BACKDATE-GAP member-change and removal checks compare the mint time (auth backdates iat 30 s); harness mints like auth 2026-11-12 16:59:25 -08:00
Neil 7aea563b59 fix(premerge): re-run a failed vitest batch once serially before failing the gate
#574 (deletes widely imported card files) selects ~52 batches; batch 1 failed on
three Electron browser-extension tests that pass alone and in full-suite runs.
A failed batch is now re-run once with --maxWorkers=1 and passes only if fully
clean (set -e), logged as 'failed in parallel, passed serially'. A real failure
still fails the gate.
2026-11-12 16:58:54 -08:00
Neil ae1127bfd7 Merge pull request #584 from nwparker/cloud/w6-org-mismatch
fix(cloud): ORG-TOKEN-STALE Worker backstop (x-orca-org 409 org_mismatch; stale_token on create/secrets/GitHub)
2026-11-12 16:57:52 -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 a0481d93a2 fix(cloud): CLOUD-LOCK-JOSE repair cloud/pnpm-lock.yaml so a frozen install passes
The lockfile still listed apps/eval (renamed apps/acceptance) and pinned jose 6.2.13 in three importers
while only jose@6.2.16 was in packages (a bad merge), so pnpm install --frozen-lockfile failed. Ran
pnpm install --fix-lockfile --lockfile-only: importer apps/eval -> apps/acceptance, jose -> 6.2.16
(the one already locked; satisfies ^6.2.13), two orphaned packages dropped. No other version changes.
2026-11-12 16:54:47 -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 018d81b096 fix(sandbox-control): never install older VM scripts over a newer golden (VM-SCRIPTS-DOWNGRADE)
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.
2026-11-12 16:52:50 -08:00
Neil 34d86a539a fix(cloud): stale_token on create/secrets/GitHub allows for auth's 30 s iat backdate, so the desktop's one re-mint succeeds 2026-11-12 16:50:53 -08:00
Neil 006676a59b fix(cloud): ORG-TOKEN-STALE Worker backstop: x-orca-org mismatch -> 409 org_mismatch; role-changed token -> 401 stale_token on create, secrets and GitHub 2026-11-12 16:49:00 -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 54a5cd5f56 Merge pull request #579 from nwparker/cloud/w6-push-notfound
fix(cloud): GitHub not-found on push/fetch: check the name, or install the App if private
2026-11-12 16:37:03 -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 57649ed582 Merge pull request #581 from nwparker/cloud/premerge-e2big
fix(premerge): run targeted vitest files in batches (E2BIG on wide PRs)
2026-11-12 16:21:06 -08:00
Neil 1fe5573222 fix(premerge): run targeted vitest files in batches (E2BIG on wide PRs like #574)
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.
2026-11-12 16:18:42 -08:00