Skip to content

[BUG] gitStatus in the system reminder gets stale #3901

Closed as duplicate
Closed as duplicate

Description

@ohmantics

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • 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

  1. Work with Claude Code a bunch doing git operations.
  2. Ask Claude to cleanup old feature branches that were merged on origin and switch back to the main branch.
  3. Issue a /clear when ready.
  4. 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.

Activity

  1. ohmantics commented on Jul 18, 2025

    @ohmantics
    Author

    Claude suggested him issuing a git status and that didn't clear it. Using /exit and restarting Claude finally reset gitStatus to be accurate.

  2. benreynwar commented on Jul 30, 2025

    @benreynwar

    Claude suggested him issuing a git status and that didn't clear it. Using /exit and restarting Claude finally reset gitStatus to be accurate.

    I observed the same issue that /clear didn't refresh gitStatus. /exit also worked for me.

  3. github-actions commented on Aug 16, 2025

    @github-actions

    Found 2 possible duplicate issues:

    1. [BUG] After /clear command some context seems to be kept in memory? #2538
    2. [BUG] clear not reloading config #4840

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  4. added
    duplicateThis issue or pull request already exists
    and removed
    bugSomething isn't working
    platform:linuxIssue specifically occurs on Linux
    on Aug 20, 2025
  5. github-actions commented on Aug 20, 2025

    @github-actions

    This issue has been automatically closed as a duplicate of #2538.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  6. github-actions commented on Aug 28, 2025

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  7. locked as resolved and limited conversation to collaborators on Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions