git-ai
git-ai copied to clipboard
Cursor hooks fail when not in a workspace root
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