diff options
| author | jesse <jesse@magic-kingdom> | 2026-03-17 04:09:36 +0000 |
|---|---|---|
| committer | jesse <jesse@magic-kingdom> | 2026-03-17 04:09:36 +0000 |
| commit | f34ee479b7145ba4fcbca9b8f9e38edf9eb076ca (patch) | |
| tree | 921c11faf4c8032e05a595aba5f1264b0814ec50 /skills/brainstorming/scripts | |
| parent | 1128a721ca3b7fd76bf12e8392cdeb89cfcfcf2a (diff) | |
fix: Windows brainstorm server lifecycle, restore execution choice
- Skip OWNER_PID monitoring on Windows/MSYS2 where the PID namespace is
invisible to Node.js, preventing server self-termination after 60s (#770)
- Document run_in_background: true for Claude Code on Windows (#767)
- Restore user choice between subagent-driven and inline execution after
plan writing; subagent-driven is recommended but no longer mandatory
- Add Windows lifecycle test script verified on Windows 11 VM
- Note #723 (stop-server.sh reliability) as already fixed
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'skills/brainstorming/scripts')
| -rwxr-xr-x | skills/brainstorming/scripts/start-server.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/skills/brainstorming/scripts/start-server.sh b/skills/brainstorming/scripts/start-server.sh index a60025c..5c36ee1 100755 --- a/skills/brainstorming/scripts/start-server.sh +++ b/skills/brainstorming/scripts/start-server.sh @@ -106,6 +106,12 @@ if [[ -z "$OWNER_PID" || "$OWNER_PID" == "1" ]]; then OWNER_PID="$PPID" fi +# On Windows/MSYS2, the MSYS2 PID namespace is invisible to Node.js. +# Skip owner-PID monitoring — the 30-minute idle timeout prevents orphans. +case "${OSTYPE:-}" in + msys*|cygwin*|mingw*) OWNER_PID="" ;; +esac + # Foreground mode for environments that reap detached/background processes. if [[ "$FOREGROUND" == "true" ]]; then echo "$$" > "$PID_FILE" |
