Commit f74e3e7
fix: resolve ConfigCache.has() stat inflation and hook system errors (#582)
* fix: resolve ConfigCache.has() stat inflation and hook system errors (#497, #528)
Reimplemented has() to check Map directly without touching metrics.
Applied to both core/config/ and infrastructure/scripts/ copies.
runner path didn't account for node_modules layout. Added path resolution
with fallback candidates. Also fixed:
- synapse-engine.cjs: replaced process.exit() with process.exitCode for
clean stdout flush
- hook-runtime.js: create session file on first prompt when loadSession
returns null (prevents silent updateSession failures)
Updated tests to match new behavior (process.exitCode, createSession export).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: regenerate manifest with updated entity-registry hash
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* 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>
* fix: add error handling for spawn and JSON serialization in precompact hook
Addresses CodeRabbit review: handle spawn 'error' event and
JSON.stringify failures to prevent unhandled exceptions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: regenerate install manifest after rebase
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 602b149 commit f74e3e7
File tree
8 files changed
+1198
-1141
lines changed- .aiox-core
- core
- config
- synapse/runtime
- data
- infrastructure/scripts
- .claude/hooks
- tests/synapse
8 files changed
+1198
-1141
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
76 | 85 | | |
77 | 86 | | |
78 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
| |||
0 commit comments