Repository navigation
Description
Description
The Update branch / Rebase controls (update-pr-from-base-branch) and the commits-behind notice (pr-base-commit) do not appear on the current GitHub PR conversation UI.
Expected: on a conflict-free PR whose head branch has diverged from the base, show both branch-update controls and the commits-behind notice.
Actual: the native merge box appears, but those Refined GitHub additions are missing. This still reproduces in the released extension after clearing its cache under Options → Debugging → Clear cache.
Console error from Refined GitHub 26.10:
❌ Refined GitHub: update-pr-from-base-branch
ElementNotFoundError: Expected element not found: [class*="PullRequestHeaderSummary"] a[class^="PullRequestBranchName"],.base-ref
The selectors still depend on old GitHub CSS-module names:
- The branch helper expects
PullRequestHeaderSummary/PullRequestBranchName; the current header usessummaryContainer__…anda[data-component="BranchName"]. - The update-controls insertion selector expects
MergeBoxSectionHeader-module__contentLayout; the current container usescontentLayout__…. - The commits-behind observer expects
MergeBoxSectionHeader-module__wrapper; the current wrapper useswrapper__…/wrapperLayout__….
On the linked PR, all three original selectors match zero elements. A local selector-only patch restores both features on the live page: Update branch and Rebase render, and the notice reads “It’s 7 commits behind”. No branch update/rebase was executed. The local patch also passes regression tests for the current and previous markup.
Investigated with assistance from Codex.
How to replicate the issue + URL
- Use the released Refined GitHub extension with a token configured and
update-pr-from-base-branch/pr-base-commitenabled. - Clear the extension cache in Options → Debugging → Clear cache.
- Open the PR conversation above using GitHub’s current PR UI, then reload it and scroll to Merge info / No conflicts with base branch.
- Observe that Update branch, Rebase, and the commits-behind notice are missing; inspect the browser console for the selector error above.
At reproduction time the PR is open, mergeable, and its head has diverged from the base (7 commits behind). The exact count will change as the base branch advances.
Extension version
26.10
Browser(s) used
Google Chrome 155.0.8059.80 on macOS
Token ⚠️
- I set a token in the options page. I understand that some features require a token to work.
Activity