[BUG] Pull request created against wrong branch
Resolved 💬 2 comments Opened Mar 25, 2026 by EvanHaklar Closed Mar 25, 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?
In Claude Code Desktop App on MacOS
Claude 1.1.8629 (befdfc) 2026-03-24T22:13:01.000Z
After claude code makes code changes against a selected origin branch (main-claude) a PR is automatically created against a different origin branch (main).
What Should Happen?
The generated PR should be compared against the selected origin branch "main-claude"
Error Messages/Logs
Steps to Reproduce
- Branch main to main-claude in Github
- Request to plan code changes selecting Repository, Branch "main-claude." Plan mode, Opus 4.6.
- Approve the plan, code changes are executed.
- PR is automatically created.
- View PR
- PR for the claude-generated branch is against origin\main and not origin\main-claude.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude 1.1.8629 (befdfc) 2026-03-24T22:13:01.000Z
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗