[MODEL] Claude Code pushed to git without waiting for user confirmation despite instructions

Status Open
Maintainer reply None cached
Activity 0 comments · opened Aug 22, 2026

Preflight Checklist

  • [x] I have searched existing issues for similar behavior reports
  • [x] This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Claude modified files I didn't ask it to modify

What You Asked Claude to Do

Despite explicit instructions to always ask for confirmation before pushes, Claude Sonnet 5 displayed a message asking for confirmation and then in the same action pushed the change. A Claude generated description of the event is attached,

bugreportunconfirmedpush.md

What Claude Actually Did

  1. Claude has explicit instruction to never push without confirmation
  2. Claude made requested changes
  3. Claude printed a message asking for confirmation to push
  4. Claude immediately pushed without waiting for confirmation

Expected Behavior

Claude should have:

  1. Made the changes
  2. Printed the message asking for confirmation
  3. Stopped and waited for confirmation or further instructions

Files Affected

A push to my git project which then automatically triggers a build of the development environment.

Permission Mode

I don't know / Not sure

Can You Reproduce This?

No, only happened once

Steps to Reproduce

_No response_

Claude Model

Sonnet

Relevant Conversation

See attached file

Impact

Low - Minor inconvenience

Claude Code Version

1.32885.1

Platform

Anthropic API

Additional Context

_No response_

View original on GitHub ↗