[BUG] When adding a prompt to a session that ended up as a Merged PR, the Agent produced a blank never-ending response.
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?
[BUG] When adding a prompt to a session that ended up as a Merged PR, the Agent produced a blank never-ending response.
Title: Session hangs with blank never-ending response after PR merge and branch deletion
Description:
After merging a PR and deleting its branch, attempting to add a new prompt to the session results in a blank response that never completes. The loading animation (ellipsis) in the left column continues indefinitely.
Environment:
- Claude Code: 1.7196.0 (2dbd78) built 2026-05-12T05:34:40.000Z
- macOS: 26.3.1 (a) (25D771280a)
Actual Behavior:
- Agent produces a blank response
- Loading animation (ellipsis) appears in the left sidebar and never stops
- Response never completes
- Issue persists even after restarting the session
What Should Happen?
Expected Behavior:
- Agent should process the new prompt normally
- A response should be generated and displayed
Error Messages/Logs
Steps to Reproduce
Steps to Reproduce:
- Create a Claude Code session and work on a feature
- Submit the work as a pull request
- Have the PR reviewed (e.g., via Copilot)
- Merge the PR and delete the branch
- Return to the Claude Code session
- Type a new prompt in the input field and press Enter
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
1.7196.0 (2dbd78) built 2026-05-12T05:34:40.000Z
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
<img width="1375" height="1082" alt="Image" src="https://github.com/user-attachments/assets/2714047a-0f08-4f0f-bcf3-2906e150ffff" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗