[GH-ISSUE #519] Fix absolute path in windows hooks #178

Closed
opened 2026-03-02 04:12:38 +03:00 by kerem · 0 comments
Owner

Originally created by @svarlamov on GitHub (Feb 13, 2026).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/519

Getting reports that we're adding the path for git-ai on windows in hooks as

"PostToolUse": [
      {
        "hooks": [
          {
            "command": "\\\\?\\C:\\Users\\USERNAME\\.git-ai\\bin\\git-ai.exe checkpoint claude --hook-input stdin",
            "type": "command"
          }
        ],
        "matcher": "Write|Edit|MultiEdit"
      }
    ]

This appears to be a regression introduced when we moved to using absolute path for hooks. Fix and add regression tests.

Originally created by @svarlamov on GitHub (Feb 13, 2026). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/519 Getting reports that we're adding the path for git-ai on windows in hooks as ``` "PostToolUse": [       {         "hooks": [           {             "command": "\\\\?\\C:\\Users\\USERNAME\\.git-ai\\bin\\git-ai.exe checkpoint claude --hook-input stdin",             "type": "command"           }         ],         "matcher": "Write|Edit|MultiEdit"       }     ] ``` This appears to be a regression introduced when we moved to using absolute path for hooks. Fix and add regression tests.
kerem 2026-03-02 04:12:38 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#178
No description provided.