[GH-ISSUE #312] Ensure that git-ai respects ctrl+c interrupts during pre/post hooks #114

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

Originally created by @svarlamov on GitHub (Dec 28, 2025).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/312

Originally assigned to: @svarlamov, @Copilot on GitHub.

I noticed that ctrl+c doesn't exit git-ai during slow pre/post hooks the same way that it does when git-ai is proxying git. The expected behavior is that git-ai should quit immediately when interrupted.

➜  git-ai git:(feat/blame-plugin) git pull                        
[git-ai] started fetching authorship notes from remote: origin
[git-ai] fetching authorship notes for remote 'origin' to tracking ref 'refs/notes/ai-remote/origin'
[git-ai] ls-remote command: ["-C", "/Users/svarlamov/projects/git-ai", "--no-pager", "ls-remote", "origin", "refs/notes/ai"]
[git-ai] pull pre-hook: rebase=false, autostash=false, has_changes=false
^C^C^C^C^C^C^C^C^C^C^C^C^C[git-ai] failed to check for authorship notes on remote 'origin': Git CLI (-C /Users/svarlamov/projects/git-ai --no-pager ls-remote origin refs/notes/ai) failed with exit code 128: fatal: unable to access 'https://github.com/acunniffe/git-ai/': Recv failure: Operation timed out

[git-ai] authorship fetch failed: Git CLI (-C /Users/svarlamov/projects/git-ai --no-pager ls-remote origin refs/notes/ai) failed with exit code 128: fatal: unable to access 'https://github.com/acunniffe/git-ai/': Recv failure: Operation timed out

^C^C^C^C^C^C^C^C^C^C^C^Cfatal: unable to access 'https://github.com/acunniffe/git-ai/': Recv failure: Operation timed out
[git-ai] Pull failed, skipping post-pull authorship restoration
Originally created by @svarlamov on GitHub (Dec 28, 2025). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/312 Originally assigned to: @svarlamov, @Copilot on GitHub. I noticed that ctrl+c doesn't exit git-ai during slow pre/post hooks the same way that it does when git-ai is proxying git. The expected behavior is that git-ai should quit immediately when interrupted. ```bash ➜ git-ai git:(feat/blame-plugin) git pull [git-ai] started fetching authorship notes from remote: origin [git-ai] fetching authorship notes for remote 'origin' to tracking ref 'refs/notes/ai-remote/origin' [git-ai] ls-remote command: ["-C", "/Users/svarlamov/projects/git-ai", "--no-pager", "ls-remote", "origin", "refs/notes/ai"] [git-ai] pull pre-hook: rebase=false, autostash=false, has_changes=false ^C^C^C^C^C^C^C^C^C^C^C^C^C[git-ai] failed to check for authorship notes on remote 'origin': Git CLI (-C /Users/svarlamov/projects/git-ai --no-pager ls-remote origin refs/notes/ai) failed with exit code 128: fatal: unable to access 'https://github.com/acunniffe/git-ai/': Recv failure: Operation timed out [git-ai] authorship fetch failed: Git CLI (-C /Users/svarlamov/projects/git-ai --no-pager ls-remote origin refs/notes/ai) failed with exit code 128: fatal: unable to access 'https://github.com/acunniffe/git-ai/': Recv failure: Operation timed out ^C^C^C^C^C^C^C^C^C^C^C^Cfatal: unable to access 'https://github.com/acunniffe/git-ai/': Recv failure: Operation timed out [git-ai] Pull failed, skipping post-pull authorship restoration ```
kerem 2026-03-02 04:11:54 +03:00
  • closed this issue
  • added the
    bug
    label
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#114
No description provided.