Repository navigation
Commit f4def5b
fix(spawn): windowsHide:true + Node v22 wrapper — kills 100-window spawn-storm + Limit #11 hang
Two root causes of the 2026-05-15 spawn-storm (100+ conhost windows forced PC hard-reboot):
1. windowsHide missing on spawn('claude', ...) — each spawn opens a visible conhost.
Added windowsHide: true to claude-pool.ts:106 and claude-code-spawner.ts:1322.
chat-spawner.ts already had it. Refs anthropics/claude-code#28138, #15572.
2. Node v25.2.1 silent-termination after ~25min on Win11 — bypasses all error handlers.
Known Node bug nodejs/node#62125 (v24+ broken, v22 LTS works).
Added scripts/brain-v22.cmd + brain-watchdog-v22.cmd wrappers pointing to
C:\Users\mecklenburg\node22\node-v22.22.1-win-x64\node.exe.
Verified: Brain alive >2min under v22, 0 visible windows during active spawning.
This obsoletes the planned WSL migration — Windows + Node v22 LTS is enough.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 14ca717 commit f4def5b
4 files changed
Lines changed: 25 additions & 0 deletions
File tree
- packages/brain-core/src
- self-modification
- session
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
| 1322 | + | |
1322 | 1323 | | |
1323 | 1324 | | |
1324 | 1325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments