# Claude Code can compact idle sessions, with an off switch and token threshold

> Original title: It does mean that Claude continues from a summary instead of your full context though. You can turn it off with "idleCompaction": false i...

- Source: Lydia Hallie
- Published: 2026-10-14T21:36:11.000Z
- Bad Influence: https://badinfluence.news/items/yiu5kicl6gby1futyo7yj1vbp
- Original: https://x.com/lydiahallie/status/2110484841926152622

## Summary

Anthropic's Lydia Hallie says Claude Code continues from a summary rather than full context when a session is compacted. Users can disable this with "idleCompaction": false in settings.json, or set a custom threshold through CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS, which defaults to 200k tokens.

## Post

It does mean that Claude continues from a summary instead of your full context though. You can turn it off with "idleCompaction": false in settings.json, and you can set a custom threshold (default is 200k) with CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS
