`pre-commit` hangs on Windows with `parallel: true`
Author: CuriousStorkCreated Dec 23, 2025Updated Sep 17, 2026
LabelsbugWindows
Description
When parallel: true is set, pre-commit hangs:
The hanged job output is interrupted. Please note, that the hanged job varies from run to run. For me sometimes it was Vale, sometimes Prettier.
CTRL + C doesn't help.
The terminal processes consume CPU continuously:
Only killing via the task manager helps.
Sometimes all jobs seem to pass (or the terminal isn't stuck), but the output isn't full. For example, some jobs and Lefthook summary are missing. Maybe it's another issue, like #1047
Windows 10, Windows Terminal: 1.23.13503.0, PowerShell: 7.5.4.
The issue isn't reproduced when parallel is disabled.
.lefthook.yaml
assert_lefthook_installed: true
min_version: 2.0.12
pre-commit:
parallel: true
jobs:
- name: "Lint:"
group:
jobs:
- name: markdownlint
run: npx markdownlint-cli2 "{staged_files}" 2>&1
glob:
- "*.md"
- name: Prettier
run: npx prettier --list-different "{staged_files}"
glob:
- "*.md"
- name: "Style:"
group:
jobs:
- name: Vale
run: vale --output=line "{staged_files}"
glob:
- "*.md"Commands to reproduce
npx lefthook run pre-commitLefthook version
2.0.12
Source: evilmartians/lefthook