During a rebase with detached HEAD, the branch name can be empty or resolve to empty after stripping refs/heads/. This caused gh to return arbitrary PRs and created invalid cache keys like "path::". Guard all branch-to-cache-key paths: getPRForBranch bails before acquiring the semaphore, renderer components skip cache lookups, and syncPRChecksStatus validates the normalized branch.