git-ai icon indicating copy to clipboard operation
git-ai copied to clipboard

Cursor hooks fail when not in a workspace root

Open acunniffe opened this issue 1 month ago • 0 comments

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

acunniffe avatar Nov 05 '25 20:11 acunniffe