mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
* fix(vm-recipes): record each VM before create runs so a quit or crash can't leak it Orca now saves a "provisioning" record for a recipe VM before running its create command, and updates it when create finishes. If Orca quits or crashes mid-create, or create fails without returning a result, the VM stays listed in Settings > Cloud VMs as Failed with its instance id, so the user can run Cleanup (destroy gets the instance id) or remove it from the list. On startup, provisioning records with no create running are marked as interrupted. Records without a recipe result live in a separate file that older builds never read, so downgrading keeps working. Records also store the repo path so Cleanup, Copy command, suspend and resume still work after the repo is removed or re-added under a new id (#17293). * fix(vm-recipes): keep no runtime row when create is cancelled or rejected before its script starts * fix(vm-recipes): harden write-ahead records from review - Never overwrite a provisioning-records file this build cannot read; refuse new records instead. - Remove the provisioning-records file when empty instead of rewriting it on every store write. - Only fall back to the saved repo path while it still defines the same recipe. - Don't let Cleanup or Attach act on a create that is still running or never returned a result. - Show Provisioning before Cleanup disabled; stamp running records with the save time. * fix(vm-recipes): keep new store code off direct sync fs calls and render-path translate * fix(vm-recipes): detect a missing provisioning-records file without a type assertion