claude-code - 💡(How to fix) Fix [BUG] [BUG] Create PR notification above query line in Claude.app Code window shows changes to untracked files in counts. [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52918Fetched 2026-04-25 06:17:15
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

The "Create PR" notification appears above the query line when the only modified files are Claude environment files that are not tracked and are in untracked/gitignored directories.

What Should Happen?

Changes to untracked files, which do not require a pull request, should not show the Create PR prompt.

Error Messages/Logs

Steps to Reproduce

  1. Make changes to files in .claude inside the current repo.
  2. Observe the Create PR notification appear.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude for Mac 1.3883.0 (93ff6c) 2026-04-21T17:24:01.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

<img width="780" height="626" alt="Image" src="https://github.com/user-attachments/assets/560688d3-40ae-49d9-9dd1-95bcd8097bfb" />

extent analysis

TL;DR

The Create PR notification should be hidden when only untracked Claude environment files are modified.

Guidance

  • Verify that the modified files are indeed in gitignored directories and not tracked by the version control system.
  • Check the Claude Code configuration to see if there's an option to exclude specific directories or file types from triggering the Create PR notification.
  • Investigate the Anthropic API documentation to determine if there's a way to filter out untracked files from the API response.
  • Test the behavior with different types of files and directories to confirm the issue is specific to untracked Claude environment files.

Example

No code snippet is provided as the issue does not imply a specific code-related fix.

Notes

The issue may be related to the Claude Code version or the Anthropic API integration, but without further information, it's difficult to determine the root cause.

Recommendation

Apply a workaround by configuring Claude Code to exclude untracked directories from triggering the Create PR notification, if possible. This is because the issue seems to be related to the notification system rather than a version-specific bug.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] [BUG] Create PR notification above query line in Claude.app Code window shows changes to untracked files in counts. [1 participants]