Claude Code's New Dreaded Message: 'Compacted While Idle, Before the Prompt Cache Expired'

dSebastien · x · 2026-10-06

Developer dSebastien reports a new Claude Code message he dreads: "Compacted while idle, before the prompt cache expired" — the tool now compacts context during idle time, before the prompt cache expires. That invalidates the cache (raising costs) and loses context via compaction. He's asking whether the behavior can be disabled.

A notable behavior change for heavy Claude Code users.

Original post →

More from coding & agent

coding & agent channel →