claude-code - 💡(How to fix) Fix [BUG] Sustainability.tsx file repeatedly reverting to previous version, causing excessive credit consumption [1 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#46716Fetched 2026-04-12 13:34:56
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

Credit refund for repeated work caused by system error Credit refund for repeated work caused by system error

Error Messages/Logs

Credit refund for repeated work caused by system error

Root Cause

Request

Credit refund for repeated work caused by system error

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?

Problem

The file src/app/pages/Sustainability.tsx keeps reverting to its previous state across sessions, causing the same modifications to be repeated multiple times and consuming credits unnecessarily.

Timeline

  1. Previous session: Modifications marked as "completed" in session summary
  2. Current session: File was actually in old state, had to re-apply all changes
  3. After some time: File reverted to old state again

Modifications that keep getting lost

  • Title: "Sustainability" → "지속가능경영"
  • Removed "Our Commitment" section
  • Changed tab structure to sticky header with max-w-[1280px]
  • Changed ESG card colors from green to sky/blue gradients
  • Changed all green color classes to sky

Credit waste

These same modifications have been applied multiple times due to this reversion issue.

Session ID

[현재 세션 ID를 여기 넣으세요]

Request

Credit refund for repeated work caused by system error

What Should Happen?

Problem

The file src/app/pages/Sustainability.tsx keeps reverting to its previous state across sessions, causing the same modifications to be repeated multiple times and consuming credits unnecessarily.

Timeline

  1. Previous session: Modifications marked as "completed" in session summary
  2. Current session: File was actually in old state, had to re-apply all changes
  3. After some time: File reverted to old state again

Modifications that keep getting lost

  • Title: "Sustainability" → "지속가능경영"
  • Removed "Our Commitment" section
  • Changed tab structure to sticky header with max-w-[1280px]
  • Changed ESG card colors from green to sky/blue gradients
  • Changed all green color classes to sky

Credit waste

These same modifications have been applied multiple times due to this reversion issue.

Session ID

[현재 세션 ID를 여기 넣으세요]

Request

Credit refund for repeated work caused by system error

Error Messages/Logs

Steps to Reproduce

Problem

The file src/app/pages/Sustainability.tsx keeps reverting to its previous state across sessions, causing the same modifications to be repeated multiple times and consuming credits unnecessarily.

Timeline

  1. Previous session: Modifications marked as "completed" in session summary
  2. Current session: File was actually in old state, had to re-apply all changes
  3. After some time: File reverted to old state again

Modifications that keep getting lost

  • Title: "Sustainability" → "지속가능경영"
  • Removed "Our Commitment" section
  • Changed tab structure to sticky header with max-w-[1280px]
  • Changed ESG card colors from green to sky/blue gradients
  • Changed all green color classes to sky

Credit waste

These same modifications have been applied multiple times due to this reversion issue.

Session ID

[현재 세션 ID를 여기 넣으세요]

Request

Credit refund for repeated work caused by system error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

1

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue may be resolved by identifying and addressing the root cause of the file reversion, potentially related to the Anthropic API or Claude Code version.

Guidance

  • Verify that the modifications are being saved correctly in the current session by checking the file state before and after applying changes.
  • Investigate potential issues with the Anthropic API, such as incorrect configuration or version incompatibility, that may be causing the file reversion.
  • Check for any caching or syncing issues that could be causing the file to revert to its previous state.
  • Consider reaching out to the Claude Code support team for further assistance, as this issue may be related to a regression in the platform.

Notes

The lack of information about the last working version and additional details about the setup makes it challenging to provide a more specific solution. The issue may be related to a specific configuration or version incompatibility.

Recommendation

Apply workaround: Try to manually save and verify the modifications in the current session, and then check if the changes persist across sessions. If the issue persists, consider reaching out to the Claude Code support team for further assistance.

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