Today, a pull command with no PULL number takes the newest pull on the current branch from any author. If someone else opens a pull from the same branch name, pr view shows theirs and pr comment can post on it.
This PR ranks the branch's pulls: your open pull from this checkout's repo and branch first, then your other pulls, then everyone else's, newest first within a rank. Reads take the best and name the others on stderr; pr comment refuses with exit 2 when the top rank is ambiguous, so a write can no longer land on another account's pull.
🤖 Generated with Claude Code