autoCompactEnabled setting not recognized — no way to disable auto-compact
Resolved 💬 2 comments Opened Mar 25, 2026 by guglielmofonda Closed Apr 22, 2026
Description
There is no documented or functional way to disable auto-compact via settings.json. The autoCompactEnabled key is not in the settings schema and is silently ignored.
Current behavior
- Setting
"autoCompactEnabled": falsein~/.claude/settings.jsonhas no effect - The status bar still shows "X% until auto-compact"
- Conversations still get auto-compacted
- The full settings JSON schema (from the update-config skill) does not include
autoCompactEnabledor any auto-compact-related setting
Expected behavior
There should be a supported setting (e.g., autoCompactEnabled: false or autoCompactThreshold) to disable or control auto-compact behavior, especially for users on 1M context models (Opus 4.6) where context limits are rarely an issue.
Environment
- Claude Code v2.1.81
- Model: Opus 4.6 (1M context)
- Platform: macOS (Darwin 25.1.0)
Steps to reproduce
- Add
"autoCompactEnabled": falseto~/.claude/settings.json - Start a new Claude Code session
- Observe that auto-compact still shows in the status bar and still triggers
Suggestion
Add an autoCompactEnabled boolean to the settings schema, or provide an alternative mechanism to control/disable auto-compact for users who prefer manual compaction via /compact.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗