mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 18:37:24 +00:00
The first create of a repo that no environment of the account lists makes a default environment for it (just the repo, cloned blobless, no install script) and builds it in the background with the existing environment build pipeline (EnvironmentBuildRunner). Later creates boot from its active build and fetch only what changed, in the background, shown as 'Update repository' with git's real progress. - environments.kind 'org' | 'auto' + last_used_at (migration 0049, applied to dev); an admin's edit adopts an auto environment; an admin environment listing the repo always wins - auto environments unused for 14 days are deleted with their snapshots (cron); per account only - golden refresh, staleness, pruning and the warm pool apply as for any environment - the caller's machine size stands for auto environments; an explicit other region skips them - AUTO_ENVIRONMENTS=off disables it - desktop: feature repo-update, 'Update repository' / 'Fetching changes…' / sidebar 'Updating the repository…' Measured on dev (stablyai/orca, staging OWNER): before 6 s to ready + 58 s clone; the background build took 79 s; after, ready in 6.6-8.7 s with the repo current 0.7 s later (7.4-9.4 s total).