Files
orca/cloud/apps
Neil 027fc090d5 fix(sandbox-control): deadlines on every Vercel API call; slow grants log their phases
Two dev failures (n70/n71) were the Worker waiting on a stalled Vercel API connection with no
client-side deadline: a create spent ~2 min before its write-ahead insert ("Start sandbox" stuck),
and POST /v1/team/workspaces/:id/grants (opening a new workspace on this computer) hung its full
120 s (wallTime 119995 ms, no response) although its VM command is bounded at 45 s.

- Every provider request now has a deadline: 30 s for lookups and updates, 60 s to boot a VM,
  5 min to snapshot, a command's own timeout + 20 s, and 3 h only for an explicit unbounded wait
  on a build's exit. A stall becomes a provider error the callers already handle (grant_failed,
  the create fallback), instead of an open-ended wait.
- issueGrant logs its phases (session, grant command, member git) when it takes over 10 s, and
  logs grant_failed with its timings and error, so the next slow open names its phase.
2026-11-14 23:14:24 -08:00
..