Commit c020a77
committed
fix: resolve 5 memory leak issues causing heap OOM (CortexReach#598)
Cherry-pick from PR CortexReach#603:
- store.ts: tail-reset semaphore replaces unbounded promise chain
- access-tracker.ts: separate retryCount map, maxRetries=5, destroy() with 3s timeout
- embedder.ts: TTL eviction on set() when near capacity
- retrieval-stats.ts: ring buffer replaces Array.shift() - O(1) write
- noise-prototypes.ts: DEDUP_THRESHOLD 0.95->0.90
- test/issue598_smoke.mjs: smoke test for subagent guards1 parent cefaded commit c020a77
1 file changed
+0
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2221 | 2221 | | |
2222 | 2222 | | |
2223 | 2223 | | |
2224 | | - | |
2225 | | - | |
2226 | | - | |
2227 | | - | |
2228 | 2224 | | |
2229 | 2225 | | |
2230 | 2226 | | |
| |||
3088 | 3084 | | |
3089 | 3085 | | |
3090 | 3086 | | |
3091 | | - | |
3092 | | - | |
3093 | 3087 | | |
3094 | 3088 | | |
3095 | 3089 | | |
| |||
3117 | 3111 | | |
3118 | 3112 | | |
3119 | 3113 | | |
3120 | | - | |
3121 | | - | |
3122 | 3114 | | |
3123 | 3115 | | |
3124 | 3116 | | |
| |||
0 commit comments