Feature request: Suppress auto-memory system prompt when autoMemoryEnabled=false
Summary
When autoMemoryEnabled is set to false in settings.json, the auto-memory instructions are still injected into the system prompt on every turn. This causes the AI to attempt memory writes, which then get blocked by hooks — creating unnecessary conversation noise.
Expected behavior
When autoMemoryEnabled: false is configured, the auto-memory section should be excluded from the system prompt entirely.
Current behavior
The system prompt always includes auto-memory instructions regardless of the autoMemoryEnabled setting. The only protection against unwanted writes is downstream (e.g. hooks blocking the actual file writes).
Impact
- AI attempts memory writes → hooks block them → extra turn noise
- Users who have explicitly opted out of auto-memory still see the AI try to write memory files and get blocked
Workaround
Use hooks to block unauthorized memory writes (downstream protection, not a root fix).
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗