Skip to content

fix(orca): invoke the runner via the worktree-local bin in the archive hook#285

Merged
chhoumann merged 1 commit into
masterfrom
fix/orca-hook-local-bin
Jul 10, 2026
Merged

fix(orca): invoke the runner via the worktree-local bin in the archive hook#285
chhoumann merged 1 commit into
masterfrom
fix/orca-hook-local-bin

Conversation

@chhoumann

Copy link
Copy Markdown
Owner

Follow-up to #283. Orca runs lifecycle hooks with a non-login GUI PATH where the npm shim is often absent, so the archive hook's npm exec obsidian-e2e -- stop could fail and be silently swallowed by || true, leaking the worktree's Obsidian process tree and /tmp profile.

The hook now calls the worktree-local node_modules/.bin/obsidian-e2e directly. That launcher is POSIX sh and needs only node, which the existing command -v node guard already checks. Verified under a clean env -i PATH=/usr/bin:/bin:<node dir> environment: the bin resolves and performs the stop (dry-run).

Same fix already landed in quickadd (ca29a8a7) and metaedit after a Codex review flagged it there.

Housekeeping note: this commit was originally pushed to the #283 branch in a race with its merge (the push recreated the just-auto-deleted branch); that stray branch has been deleted and this PR carries the fix cleanly on master.

…e hook

Orca runs hooks with a non-login GUI PATH where the npm shim is often
absent, so `npm exec obsidian-e2e` could fail and be swallowed by
`|| true`, leaking the worktree's Obsidian instance. The local
node_modules/.bin launcher is POSIX sh and needs only node, which the
existing guard already checks. Mirrors quickadd ca29a8a7.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying podnotes with  Cloudflare Pages  Cloudflare Pages

Latest commit: ce31569
Status: ✅  Deploy successful!
Preview URL: https://a5426bb9.podnotes.pages.dev
Branch Preview URL: https://fix-orca-hook-local-bin.podnotes.pages.dev

View logs

@chhoumann

Copy link
Copy Markdown
Owner Author

All CI checks are green (Test, CodeQL, Analyze x2, Cloudflare Pages, Graphite AI Reviews). No open review threads and no changes requested. Verified the one-line orca.yaml change locally: the worktree-local launcher node_modules/.bin/obsidian-e2e resolves (symlink to obsidian-e2e/dist/runner/bin.mjs), the file is correctly formatted (oxfmt --check passes), and it's valid YAML. Ready for your merge.

@chhoumann chhoumann merged commit dd50552 into master Jul 10, 2026
6 checks passed
@chhoumann chhoumann deleted the fix/orca-hook-local-bin branch July 10, 2026 21:22
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