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:

  1. Request database-related changes with detailed visual and written guidance
  2. Claude Code attempts implementation but encounters issues that it can't resolve
  3. Instead of asking for help or leaving changes in place, automatically reverts to the last commit
  4. 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.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗