๐Ÿ”Ž Issue-Reference-Checker โ€” interactive verdict simulator

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.

Only used when the command starts with cd <path> && โ€ฆ (Bug A). Leave blank to simulate unknown โ†’ falls back to session branch.

The 3 bugs #2004 fixes

Bug C โ€” over-broad firing
Old hook matched any -m <val>, so curl -m 8 โ€ฆ tripped the commit-message regex. Fixed: gated on \bgit\s+commit\b.
Bug A โ€” wrong branch in worktrees
Old hook always used 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.
Bug B โ€” crashed the dispatcher
Old hook called outputStderrWarning โ†’ process.exit(2) inside syncBashDispatcher, killing the whole dispatcher. Fixed: non-blocking additionalContext.

Evaluation trace (fixed hook)

Old vs fixed โ€” this command

Prompt