orchestkit PR #2004 ยท fix(hooks): issue-reference-checker scope, worktree branch, non-blocking โ type a Bash command + branch state and watch the fixed PreToolUse hook decide. Logic mirrors src/hooks/src/pretool/bash/issue-reference-checker.ts.
cd <path> && โฆ (Bug A). Leave blank to simulate unknown โ falls back to session branch.-m <val>, so curl -m 8 โฆ tripped the commit-message regex. Fixed: gated on \bgit\s+commit\b.ctx.branch (the primary tree). From a worktree it read the wrong branch โ e.g. a date-prefixed docs/2026-05-22-โฆ branch yields issue 2026 (the year!). Fixed: resolve branch from a leading cd.outputStderrWarning โ process.exit(2) inside syncBashDispatcher, killing the whole dispatcher. Fixed: non-blocking additionalContext.