Files
orca/cloud/apps
Neil 5a895dcedc feat(cloud): CREATE-GH-STEP GitHub access step in the create wizard
Ask for Orca GitHub App access while the sandbox starts, not in a toast afterwards.

Server (sandbox-control):
- GET /v1/github/repo-access answers `push`: ok | not_installed | repo_not_selected |
  not_connected, with `configureUrl` (the installation's settings page) for repo_not_selected.
  A public repo that can't push now gets an install URL too.
- GitHub installation lookups (repo and new owner lookup) cached in D1 (migration 0061):
  found 60 s, 404 15 s, dropped by installation / installation_repositories webhooks and the
  setup return. The owner lookup never holds the answer (3 s cap, errors read as not_installed).

Desktop:
- "GitHub access" row after Start sandbox, checked when the create starts (parallel, so no
  latency when access is fine). Missing: Install GitHub App / Add repository on GitHub /
  Copy request for an owner, plus Skip for now ("You can pull; pushes need access later").
  Polls (2 s for 3 min, then 10 s; on focus) and auto-advances on grant.
- The create holds before Open workspace only while the step asks and the sheet is on screen.
- Skip remembered per repo on this device; later creates show it skipped (Set up) without
  holding; forgotten once the repo has access.
- A grant that lands after the sandbox started calls applyCloudGitHubAccessToSandbox, a stub
  until gh-access's live refresh lands.
2026-11-15 00:25:15 -08:00
..