Claude Code automatically reverts to the last working commit without user confirmation when unable to successfully implement the requested changes.
Resolved 💬 5 comments Opened Sep 4, 2025 by deryakarl Closed Jan 7, 2026
Environment:
- Platform: Anthropic API
- Claude CLI version: 1.0.72 (Claude Code)
- Operating System: macOS 13.0.1
- Terminal: Terminal App
Bug Description:
Claude Code automatically reverts to the last working commit without user confirmation when unable to successfully implement the requested changes.
Steps to Reproduce:
- Request database-related changes with detailed visual and written guidance
- Claude Code attempts implementation but encounters issues that it can't resolve
- Instead of asking for help or leaving changes in place, automatically reverts to the last commit
- No permission requested from the user before reverting changes
Expected Behaviour: Should ask for user confirmation before reverting changes or leave partial work in place for user review.
Actual Behaviour: Automatically reverts to the last working commit without permission when implementation fails.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗