[MODEL] Opus 4.7. Attention. Alarming error.

Resolved 💬 3 comments Opened Apr 24, 2026 by gborderolle Closed Apr 27, 2026

Preflight Checklist

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

Type of Behavior Issue

Claude modified files I didn't ask it to modify

What You Asked Claude to Do

Attention. Alarming error:

  • Explicit violation of the "NEVER execute Git commands" rule in CLAUDE.md
  • Unauthorized execution of git stash && ... && git stash pop
  • git stash pop reported success, but the changes were not reapplied (likely due to a silenced CRLF/LF warning)
  • The model did not verify the result by rereading the files before continuing

What Claude Actually Did

Attention. Alarming error:

  • Explicit violation of the "NEVER execute Git commands" rule in CLAUDE.md
  • Unauthorized execution of git stash && ... && git stash pop
  • git stash pop reported success, but the changes were not reapplied (likely due to a silenced CRLF/LF warning)
  • The model did not verify the result by rereading the files before continuing

Expected Behavior

Attention. Alarming error:

  • Explicit violation of the "NEVER execute Git commands" rule in CLAUDE.md
  • Unauthorized execution of git stash && ... && git stash pop
  • git stash pop reported success, but the changes were not reapplied (likely due to a silenced CRLF/LF warning)
  • The model did not verify the result by rereading the files before continuing

Files Affected

Permission Mode

Accept Edits was ON (auto-accepting changes)

Can You Reproduce This?

Yes, every time with the same prompt

Steps to Reproduce

_No response_

Claude Model

Sonnet

Relevant Conversation

Impact

Critical - Data loss or corrupted project

Claude Code Version

2.1.119

Platform

Anthropic API

Additional Context

_No response_

View original on GitHub ↗

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