Claude Code bug re-injects all 609 tasks after compaction, re-compacting sessions every ~11 min

otalrapha · ghdev · 2026-10-19

A developer filed claude-code issue #103442: on v2.1.299 (WSL2), after each auto-compaction the system reminder re-injects the entire task list with no cap on items or bytes, keeping context near the window limit and triggering repeated re-compaction.

Measured from the session transcript (rendered sizes):

Suggested fixes: list only pending/inprogress tasks with count/byte caps and 120-char subject truncation, give post-compaction re-injection a window-fraction budget with warnings when 3+ compactions happen within 30 min, and deduplicate nested CLAUDE.md imports. The author notes token figures are bytes/4 estimates from a single session and the actual API payload wasn't verified.

Original post →

More from coding & agent

coding & agent channel →