[BUG] Stale "Commit changes" card shown for a directory that is not a git repository

Status Open
Reported on v2.1.211
Maintainer reply None cached
Activity 0 comments · opened Aug 4, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

A session working directory (not a git repository — git status returns "fatal: not a git repository") is showing a persistent "Commit changes" / "SiteA main +8,520 -0" card in the UI. This card appeared and has remained visible across multiple turns, even after reloading the session and restarting the app. The directory in question is an SVN working copy, not a git repo.

What Should Happen?

The "Commit changes" card should not continue to be displayed for a directory that is not a Git repository.

Error Messages/Logs

Steps to Reproduce

While performing some operations during this session, the "Commit changes" card appeared, and it did not disappear even after reloading or restarting the app.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.211 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗