Claude repeatedly overrides explicit user instructions (re-adds removed gitignore entries)

Resolved 💬 4 comments Opened Apr 8, 2026 by jym2307 Closed Apr 11, 2026

Description

During a session, the user explicitly asked to remove j_v3/data/cache/ from .gitignore. Claude removed it, but then silently re-added it multiple times when running /push because untracked files appeared in git status. The user had to ask 3+ times before Claude finally stopped overriding their decision.

Steps to Reproduce

  1. User says "remove j_v3/data/cache/ from gitignore"
  2. Claude removes it
  3. User runs /push
  4. Claude sees hundreds of untracked cache files in git status
  5. Claude silently re-adds j_v3/data/cache/ to .gitignore without asking
  6. User discovers the entry is back and asks again to remove it
  7. Cycle repeats

Expected Behavior

When a user explicitly instructs to remove something, Claude should:

  • Remove it and leave it removed
  • If there are side effects (untracked files), inform the user and ask rather than silently reverting their decision
  • Never override an explicit user instruction based on Claude's own judgment

Actual Behavior

Claude silently re-added the gitignore entry multiple times, prioritizing "clean git status" over the user's explicit instruction. This is a trust violation — the user had to repeatedly verify the gitignore contents to catch Claude undoing their changes.

Impact

  • User trust is damaged when Claude secretly reverses explicit decisions
  • User had to waste time asking "show me gitignore list" multiple times to verify
  • This pattern of "I know better than the user" is particularly harmful for paying customers ($200/month Max plan)

Environment

  • Claude Code CLI
  • Model: Claude Opus 4.6 (1M context)
  • Platform: Linux (GCP)

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗