docs(windows): Sequant's bash hooks block every tool call on native Windows without Git Bash since Claude Code 2.1.299 — document it and make doctor fail
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 73/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bash, typescript
- Ambito
- cli, devtools, documentation
Direzione di ricerca
Read the Platform Support table in README.md, the Windows section in docs/troubleshooting.md, and the Platform check in src/commands/doctor.ts with its tests in src/commands/doctor.test.ts. Check how doctor detects native Windows and whether bash is on PATH, then update the docs and cover both detection branches in tests. Done when the docs explain the impact and recovery steps, and doctor fails without bash but keeps its warning when bash is available.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Source: upstream triage of Claude Code v2.1.299, 2026-10-20 (replaces the auto-filed stub #1538)
Problem
Claude Code v2.1.299: "Windows: Fixed PreToolUse and PermissionRequest hooks that set no shell failing open when Git for Windows isn't installed; a guard that fails now blocks the call".
Sequant's hooks are bash scripts registered with no shell and matcher "*", in both places it ships them:
plugin/hooks/hooks.json:3-10(plugin installs)templates/settings.json:3-10(projects set up withsequant init)
On native Windows, Git for Windows is optional: Claude Code's setup docs say that without it, Claude Code runs shell commands with the PowerShell tool. So for a native-Windows user without Git Bash:
- before 2.1.299:
pre-tool.shnever ran, so every Sequant guardrail was silently off; - from 2.1.299: the hook fails, so every tool call is blocked.
CLAUDE_HOOKS_DISABLEDcannot help because the script never starts.
What users are told today: README Platform Support says "Windows Native ⚠️ CLI only" (README.md:344), and docs/troubleshooting.md:625 ("bash: command not found") recommends WSL. Neither says that installing the plugin or running sequant init on native Windows without Git Bash blocks every tool call in Claude Code. sequant doctor warns "Running on native Windows - WSL recommended for full functionality (hooks, scripts)" (src/commands/doctor.ts:1121-1127) whether or not bash is available.
Phase agents still run the SDK-bundled Claude Code 2.1.296, where the failing hook fails open (#1571).
Acceptance Criteria
- AC-1: The README Platform Support table and the troubleshooting Windows section state that Sequant's hooks need bash (WSL or Git for Windows), that without it Claude Code ≥ 2.1.299 blocks every tool call once the plugin is installed or
sequant inithas run, and how to recover (install Git for Windows or use WSL; or uninstall the plugin / remove the hook entries). Evidence: the diff ofREADME.mdanddocs/troubleshooting.md. - AC-2: On native Windows with no
bashon PATH,sequant doctorreports afail(notwarn) Platform check whose message says hooks will block every tool call and names the fix; with bash available it keeps today's warning. Evidence: unit tests for both branches insrc/commands/doctor.test.tswith the platform and bash lookup mocked.
May touch
README.md, docs/troubleshooting.md, src/commands/doctor.ts (+ a small bash-on-PATH helper if none exists), src/commands/doctor.test.ts, CHANGELOG.md.
Non-Goals
- Changing
plugin/hooks/hooks.jsonor the hook scripts (for example a PowerShellshellfallback). Hook content is under the plugin freeze; revisit when it lifts. - Supporting native Windows without bash.
- Lingua principale
- TypeScript
- Stelle
- 1
- Fork
- 1
- Merge medio
- 11h 3m
- PR unite (30g)
- 84
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sequant-io/sequant
-
graph-2026-11-simplify
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sequant-io/sequant#1650 ·
I maintainer di solito rispondono entro 1 giorno
-
run: --phases does not suppress the UI-label test phase (determinePhasesForIssue adds it to an explicit list)Forse già presa @admarble l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sequant-io/sequant#1631 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
sequant-io/sequant#1601 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
sequant-io/sequant#1582 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
sequant-io/sequant#1381 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sequant-io/sequant
Issue simili
-
status: needs triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
mastra-ai/mastra#29706 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
lingdojo/kana-dojo#33802 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cloudflare/workerd#8290 ·
I maintainer di solito rispondono entro 1 giorno
-
area: build-and-ci possible-duplicate S3: minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
manaflow-ai/cmux#38889 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
ValentinH/react-easy-crop#670 ·