mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-02 07:03:28 +08:00
The .cursor copy had diverged from scripts/hooks/suggest-compact.js: - Fixed interval calculation: count % 25 → (count - threshold) % 25 so suggestions fire relative to the configured threshold - Added upper bound clamp (<=1000000) to prevent counter corruption from large values converting to scientific notation strings - Removed unreliable String(process.ppid) fallback for session ID