Commit Graph
23380 Commits
Author SHA1 Message Date
Neil bde0bed3ce fix(sandbox-control): no snapshot leaks on any delete path, and nothing deletes a snapshot still in use
- snapshot-refs.ts: one check for what live things still boot from (goldens of any live status, pool
  images, active environment builds, live workspaces' own snapshots, and a live workspace's boot image
  until it has a snapshot of its own).
- Retired goldens beyond the rollback and deleted environments' builds are marked deleted only after the
  provider delete succeeded (a failed delete used to be marked and leaked for good), and are deferred
  while in use. A new hourly housekeeping step (sweepReleasedSnapshots) retries both.
- Team delete marks the team's environments deleted, so their build snapshots are freed (they leaked).
- Environment prune skips a build a live workspace still boots from.
- Orphan sweeps (per box and project-wide automatic) also respect pool and boot-image references.
- The golden smoke box is non-persistent: it no longer leaves a ~325 MB automatic snapshot behind.
2026-11-14 20:57:17 -08:00
Neil ace88d146c Merge pull request #748 from nwparker/cloud/plans-hint-retry
fix(cloud): console ticket retries once without the billing hint on a 400
2026-11-14 17:29:46 -08:00
Neil c56d801669 fix(cloud): console ticket retries once without the billing hint on a 400
Belt and braces for the capability gate: an auth that advertises console.billing_hint but refuses the fields (rollback, early flag) still mints a ticket, so the console opens signed in without the preselect.
2026-11-14 17:25:32 -08:00
Neil cf7c422a20 Merge pull request #747 from nwparker/cloud/plans-followups
feat(cloud): plans dialog passes the picked plan to the console; blocker copy after Compare plans
2026-11-14 17:24:50 -08:00
Neil 3b2e8b2e57 feat(cloud): plans dialog passes the picked plan to the console; blocker copy after Compare plans
"Continue in browser" sends the plan and billing period picked in the plans dialog with the
console ticket ({page:'billing', plan, interval}) so the web billing page can preselect them. Main
adds the fields only when auth advertises the `console.billing_hint` capability: the ticket route
takes a strict body, and an older auth would refuse them and lose the signed-in landing. The
renderer's hint is re-validated in main (plan id pattern, month|year, billing page only).

The build sheet's no-plan blocker, after Compare plans, no longer says "Finish in your browser":
it says to choose a plan and check again, with See plans to reopen the dialog. Update payment
method keeps going straight to the console.
2026-11-14 17:20:03 -08:00
Neil dbf56b3994 Merge pull request #746 from nwparker/cloud/plans-modal
feat(cloud): plans dialog before the web console; billing serves each plan's card copy
2026-11-14 17:07:40 -08:00
Neil 7b7f4e26d2 test(cloud): plan entry points open the plans dialog 2026-11-14 16:51:57 -08:00
Neil 756a89c83f fix(cloud): plans dialog lint and catalog keys 2026-11-14 16:41:16 -08:00
Neil f2888317b4 feat(cloud): plans dialog before the web console; billing serves each plan's card copy
"Plan & billing", "Upgrade to Orca Cloud", "Choose plan" and every "Compare plans" now open an
in-app plans dialog first: the team's plan and status (trial hours left, active with hours and
seats, payment failed, or no plan with the trial billing offers), then billing's plan cards (Team
with a monthly/annual toggle, Enterprise with contact sales). "Continue in browser" opens the
console's billing page through the existing sign-in ticket. Members see the same plan info with
"Ask a team admin to upgrade" (Plan & billing is back in their account menu, read-only). Read-only:
no checkout, usage history or admin settings return to the desktop.

Everything shown is billing's: names, Stripe prices, seat pricing, feature bullets and trial terms
from GET /v1/plans, now also each plan's tagline, feature-list lead and button label (new optional
catalog `marketing`, unversioned copy, plus `omitFeatures` so Enterprise stops advertising egress
controls). Main's lenient parse keeps a newer or older service safe; without the catalog the
entitlement's offers stand in, and with neither the dialog says plans didn't load and still offers
the console. While billing loads the title is neutral, so a paying team never sees an upsell flash.

Settings > Account's billing row opens the dialog ("View plans"); "Update payment method" still
goes straight to the console.
2026-11-14 16:37:59 -08:00
Neil 0fdef56140 Merge pull request #745 from nwparker/cloud/endpass-p3-routine-cli
fix(cloud): routine run Claude sign-in copy in the CLI (follow-up to #744)
2026-11-14 05:21:50 -08:00
Neil bc7b4e1e04 fix(cloud): routine run sign-in copy for the CLI too (desktop Routines UI is parked)
The desktop's Routines settings are behind CLOUD_ROUTINES_UI_ENABLED=false, so the CLI
(orca cloud routine run) is where people read a run's result. A run that failed with Claude's
own "Not logged in · Please run /login" now says Claude isn't set up for Orca Cloud and where to
set it up, and doesn't repeat the raw summary. The detection moves to src/shared so both surfaces
use one rule.
2026-11-14 05:18:27 -08:00
Neil 3fa3d228bc Merge pull request #744 from nwparker/cloud/endpass-p3-polish
fix(cloud): END-PASS n64 P3 polish (billing row for admins, archived bar, routine sign-in copy, no reattach banner on Sleep/Archive)
2026-11-14 05:14:50 -08:00
Neil b74f8f1a0d fix(cloud): END-PASS n64 P3 polish: Plan & billing for team admins only, archived terminal bar, Claude sign-in copy for routine runs, no reattach banner during a deliberate Sleep/Archive
- Plan & billing (Settings › Account and the account menu, including Upgrade) shows only to an
  owner or admin of the active team: the console's own rule (canManageMembers on
  /console/orgs/:id/billing). Members were offered a row the console then refused.
- An archived workspace's terminal bar says it's archived and offers Unarchive (was: asleep, Wake).
- A routine run whose agent exited with Claude's "Not logged in · Please run /login" says Claude
  isn't set up for Orca Cloud and where to set it up, instead of the CLI's text.
- A Sleep or Archive the person chose holds the terminal reconnect notices from the press until a
  wake starts (or 90 s): a paired workspace's status lags the sleep call, and in that gap a pane
  said "Reattaching terminal · Down for 10 sec".
2026-11-14 05:02:39 -08:00
Neil 01990543e5 Merge pull request #743 from nwparker/fix/cloud-only-name-not-prompt
fix(cloud): GitHub-only composer name is never sent as the agent's prompt (CLOUD-ONLY-NAME-AS-PROMPT)
2026-11-14 04:10:40 -08:00
NeilandClaude a305ac73d9 test(cloud): type the launch mock instead of asserting (CLOUD-ONLY-NAME-AS-PROMPT)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-14 04:05:39 -08:00
NeilandClaude a84137daf1 test(cloud): GitHub-only create requests take name, not prompt (CLOUD-ONLY-NAME-AS-PROMPT)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-14 04:03:37 -08:00
NeilandClaude 565a727018 fix(cloud): the GitHub-only composer's name only names the workspace, never the agent's first prompt (CLOUD-ONLY-NAME-AS-PROMPT)
On Orca Cloud for a GitHub-only project the composer passed its name field as
the create's prompt: it titled the workspace (NAME-DROPPED, #563) but was also
the quickPrompt and the first agent's prompt, and with Blank terminal (agent
null) the default agent was resolved and sent the name as its first message.

- StartFromGitHubRequest / GitHubCreateSource / useCloudOnlyCreate: prompt -> name
- githubCreateRequest: title from the name as before, quickPrompt is empty
- launchFirstCloudAgent: no prompt; a chosen TUI agent starts with none
  (PAIRED-HELD-STRIPS, #568), Blank terminal starts nothing
- Back to draft keeps restoring the typed name

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-14 04:01:42 -08:00
Neil f022f528d4 Merge pull request #742 from nwparker/cloud/billing-plan-started-once
billing: record one billing.plan_started per Checkout
2026-11-14 03:48:03 -08:00
Neil 8104f84b94 billing: record one plan start per Checkout
One Checkout sends checkout.session.completed, customer.subscription.created and invoice.paid,
often concurrently; each that re-read the row before another wrote it saw the plan start and
pushed billing.plan_started with its own 'at', so the event ids differed and the team's audit
log showed it twice. A plan starting or ending now carries a once key (subscription id and
period start), so every racer pushes the same event id and the control plane's INSERT OR IGNORE
keeps one.
2026-11-14 03:45:08 -08:00
Neil d12fcb60e9 Merge pull request #741 from nwparker/cloud/account-admin-entry
Settings: no Team or Enterprise page; Account › Team & admin opens the web console
2026-11-14 03:16:18 -08:00
Neil 48b9dada46 fix(settings): drop the Team and Enterprise settings pages; Account gets one "Team & admin" row to the web console
After #738 both pages were a single "Manage in browser" card. Team and admin now have no desktop
page: Settings › Account shows one row, "Team & admin", that opens the console home through the
single-use ticket, beside the existing Plan & billing row. The account menu keeps Team and
Plan & billing (both open the console). Searching for members, SSO, the audit log or Enterprise
lands on the Account row. The 'cloud-team' and 'cloud-enterprise' settings targets, their search
entries and their strings are removed; nothing else linked to them.
2026-11-14 03:06:23 -08:00
Neil b5939b76ea Merge pull request #738 from nwparker/cloud/strip-admin-ui
feat(cloud): move team, billing and Enterprise admin UI to the web console
2026-11-14 02:39:13 -08:00
Neil 26e2684877 fix(cloud): console handoff opens auth's ticket url ({url, expiresAt}); fallback is <consoleOrigin>/console 2026-11-14 02:21:04 -08:00
Neil 92cbe9f74e feat(cloud): move team, billing and Enterprise admin UI to the web console
Owner decision: paid and admin settings do not belong in the open-source desktop app.
Deletes the Enterprise pane (SSO, domains, SCIM, MFA policy, audit log), the Plan & billing
section and plans dialog (checkout, usage history, plan-feature-copy), and Team management
(members, invites, roles, leave, delete, create), with their hooks, fixtures, tests, i18n keys
and the main/preload/IPC only they used.

Each removed section is now one "Manage in browser" row. Main asks auth for a single-use
console code (POST /v1/desktop/console/ticket {page, orgId?} -> {code}) and opens
<consoleOrigin>/console/<section>?code=... with shell.openExternal; on any failure it opens the
page without a code. Endpoint, field names and origin live in cloud-console-config.ts
(ORCA_CLOUD_CONSOLE_URL overrides the origin, default is the auth origin).

Kept: sign-in, account identity and own MFA row, the team MFA gate/banners, the team switcher,
the roster (presence, names), plan status badge and payment notice, in-context billing
blockers (now "Compare plans" opens the console and re-checks on focus), cloud setup.
2026-11-14 02:21:04 -08:00
Neil 1b3b6b98b4 Merge pull request #739 from nwparker/cloud/billing-console-return
billing: console-started Checkout/Portal return to the console billing page
2026-11-14 02:20:55 -08:00
Neil b9a2ff9896 feat(billing): Checkout and the Customer Portal started from the web console return to its billing page
POST /v1/billing/checkout and /portal accept returnTo: 'console'. The return URL is built from
this Worker's CONSOLE_URL (else the setup pages' auth origin, which forwards /console) and the
caller's own team, never from the request. Desktop-started flows keep the /return handoff page.
2026-11-14 02:18:51 -08:00
Neil f1573ece1c test(billing): use the real help@stably.ai inbox in supportUrl fixtures (orca.dev has no MX) (#740) 2026-11-14 02:01:12 -08:00
Neil 16f12f4d6e fix(plans,settings): list the audit log once on Enterprise; fade audit rows at scrolled edges (#737)
The SSO line said "SSO, SCIM provisioning and audit logs" next to billing's own "Team audit log" line; it now reads "SSO and SCIM provisioning". Copy only, no entitlement change.

The audit log scroller uses the shared useScrollEdgeFades mask: a top fade only once scrolled, a bottom fade only while more is below. The rule and focus ring move to an unmasked frame.
2026-11-13 16:10:44 -08:00
Neil 69aad2aeaa fix(settings): audit log scrolls in place instead of growing the settings page (#735)
* fix(settings): audit log scrolls in place instead of growing the settings page

The rows and Show more sit in a keyboard-focusable region capped at min(24rem, 60vh); the header, export and filters stay above it.

* style: oxfmt

* fix(settings): add the audit scroll label to en.json; move the scroll region to its own file (max-lines)
2026-11-13 15:44:11 -08:00
Neil 613d0d42c2 fix(plans): stop advertising egress controls on the Enterprise plan (#736)
* fix(plans): stop advertising egress controls on the Enterprise plan

No team can choose an egress policy today (SANDBOX_EGRESS_PRESET is operator-wide and open by default), so the plan cards drop the egress_controls line. The catalog feature and entitlements are unchanged.

* style: oxfmt
2026-11-13 15:42:12 -08:00
Neil f65c5b3c81 Merge pull request #734 from nwparker/cloud/premerge-tc-sandbox-control
chore(premerge): gate sandbox-control's own typecheck (clean since #733)
2026-11-13 11:20:41 -08:00
Neil c1acb65ea0 chore(premerge): gate sandbox-control's own typecheck (clean since #733) 2026-11-13 11:18:55 -08:00
Neil 857ca653b0 Merge pull request #733 from nwparker/create-speed/sc-typecheck
fix(cloud): sandbox-control typecheck to zero
2026-11-13 11:18:45 -08:00
Neil 84a776923c docs(cloud): sandbox-control typecheck split pinned by path; README on why raw tsc shows imported diagnostics 2026-11-13 11:16:23 -08:00
Neil ec679a8f52 fix(cloud): sandbox-control typecheck to zero (SANDBOX-CONTROL-TYPECHECK) 2026-11-13 11:14:50 -08:00
Neil f2391aff70 Merge pull request #732 from nwparker/cloud/premerge-cloud-pkg-typecheck
chore(premerge): typecheck each touched cloud/ package that is listed as clean
2026-11-13 11:10:45 -08:00
Neil 6fc2b8951b chore(premerge): typecheck each touched cloud/ package that is listed as clean
The root pnpm typecheck covers no cloud/ package and vitest strips types, so cloud
packages' own type errors went unseen (261 in sandbox-control). premerge-check.sh now
runs the own pnpm typecheck of every touched cloud/apps or cloud/packages package listed
in premerge-typecheck-packages.txt, after installing the cloud workspace and building its
packages. The list holds the 11 packages that are clean today; sandbox-control joins once
its errors are fixed.
2026-11-13 11:08:52 -08:00
Neil 32b21bb4cb Merge pull request #731 from nwparker/cloud/owner-transfer-timing
feat(cloud): TRANSFER-SLOW-N60: a completed owner hand-off logs per-step timings
2026-11-13 11:07:13 -08:00
Neil d20dc4e20a feat(cloud): TRANSFER-SLOW-N60 a completed owner hand-off logs how long each step took 2026-11-13 11:04:44 -08:00
Neil 46f081f336 Merge pull request #703 from nwparker/cloud/g9-claude-key-tail
fix(cloud): G9 never write a real ANTHROPIC_API_KEY tail into ~/.claude.json
2026-11-13 10:33:28 -08:00
Neil 3ec2ff557a fix(cloud): unreachable GitHub repository on a remote-server project says so with More access (UNREACHABLE-REPO-NO-ROUTE) (#730)
* fix(cloud): Orca Cloud on a remote-server project whose GitHub repository it can't reach says so with More access, not the folder wording (UNREACHABLE-REPO-NO-ROUTE)

* fix(cloud): UNREACHABLE-REPO-NO-ROUTE design-squad: 'Give Orca access' link, muted (not red) precondition line, fixture

* test(cloud): OrcaCloudNeedsRepoSubmit fixtures press the footer's Create

* fix(cloud): UNREACHABLE-REPO-NO-ROUTE the Project field's ring is amber while Orca Cloud waits for a GitHub repository (design-squad); aria-invalid kept

* fix(cloud): UNREACHABLE-REPO-NO-ROUTE ring classes stay literal (localization audit), drop the unreferenced remoteServerDetail key
2026-11-13 10:06:25 -08:00
Neil 438982b0ef fix(cloud): a refused create's row offers Retry and Dismiss, and the next create replaces it (REFUSED-CREATE-ROW-STICKY) (#729)
* fix(cloud): a refused create's row offers Retry and Dismiss, and a new create replaces it (REFUSED-CREATE-ROW-STICKY)

* fix(cloud): REFUSED-CREATE-ROW-STICKY a billing or limit refusal's cloud glyph is amber, a real failure stays red (design-squad)
2026-11-13 09:34:57 -08:00
Neil ea58d9ee1e fix(cloud): a project cloned only on a remote server offers Orca Cloud in Run on (RUNON-NO-NEW-SANDBOX) (#727)
* fix(cloud): a project cloned only on a remote server offers Orca Cloud in Run on and starts it from its GitHub repository (RUNON-NO-NEW-SANDBOX)

* fix(cloud): RUNON-NO-NEW-SANDBOX design-squad wording for an unreachable repository
2026-11-13 09:20:23 -08:00
Neil 8e866e83ef Merge pull request #728 from nwparker/cloud/transfer-toast-other-device
fix(cloud): TRANSFER-TOAST-OTHER-DEVICE: no echo of your own owner change on other devices
2026-11-13 09:18:31 -08:00
Neil 1b0f087214 fix(cloud): TRANSFER-TOAST-OTHER-DEVICE the 'You made X the owner' notice shows only on the device that made the change 2026-11-13 09:14:00 -08:00
Neil 3f2e7e84be fix(cloud): a team switch moves off the old team's paired cloud workspace, and the status bar counts only this team's hosts (TEAM-SWITCH-STALE-PANE) (#726)
The team-switch leave fired only for an owned workspace's host going from
the team's (+) to hidden (-); a paired one's host is ~ since #690, so the
main pane kept showing another team's workspace after the switch (n57).
It leaves for ~ to - too. The status bar's host list and count now drop
another team's cloud servers, the same scope as the sidebar (#722).
2026-11-13 09:11:37 -08:00
Neil a58988ea8b fix(cloud): Follow and the Following section use the workspace's current owner, so after a hand-off the new owner gets no Follow (FOLLOW-OWN-AFTER-TRANSFER) (#725) 2026-11-13 08:45:00 -08:00
Neil ea5bc46199 fix(cloud): a paired cloud workspace's terminal recovery knows it is asleep or waking (ASLEEP-SR-RECONNECTING) (#724)
useCloudRecoveryContext counted only owned workspaces as cloud, so for a
paired one its asleep and waking states were unknown to the recovery
notices: the remote-server outage notice ('Reconnecting to ... (cloud)',
role=status, aria-live=polite) stayed up under the asleep view, where a
screen reader would announce it (n56 DOM dump). Paired rows count as cloud
there too, so the notice stays silent while asleep or waking.
2026-11-13 08:43:00 -08:00
Neil 060e47ba0f fix(cloud): opening from the picker waits for the workspace's row before revealing it (PICKER-OPEN-INTERMITTENT) (#723)
Right after pairing, the server can answer the project and worktree reads
before it lists the workspace's own row; the row lands a moment later.
connectAndReveal looked once, found nothing, toasted 'is connected' and
returned, so the picker closed and nothing was selected (n48, n55). It now
waits a bounded 15 s for the row (the picker spinner and #710's Opening
toast cover the wait), then reveals it as before.
2026-11-13 08:29:09 -08:00
Neil f5ed624a93 Merge pull request #721 from nwparker/cloud/owner-transfer-desktop
feat(cloud): OWNER-TRANSFER desktop: confirmation, notices, Owner changed chip, audit wording
2026-11-13 08:24:58 -08:00