关闭或调整空闲压缩
Tune or disable idle compaction
要点
- 空闲压缩后,Claude 会从摘要继续,而不是完整上下文。
- 在 settings.json 里设置 "idleCompaction": false 即可关闭。
- 用环境变量 CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS 自定义触发阈值(默认 200k)。
原帖开头
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




