-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature or problem you’d like to solve
For better or worse, Claude Code will periodically try to find the pull request for my current branch using this:
github:list_pull_requests(owner: "<owner>", repo: "<repo>", head: "<branch_name>", state: "open")
The problem is that list_pull_requests
doesn't take a head
parameter, nor does it reject the request as invalid. Instead, it happily returns all the open pull requests, immediately exhausting Claude's context window.
Proposed solution
Reject requests if unsupported parameters are provided. This would hint to the LLM that this approach is likely wrong.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request