Commit ee758e1
fix: address CodeRabbit review issues for PR #582
- precompact-session-digest.cjs: spawn detached child process instead of
require()-ing runner in-process. The runner uses setImmediate internally
which kept the event loop alive and caused the hook to block (wait for
the 9 s safety timeout) instead of being fire-and-forget. Context is
forwarded via AIOX_HOOK_CONTEXT env var to the inline Node script.
- synapse-engine.cjs: replace process.exitCode = 0 with process.exit(0)
in the timeout callback. process.exitCode alone does not terminate the
process when active handles remain (e.g. stdout backpressure), defeating
the 5 s hard limit that protects Claude Code from a blocking hook.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1b56576 commit ee758e1
2 files changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
90 | 105 | | |
91 | 106 | | |
92 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| |||
0 commit comments