claude-code - 💡(How to fix) Fix [BUG] Edited N times [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#54818Fetched 2026-04-30 06:35:06
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3closed ×1commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Status line says 'Edited N files' but counts each Edit call rather than distinct files. Misleading.

What Should Happen?

'Edited N files' should be exactly that.

Error Messages/Logs

Steps to Reproduce

Any multiple-edit to the same file.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude 1.5354.0 (9a9e3d) 2026-04-29T01:14:34.000Z

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by modifying the logic that updates the 'Edited N files' status line to count distinct files instead of individual edit calls.

Guidance

  • Review the code responsible for updating the 'Edited N files' status line to identify where the count is being incremented.
  • Modify the count logic to use a data structure (e.g., a set) that automatically eliminates duplicates, ensuring each file is only counted once.
  • Verify the fix by performing multiple edits on the same file and checking that the status line accurately reflects the number of distinct files edited.
  • Consider adding a test case to ensure this functionality works as expected in different scenarios.

Example

No code example is provided due to lack of specific code context in the issue.

Notes

The exact implementation details may vary depending on the programming language and framework used by Claude Code. This guidance assumes a general programming context.

Recommendation

Apply workaround: Modify the count logic to accurately reflect distinct files edited, as the issue is identified as a regression and the last working version is not specified.

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

claude-code - 💡(How to fix) Fix [BUG] Edited N times [1 comments, 2 participants]