bin-session-end.ts handler 中 isDetachedPipelineInvocation 在 readArgvInput unlink tmp 后必然返回 false,handler 误走 foreground 分支无限 spawn detached child。缺 per-cwd 单例锁放大问题。详见 docs/debugging/session-end-hook-cpu-storm.md(失效点 E)+ docs/debugging/unlink-then-recheck-antipattern.md。
bin-session-end.ts handler 中 isDetachedPipelineInvocation 在 readArgvInput unlink tmp 后必然返回 false,handler 误走 foreground 分支无限 spawn detached child。缺 per-cwd 单例锁放大问题。详见 docs/debugging/session-end-hook-cpu-storm.md(失效点 E)+ docs/debugging/unlink-then-recheck-antipattern.md。