Skip to content

rtk: No such file or directory (os error 2) #1955

Description

@lon9man

Description

rtk doesn't work on PreToolUse-hook

To Reproduce

WHAT I DID

  1. installed headroom
  2. 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 !!

  1. i reverted back PreToolUse command to rtk hook claude
  2. restarted claude (wrapped by headroom)
  3. run ls
  4. 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 version:
% headroom -v
headroom, version 0.28.0
  • OS: macOS 15.7.2
  • LLM Provider: Claude

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions