[GH-ISSUE #188] Cursor hooks fail when not in a workspace root #70

Closed
opened 2026-03-02 04:11:38 +03:00 by kerem · 1 comment
Owner

Originally created by @acunniffe on GitHub (Nov 5, 2025).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/188

A user reported that she had all her git repos for work in a folder.

work/
   repo_a/
   repo_b/
   repo_c/

Her cursor workspace is /work and she does not have any nested workspaces configured. When she uses cursor, the hooks fire on /work workspace root, can't find a repo, and fail.

We could use the filepath in afterEdit to resolve the repo, but we don't currently have beforeEdit hooks for cursor so it's difficult to make the human checkpoint fire the right way

Originally created by @acunniffe on GitHub (Nov 5, 2025). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/188 A user reported that she had all her git repos for work in a folder. ``` work/ repo_a/ repo_b/ repo_c/ ``` Her cursor workspace is `/work` and she does not have any nested workspaces configured. When she uses cursor, the hooks fire on `/work` workspace root, can't find a repo, and fail. We could use the filepath in `afterEdit` to resolve the repo, but we don't currently have `beforeEdit` hooks for cursor so it's difficult to make the human checkpoint fire the right way
kerem 2026-03-02 04:11:38 +03:00
Author
Owner

@svarlamov commented on GitHub (Feb 13, 2026):

Believe this has been fixed. Please reopen if still broken

<!-- gh-comment-id:3899703986 --> @svarlamov commented on GitHub (Feb 13, 2026): Believe this has been fixed. Please reopen if still broken
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#70
No description provided.