The backward JSON scanner (JsonlBackwardIter and TailMessages) was matching } characters inside JSON strings — code blocks full of Rust braces being the primary offender. This caused: - Quadratic retry behavior on code-heavy transcripts (wrong object boundaries → serde parse failure → retry from different position) - Inconsistent find_last_compaction_in_file offsets across calls, making detect_new_compaction fire repeatedly → context reload on every hook call → seen set growing without bound Fix: add string-boundary tracking with escaped-quote handling to the close-brace finder loop, matching the existing logic in the depth-tracking loop. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| agents | ||
| defaults | ||
| schema | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||
| config.example.jsonl | ||