Review step's headless claude agent becomes a zero-socket zombie on Windows (5 reproductions)

Author: 0000weiCreated Aug 15, 2026Updated Oct 2, 2026
Labelsbugready-for-pr

Title: Review step's headless claude agent becomes a zero-socket zombie on Windows (5 reproductions)

Environment

  • no-mistakes v1.48.0 (2ac3769) 2026-08-08, Windows 11 Home 10.0.26200 (mingw64/Git Bash user)
  • Claude Code 2.1.153 via npm, routed through a local API proxy (ANTHROPIC_BASE_URL=http://127.0.0.1:4000; proxy config also present in ~/.claude/settings.json)
  • Global ~/.claude/settings.json has SessionStart/PreCompact/Stop hooks (mempalace) — but see elimination matrix: not the cause
  • Repo: any (reproduced on a fork of fluent-reader); default branch 1.3.0, feature branch chore/repoint-fork-surfaces

Symptom

Every pipeline run hangs forever at the review step. The spawned claude process:

  • is alive (pid logged, CPU trickles up ~0.05%/min)
  • has ZERO TCP connections (netstat -ano | grep → empty) — it never contacts the API or the proxy
  • never writes a session transcript (no .jsonl created under ~/.claude/projects/**)
  • produces no stdout in ~/.no-mistakes/logs/<run-id>/review.log beyond "claude started pid=..."

Status output shows review,running,...,"quiet Nm ago: log: claude started pid=...","starting" forever. Aborting and rerunning reproduces identically.

Reproduction runs (all aborted after 10–95 min)

  1. 01M02ASKQVVNGV51ACKVHBCWFE (~95 min)
  2. 01M02M0W7E4QAMVC2QX13SCBT8 (~30 min)
  3. 01M02PZDDAC9PVPFANJ38FW57E (~10 min)
  4. 01M02QMCXB9SH2G34HANRK96GD (skip experiment, see below)
  5. 01M02S8X857ZTAXEZ1MPF96D5B (~16 min, after daemon restart WITH full user env)

What I eliminated (controlled experiments)

Running the EXACT command line the gate spawns — including --settings <gate-config>, -p --verbose --output-format stream-json --json-schema '{...}', and stdin closed — manually from Git Bash works every time (completes in ~21 s via the proxy), under all of these conditions:

Variation Result
Normal shell env works
env -i completely empty environment (no ANTHROPIC_*, no PATH extras) works (proxy config survives via ~/.claude/settings.json)
--settings pointing at a minimal no-hooks config works
stdin closed (< /dev/null) works

Also tried, without effect:

  • agent_args_override: claude: [--settings, <no-hooks config>] in config.yaml + daemon restart → run 3 still zombified
  • no-mistakes daemon restart from a shell carrying all ANTHROPIC_* vars → run 5 still zombified

So the difference is not: hooks, settings file, environment variables, or stdin. It's something about HOW the daemon spawns the child process on Windows — remaining suspects: console-handle allocation / process-group / CREATE_NO_WINDOW semantics for headless CLI children, or HOME/USERPROFILE/cwd manipulation by the daemon.

Additional behavior notes (possibly related, possibly separate)

  • no-mistakes axi run --skip review,test,document,lint marks steps skipped, but the push step then refuses: error: refusing to push: run has no durably recorded review-approved head. I understand this is an anti-bypass guarantee, but it means there is NO workaround on machines where the review agent cannot start — the gate is simply unusable. A documented escape hatch for this situation would help.
  • Gate refuses to validate the default branch (refusing to validate "1.3.0": it is the default branch) — reasonable, just noting the workflow requires feature branches.

Ask

  1. Investigate how the review agent process is spawned on Windows (console handle / window station / process creation flags), and whether a headless claude CLI child can block in init under those conditions.
  2. Consider a review step timeout with actionable error, and/or a documented offline/agent-broken escape hatch so the gate isn't a hard brick.

Happy to run any diagnostic build or capture more forensics (ProcMon traces, process tree dumps) on request.