# Claude Code 空闲压缩从摘要继续,可用 idleCompaction 关闭并自定义阈值
> 原标题:It does mean that Claude continues from a summary instead of your full context though. You can turn it off with "idleCompaction": false i...
- 来源:Lydia Hallie
- 发布时间:2026-10-14T21:36:11.000Z
- AIHOT:https://aihot.news/items/whbmvotra7659u98jmj00oegi
- 原文:https://x.com/lydiahallie/status/2110484841926152622
## 摘要
Claude Code 的空闲压缩会让 Claude 从摘要而非完整上下文继续。作者说明可在 settings. 中设置 "idleCompaction": false 关闭,并通过 CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS 自定义阈值,默认为 200k。
## 推荐理由
原文给出 Claude Code 空闲压缩的具体关闭参数和阈值设置方法,读者可直接迁移到自己的 settings. 配置。
## 正文
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
## 中文译文
不过这确实意味着 Claude 会从摘要继续,而不是你的完整上下文。你可以在 settings.json 中用 "idleCompaction": false 将其关闭,并且可以用 CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS 设置自定义阈值(默认是 200k)。