Files
orca/cloud/apps
Neil 4cb5ffdb3e fix(cloud): LIVE-GIT-ACCESS a GitHub App install reaches a running workspace without a restart
Neil installed the Orca GitHub App on stablyai, and "Orca Cloud can't push to stablyai/orca yet"
with Check again never cleared: a running VM only got the App's repo token at boot (policy route +
the git placeholder header), so Check again re-ran a check that could never pass.

- sandbox-control: POST /v1/sandboxes/:id/git/access (owner) mints the repo token, swaps it into
  the live egress policy, sets the VM git's placeholder header, and records the token expiry.
  Answers applied, or not_installed / not_running / not_github. Idempotent.
- Desktop: Check again on the push and can't-reach lines, the poll after Install, and focus
  rechecks apply the live refresh first, then re-run the check. If the App reaches the repo and
  the check still fails after that, the line says "Restart the workspace to use the new access"
  with Restart: never an endless Check again.
- No installation cache to go stale on our side: tokenForRepo caches minted tokens only.
2026-11-15 00:32:45 -08:00
..