[BUG] gitStatus in the system reminder gets stale
Resolved 💬 5 comments Opened Jul 18, 2025 by ohmantics Closed Aug 20, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.55 (Claude Code)
- Operating System: Ubuntu 24.04
- Terminal: VSCode over ssh
Bug Description
The system reminder apparently keeps a gitStatus piece of info that goes stale
Steps to Reproduce
- Work with Claude Code a bunch doing git operations.
- Ask Claude to cleanup old feature branches that were merged on origin and switch back to the main branch.
- Issue a /clear when ready.
- Ask Claude "what's next?" and he casually mentions a feature branch that isn't the current git branch, doesn't even exist anymore, and Claude is the one who got rid of it.
Expected Behavior
Claude doesn't have any stale info after a /clear, let alone after operations Claude undertook directly.
Actual Behavior
Claude said "Looking at your current branch feature/deployment-improvements and the modified files, it appears you've been working on infrastructure deployment improvements. Let me check what specific tasks or issues might be next." Our current branch was main and no other branches exist locally.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗