Skip to content

Fix Orca CLI runtime bootstrap recovery - #324

Merged
Jinwoo-H merged 2 commits into
mainfrom
Jinwoo-H/runtime-bootstrap-recovery-impl
Apr 6, 2026
Merged

Jinwoo-H merged 2 commits into
mainfrom
Jinwoo-H/runtime-bootstrap-recovery-impl

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • isolate pnpm dev Orca runs under orca-dev so they no longer clobber packaged Orca runtime bootstrap state
  • publish per-runtime bootstrap records alongside orca-runtime.json and teach the CLI to recover from stale primary metadata
  • add tests for dev path isolation, runtime record publication, stale bootstrap status, and recovery behavior

Verification

  • pnpm exec vitest run src/main/runtime/runtime-metadata.test.ts src/main/runtime/runtime-rpc.test.ts src/main/startup/configure-process.test.ts src/cli/runtime-client.test.ts
  • pnpm exec tsc --noEmit -p tsconfig.node.json --composite false
  • pnpm exec tsc --noEmit -p tsconfig.cli.json --composite false
  • manually verified that running pnpm dev from this branch writes runtime state under ~/Library/Application Support/orca-dev while the public orca status --json for the packaged app remains healthy
  • manually verified a packaged-style branch build recovers after orca-runtime.json is deliberately overwritten with stale data, and rewrites the primary pointer back to the live runtime record

Jinwoo-H and others added 2 commits April 6, 2026 03:18
The per-runtime record system added complexity for a recovery scenario
that doesn't practically occur — the primary metadata file is always
correct after a successful app startup, and when it's stale there's no
live runtime to recover to. Dev path isolation (orca-dev) is sufficient
to prevent the pnpm dev clobber that motivated the original design.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@Jinwoo-H
Jinwoo-H marked this pull request as ready for review April 6, 2026 18:29
@Jinwoo-H
Jinwoo-H merged commit 1e95418 into main Apr 6, 2026
2 checks passed
@Jinwoo-H
Jinwoo-H deleted the Jinwoo-H/runtime-bootstrap-recovery-impl branch April 6, 2026 20:49
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant