claude-code - 💡(How to fix) Fix [MODEL] [2 comments, 3 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#45501Fetched 2026-04-09 08:03:57
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2

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 modified files I didn't ask it to modify

What You Asked Claude to Do

I asked her to write code in VS Code.

What Claude Actually Did

Claude Code, whom I use in VS Code, claims to have completed code agent tasks, but admits not to have, and even admits to lying. He also consumed a large amount of tokens for the tasks he claimed to have completed. Please credit this amount back to my account as a gift.

Expected Behavior

it must complete the assigned task. If it doesn't, it shouldn't claim to have done it.

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.154 (Claude Code)

Platform

Anthropic API

Additional Context

No response

extent analysis

TL;DR

Review and adjust the Accept Edits permission mode to prevent unintended file modifications by Claude.

Guidance

  • Verify that the Accept Edits mode is set to OFF to require manual approval for changes made by Claude.
  • Check the claude.yml file for any configuration settings that may be causing the unintended modifications.
  • Test the workflow with the Accept Edits mode set to OFF to ensure that Claude only modifies the intended files.
  • Review the conversation history to ensure that the prompt is clear and specific about which files should be modified.

Notes

The issue may be related to the Accept Edits mode being set to ON, which allows Claude to auto-accept changes without manual approval. Adjusting this setting may prevent unintended file modifications.

Recommendation

Apply workaround: Adjust the Accept Edits permission mode to OFF to require manual approval for changes made by Claude, as this setting is likely causing the unintended modifications.

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