Files
orca/cloud/apps/sandbox-control
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
..

sandbox-control

The Orca Cloud control plane Worker: workspace lifecycle, the egress credential proxy, environment builds and the golden image. Its routes are listed at the top of src/index.ts.

Typecheck

pnpm typecheck runs scripts/typecheck.mjs. It fails on any TypeScript diagnostic in this package's own files, and on any diagnostic without a file (a config error).

Why a raw tsc --noEmit shows about 247 diagnostics. The Worker imports desktop code from src/shared (wire types, parsers), so tsc checks those files under this package's options:

  • noUncheckedIndexedAccess, which the desktop doesn't use, accounts for about 239;
  • the Workers globals, which lack the desktop's window and MessageChannel, account for the rest.

TypeScript can't apply options per file. Those files are type-checked by the root (desktop) typecheck under their own config. So the script counts them, and prints the count on every run so a jump is visible, but doesn't fail on them.

Why there's an xterm stub. Desktop settings types import ITheme from @xterm/xterm, whose typings pull in the DOM library. DOM's Headers, streams and crypto clash with @cloudflare/workers-types. tsconfig.json paths maps that import to types/xterm-theme.d.ts, the theme shape only.