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.
- Mint body {orgId} (null for personal); fall back to {} on 400 from older auth.
- Decode the minted token's org claim; never cache a wrong-team token, re-mint once,
then fail with "Couldn't switch to {team}. Sign out and back in."
- selectCloudOrg refreshes the session before publishing activeOrgId; refresh errors
surface; the switch bumps a token epoch that drops cached sandbox tokens.
- The token epoch also bumps on any membership/role change in a saved session and on
member role change/removal.
- Control-plane fetch wrapper (all desktop clients) sends x-orca-org: <orgId|user>; on
409 org_mismatch or 401/403 stale_token it invalidates, re-mints once and retries once.
Co-Authored-By: Claude <noreply@anthropic.com>
- cloud-transfer-steps runs git through gitExecFileAsync (no direct child_process); VM replies parsed with zod.
- Casts replaced by types, guards and zod across hosted-sandbox, cloud-api, cloud-api settings and tests.
- Offline cache and message-queue store use node:fs/promises (main-sync-fs ratchet); the offline service's
30 s setInterval becomes a backing-off beat that runs only while prompts are queued; renderer intervals use
installWindowVisibilityInterval.
- Flaky-test gates: fixed timestamps, vi.waitFor, no sleeps in cloud-message-queue/cloud-transfer tests.
- shadcn restyles become primitive variants (Skeleton shape/motion, Button default-held, Textarea compact/bare,
InlineError toast layout, Popover focusRing); exhaustive switch; derived pending state in the run-target hook.
- Localization: routine labels/placeholders and 'Orca Cloud is unavailable.' through t(); cloudSecrets plurals
pass the singular as defaultValue_one.
- config/scripts/cloud-integration/premerge-check.sh: merge-into-integration gate (typecheck + full lint + tests).