Why editing a Claude message kills your prompt cache: SWA checkpointing?

YouJiacheng · x · 2026-12-06

Developer OliverPDev reports that reverting and rewriting a message on Claude invalidates the prompt cache for prior messages, filing a bug days ago with no fix. YouJiacheng speculates the cause is 'probably SWA checkpointing' — sliding-window attention checkpointing making edits bust the cache. An interesting technical guess about caching mechanics and its cost implications.

Original post →

More from coding & agent

coding & agent channel →