Skip to content

Critical Bug: Code Revisions Being Repeatedly Reverted #8072

@merl-dev

Description

@merl-dev

Bug Description

Claude Code is repeatedly reverting previously fixed code issues, causing the same bugs to reappear multiple times within days. This forces users to fix the same issues repeatedly, wasting time and resources.

Specific Example

In the nominingue-dev project, we've had to fix the following issue at least 3 times in recent days:

  • Issue: 48-hour weather data and GPS coordinates for media files not appearing in PDF reports
  • Files affected: /api/generate-multiple-visite-reports.php, /api/generate-visite-report.php
  • Pattern: The fix is applied, works correctly, then mysteriously reverts in subsequent sessions

Impact

  • Wasted development time fixing the same issues repeatedly
  • Loss of user confidence in the tool
  • Unpredictable behavior making production use risky
  • Financial cost due to repeated API calls for the same fixes

Expected Behavior

Once code is fixed and committed to a branch, those changes should persist and not be reverted unless explicitly requested by the user.

Actual Behavior

Previously fixed code issues reappear as if the fixes were never made, requiring the same corrections to be applied multiple times.

Environment

  • Project: nominingue-dev
  • Branch: hotfix/v1.33.1-gps-condensed-reports
  • Platform: Linux (EC2 instance)
  • Claude Code version: Latest as of 2025-09-23

Severity

HIGH - This is causing significant productivity loss and making the tool unreliable for production use.

Suggested Investigation Areas

  1. Check if Claude Code is incorrectly caching old file versions
  2. Verify that file edits are being properly persisted to disk
  3. Check for race conditions in file reading/writing operations
  4. Investigate if there's an issue with git integration reverting changes

This needs urgent attention as it's severely impacting the usability and reliability of Claude Code for serious development work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreautocloseIssue will be closed automaticallybugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions