You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rebase hangs at "Running pre-commit hook"; hook shell window disappears and app must be force-closed #23104
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
During a rebase, GitHub Desktop gets stuck on the "Rebase in progress" dialog (here at "Commit 2 of 10"). While the "Running pre-commit hook" step runs, the hook's shell window appears and then disappears. No hook output is shown in the app. The dialog never advances or closes, and the app stops responding. I have to force-quit GitHub Desktop.
Release version
3.6.10 (x64)
Operating system
Windows 11 (64-bit)
Steps to reproduce the behavior
Open a repository that uses Husky for its pre-commit hook.
Start a rebase of a branch with about 10 commits.
Wait until the rebase reaches a commit that triggers "Running pre-commit hook".
The hook shell window disappears, no output is shown, and the rebase dialog hangs permanently.
Log files
No response
Screenshots
Additional context
Pre-commit hook tool: Husky. Workaround: run git rebase --abort or git rebase --continue in a terminal.
This report includes app version (3.6.10), OS (Windows 11), a specific hook tool (Husky), and clear reproduction steps for a rebase that hangs indefinitely at "Running pre-commit hook" with no output and no way to recover except force-quitting. I'm suggesting bug and priority-2 (significant disruption to the rebase workflow, though a CLI workaround exists via git rebase --abort/--continue).
Duplicate Check:#22701 ("Pre-commit Hook Hanging", closed as unable-to-reproduce) describes a similar symptom during a regular commit, not during rebase, and lacked reproduction details — not a confirmed duplicate, but related prior report worth cross-referencing.
Initial hypothesis: During git commit, GitHub Desktop intercepts the pre-commit hook and streams its progress/output back to the UI via onHookProgress/onHookFailure (see createCommit, which passes interceptHooks: ['pre-commit', 'prepare-commit-msg', 'commit-msg', 'post-commit', ...]). However, continueRebase, which runs git rebase --continue for each subsequent commit in the sequence, does not set interceptHooks at all — it only forwards onHookProgress/onHookFailure/onTerminalOutputAvailable callbacks without ever registering which hooks to intercept. Since Desktop's hook-proxy mechanism in with-hooks-env.ts is a no-op when interceptHooks is absent, pre-commit during rebase --continue runs as a raw, un-proxied child process instead of going through the proxy that normally reports progress and surfaces output/errors to the UI. This would explain why the hook's shell window appears and disappears with no output shown in the app, and why the "Rebase in progress" dialog has nothing to respond to and never advances — it's waiting on a hook invocation it isn't instrumented to observe. This is a hypothesis based on code structure and the reported symptoms; confirming it would benefit from a GitHub Desktop debug log capturing hook-proxy activity (or lack thereof) during an affected rebase step.
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
Activity
desktop-triage commentedon Oct 31, 2026
Classification: Bug
Priority: P2
This report includes app version (3.6.10), OS (Windows 11), a specific hook tool (Husky), and clear reproduction steps for a rebase that hangs indefinitely at "Running pre-commit hook" with no output and no way to recover except force-quitting. I'm suggesting
bugandpriority-2(significant disruption to the rebase workflow, though a CLI workaround exists viagit rebase --abort/--continue).Duplicate Check: #22701 ("Pre-commit Hook Hanging", closed as unable-to-reproduce) describes a similar symptom during a regular commit, not during rebase, and lacked reproduction details — not a confirmed duplicate, but related prior report worth cross-referencing.
Initial hypothesis: During
git commit, GitHub Desktop intercepts thepre-commithook and streams its progress/output back to the UI viaonHookProgress/onHookFailure(seecreateCommit, which passesinterceptHooks: ['pre-commit', 'prepare-commit-msg', 'commit-msg', 'post-commit', ...]). However,continueRebase, which runsgit rebase --continuefor each subsequent commit in the sequence, does not setinterceptHooksat all — it only forwardsonHookProgress/onHookFailure/onTerminalOutputAvailablecallbacks without ever registering which hooks to intercept. Since Desktop's hook-proxy mechanism inwith-hooks-env.tsis a no-op wheninterceptHooksis absent,pre-commitduringrebase --continueruns as a raw, un-proxied child process instead of going through the proxy that normally reports progress and surfaces output/errors to the UI. This would explain why the hook's shell window appears and disappears with no output shown in the app, and why the "Rebase in progress" dialog has nothing to respond to and never advances — it's waiting on a hook invocation it isn't instrumented to observe. This is a hypothesis based on code structure and the reported symptoms; confirming it would benefit from a GitHub Desktop debug log capturing hook-proxy activity (or lack thereof) during an affected rebase step.Stop waiting for output a hook's leftover process holds