Feature Request: Auto-reload CLAUDE.md config files when session is continued from context compaction
Resolved 💬 3 comments Opened Jan 31, 2026 by vanicliu Closed Feb 3, 2026
Problem Description
When a session runs out of context and is continued via context compaction (automatic summarization), the global and project-level CLAUDE.md configuration files are not reloaded. This causes Claude to "forget" user preferences defined in these config files.
Steps to Reproduce
- Create a global config file at
~/.claude/CLAUDE.mdwith custom rules (e.g., "Always respond in Chinese") - Start a new Claude Code session - the config is loaded correctly
- Have a long conversation until context compaction triggers
- The continued session receives a summary but does NOT reload the
CLAUDE.mdfiles - Claude no longer follows the rules defined in the config files
Expected Behavior
When a session is continued from context compaction, Claude Code should automatically reload:
- User global config:
~/.claude/CLAUDE.md - Project config:
./CLAUDE.mdor./.claude/CLAUDE.md - Project rules:
./.claude/rules/*.md
This would ensure user preferences and project rules are consistently applied, even across session continuations.
Suggested Solution
Include instructions in the context compaction summary to reload the CLAUDE.md configuration files at the start of the continued session, similar to how a fresh session automatically loads these files.
Environment
- Claude Code CLI
- macOS
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗