Description
rtk doesn't work on PreToolUse-hook
To Reproduce
WHAT I DID
- installed headroom
- i replaced original command for
PreToolUse in ~/.claude/settings.json to be sure that rtk in PATH
rtk hook claude
to
echo $PATH > /Users/user/claude_hook_path.log
in log i got multiple paths, including those, where i created symlink for rtk manually.
!! so rtk is in the PATH !!
- i reverted back
PreToolUse command to rtk hook claude
- restarted
claude (wrapped by headroom)
- run
ls
- receive error
Listed 1 directory
⎿ PreToolUse:Bash hook error
⎿ Failed with non-blocking status code: [rtk: No such file or directory (os error 2)]
Expected Behavior
PreToolUse-hook should work without error
Actual Behavior
i see error [rtk: No such file or directory (os error 2)]
Environment
% headroom -v
headroom, version 0.28.0
- OS: macOS 15.7.2
- LLM Provider: Claude
Description
rtkdoesn't work onPreToolUse-hookTo Reproduce
WHAT I DID
PreToolUsein~/.claude/settings.jsonto be sure thatrtkinPATHrtk hook claudeto
echo $PATH > /Users/user/claude_hook_path.login log i got multiple paths, including those, where i created symlink for
rtkmanually.!! so
rtkis in thePATH!!PreToolUsecommand tortk hook claudeclaude(wrapped byheadroom)lsExpected Behavior
PreToolUse-hook should work without errorActual Behavior
i see error
[rtk: No such file or directory (os error 2)]Environment