This repository was archived by the owner on Apr 8, 2026. It is now read-only.
Commit 219022b
Fix review findings: beforeExit handler, process-exit docs
Domain expert review found TS MCP had no safety net for event loop
drain or editor disconnect without signal. Added beforeExit + exit
handlers with idempotency guard (_hasWrapped flag). Updated
CLAUDE.md.snippet to mention process-exit consolidation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b07f7f8 commit 219022b
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
| 151 | + | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
153 | | - | |
154 | 156 | | |
155 | | - | |
156 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
| |||
0 commit comments