[BUG]

Resolved 💬 1 comment Opened Apr 20, 2026 by riseres Closed May 27, 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?

I have attached a screenshot. As you can see, the PR request banner is very annoying. Sometimes I don't want to make a pull request; I want you to have the dismiss option to close it, do not show it again, or toggle, because it's very annoying, and I want to use it. I don't know how to close this.

  1. I do not use the main branch; I cannot change it. I don't know where, because when I want to start a new session, I choose the dev branch, but it still got the main branch. I cannot merge into the main branch, because it will auto build and deploy on GitHub or CI/CD anywhere else. It should be changeable , and it should be initial from the starting section that I have chosen.

<img width="3024" height="1528" alt="Image" src="https://github.com/user-attachments/assets/fa18616c-5008-4862-a9ca-6e1384165e5a" />

What Should Happen?

I did follow the guideline to set an environment, but it still didn't work. It still shows anyway.

PR Banner: The environment variable CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1 should remove the PR workflow prompts, but if it's not working, there may be a configuration issue.

Error Messages/Logs

Steps to Reproduce

  1. Start a new session. Check the worktree and change from the main branch to another branch like the depth branch.
  2. Pick the gear icon (setting icon) and put the environment to one.
  3. Then we start a new section. You will see that, in step three, when the section is started, you will see the banner still the main dev. The banner should disappear because we have set the environment.

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

claude code for mac : Claude 1.3109.0 (35cbf6) 2026-04-16T20:32:01.000Z

Platform

Other

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗