Skip to content

[MODEL] Opus 4.7. Attention. Alarming error. #52652

@gborderolle

Description

@gborderolle

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 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions