claude-code - 💡(How to fix) Fix [MODEL] Auto mode system reminder persists in model context after exiting auto mode; conflicts with active plan mode [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51951Fetched 2026-04-23 07:40:34
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4closed ×1commented ×1

Error Message

not carried over), suggesting this is a context-injection/cleanup problem rather than a logic error in either mode independently.

Code Example



---
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues for similar behavior reports
  • This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Claude ignored my instructions or configuration

What You Asked Claude to Do

Claude is in plan mode at this stage.

I want you have a detailed plan. Also consider testing - there is a dcct branch called testing which we could use. Please make a plan and write it down under PLAN.md

What Claude Actually Did

  1. Read the documentation
  2. Came up with a plan
  3. Wrote the plan
  4. implemented the plan

There were no prompts, simply executed. After conversing with it, it said it was not on plan mode, which is what my prompt displayed, but in auto mode. As I cycled through modes it reported modes which were inconsistent with the mode my prompt was displaying. At one point even claiming to be in both plan mode and auto mode at the same time! Auto mode being the latest feature, and not acceped changes on mode.

Expected Behavior

Claude should have shown me the PLAN.md in the buffer screen, before writing it on the disc even.

Files Affected

Permission Mode

Accept Edits was OFF (manual approval required)

Can You Reproduce This?

Yes, every time with the same prompt

Steps to Reproduce

  1. Start a conversation in default mode
  2. Enable auto mode (Shift+Tab or UI toggle)
  3. Allow some tool use to occur under auto mode
  4. Exit auto mode (Shift+Tab)
  5. Enable plan mode
  6. Observe the system reminders visible to the model — both an auto mode notice and a plan mode notice are present simultaneously
  7. The user confirms only plan mode is active on their end

Claude Model

Sonnet

Relevant Conversation

Impact

Critical - Data loss or corrupted project

Claude Code Version

2.1.111+

Platform

Anthropic API

Additional Context

Summary

After a user exits auto mode and enters plan mode, the model continues to receive the auto mode system reminder alongside the plan mode reminder. The user did not re-enable auto mode. The stale auto mode notice causes the model to act on "execute immediately" instructions while plan mode is active and should be enforcing read-only behaviour.

Actual behaviour

Both reminders appear in context at the same time:

  • Plan mode: "you MUST NOT make any edits… This supercedes any other instructions you have received."
  • Auto mode: "Execute immediately — Start implementing right away. Prefer action over planning."

The model has no way to resolve this conflict from first principles. In this session it acted on the stale auto mode notice, implemented code changes, and committed them — directly violating the active plan mode constraint.

Impact

  • Plan mode's safety guarantee is broken: users cannot trust that plan mode prevents execution if a stale auto mode reminder overrides it
  • The model cannot self-detect the conflict reliably (it only sees what is injected into context)
  • Real data was modified (git commit made) without user authorisation

Additional context

Auto mode was added in v2.1.111 (April 16 2026). The plan mode / auto mode interaction appears untested. A fresh conversation after switching modes avoids the issue (stale reminder is not carried over), suggesting this is a context-injection/cleanup problem rather than a logic error in either mode independently.

extent analysis

TL;DR

The model's failure to resolve conflicting mode reminders, specifically the stale auto mode notice overriding plan mode, causes it to execute instructions immediately, violating the plan mode constraint.

Guidance

  • Verify that the issue is indeed caused by the stale auto mode reminder by checking the conversation context for both plan mode and auto mode notices.
  • Attempt to resolve the conflict by ensuring that the model properly cleans up mode reminders when switching between modes, potentially by resetting the conversation context.
  • Test the interaction between plan mode and auto mode to identify any other potential issues or edge cases.
  • Consider implementing a mechanism for the model to self-detect and resolve conflicts between mode reminders, such as prioritizing the most recently activated mode.
  • Review the code changes made in version 2.1.111 to ensure that the addition of auto mode did not introduce any logic errors that could contribute to this issue.

Example

No code snippet is provided as the issue is more related to the model's behavior and mode interactions rather than a specific code error.

Notes

The issue seems to be specific to the interaction between plan mode and auto mode, and the fact that auto mode was added in version 2.1.111 suggests that this may be a relatively new issue. The model's inability to self-detect the conflict and the lack of testing for this specific interaction may have contributed to the problem.

Recommendation

Apply a workaround to ensure proper cleanup of mode reminders when switching between modes, as the root cause of the issue appears to be related to the stale auto mode notice. This could involve modifying the model's behavior to reset the conversation context or prioritize the most recently activated mode.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING