Skip to content

Rebase hangs at "Running pre-commit hook"; hook shell window disappears and app must be force-closed #23104

Open

Description

@devwithmj

The problem

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

  1. Open a repository that uses Husky for its pre-commit hook.
  2. Start a rebase of a branch with about 10 commits.
  3. Wait until the rebase reaches a commit that triggers "Running pre-commit hook".
  4. The hook shell window disappears, no output is shown, and the rebase dialog hangs permanently.

Log files

No response

Screenshots

Image

Additional context

Pre-commit hook tool: Husky. Workaround: run git rebase --abort or git rebase --continue in a terminal.

Activity

  1. desktop-triage commented on Oct 31, 2026

    @desktop-triage

    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 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.

    Generated by Issue Triage (skills-driven) for #23104 · auto · 82.8 AIC · ⊞ 4.5K · ◷

  2. added
    bug
    priority-2
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority-2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions