You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): clear stale pull request resolution error when editing input - #45095
When a pull request reference fails to resolve in the Checkout pull request dialog and is edited to another reference, the previous resolution error stays visible alongside "Resolving pull request..." instead of clearing until the new reference settles.
Change
Gate pullRequestResolution.error on !isResolving in PullRequestThreadDialog. Validation and checkout errors keep precedence; re-entering a failed PR restores its error. Added a browser test covering in-flight refetch and the 450 ms debounce.
Scope
Web Checkout pull request dialog bug fix; small obvious fix, no separate issue needed.
Verification
An AI agent ran each check below.
Setup: Linux 7.0.0-44-generic x86_64, headless Chromium (light, 1280x800, 2x DPR), isolated T3CODE_HOME and empty GH_CONFIG_DIR, input sent through the debugging port.
Steps: Open only21mil-fixtures/pr-watch-filter-fixture → Branch selector → search #99999 → Checkout pull request → wait for error → edit to #1 → capture while resolving.
Base: commit and before-run 263d3488fd; latest upstream/main8f2c090a93 (0 commits touch the dialog or callers); clean git merge-tree --write-tree (f901c6017e).
In the Checkout pull request dialog, pullRequestResolution.error was rendered without checking whether resolution was in progress. After one reference failed, editing the input or refetching the failed reference kept the previous resolution error visible alongside the resolving spinner.
Gate pullRequestResolution.error on !isResolving so stale resolution errors clear while debouncing or refetching, and add a browser regression test covering both transitions and re-entry.
Reviewing files that changed from the base of the PR and between 4e03424 and 09d3283.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The dialog now hides pull request resolution errors while resolution is in progress. A browser test covers error visibility during pending resolution, reference changes, and failed resolution.
Changes: Resolution error visibility
Layer / File(s)
Summary
Resolution error display and browser coverage apps/web/src/components/PullRequestThreadDialog.tsx, apps/web/src/components/PullRequestThreadDialog.browser.test.tsx
The dialog suppresses the resolution error while resolution is in progress. The browser test checks error visibility during pending resolution, a debounced reference change, and failed resolution.
The Checkout pull request dialog no longer shows a stale lookup error next to "Resolving pull request...". The change is small, easy to revert, and covered by a browser regression test, so it looks ready to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "fix(web): clear stale pull request resolution error when editing input" describes the main change: the stale PR resolution error is no longer shown while a reference is resolving or being d…
Description check
The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section explains the stale error next to "Resolving pull request..." and gives re…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "fix(web): clear stale pull request resolution error when editing input" describes the main change: the stale PR resolution error is no longer shown while a reference is resolving or being debounced. It follows conventional commit style and names the affected area (web) and behavior. The title is specific and matches the diff, which gates pullRequestResolution.error on !isResolving in PullRequestThreadDialog.
Full details: Description check
Explanation
The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section explains the stale error next to "Resolving pull request..." and gives reproduction steps. The Change section names the gate on !isResolving and the new browser test. The Scope section states this is a bug fix and why no issue is linked. The Verification section gives a failing-first run, a passing run, before/after screenshots, and check:changed results, and it lists what was not shown. It also includes the required agent model line. Minor gaps: the Verification section does not restate the template's rule about evidence hosting beyond gist links, and the Scope section does not link an issue, which the template accepts for small obvious fixes. The description is complete enough to pass.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Real web app, fresh synthetic data, real GitHub lookups, 1280×800, light theme on both commits. In a local draft, open Checkout pull request for #99999, wait for its error, then edit toward #45095 at 200 ms intervals. Base shows the stale not-found error with the spinner; head shows only the spinner. Both resolve the existing PR, and head still displays the error when #99999 fails again.
Scenario driver. scenarios:prove exited 0: fails on base and passes on head.
Not shown:
An independent refetch of the same failed reference without editing was not explicitly triggered; this proof covers input edits and returning to the previously failed reference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When a pull request reference fails to resolve in the Checkout pull request dialog and is edited to another reference, the previous resolution error stays visible alongside "Resolving pull request..." instead of clearing until the new reference settles.
Change
Gate
pullRequestResolution.erroron!isResolvinginPullRequestThreadDialog. Validation and checkout errors keep precedence; re-entering a failed PR restores its error. Added a browser test covering in-flight refetch and the 450 ms debounce.Scope
Web Checkout pull request dialog bug fix; small obvious fix, no separate issue needed.
Verification
An AI agent ran each check below.
Setup: Linux 7.0.0-44-generic x86_64, headless Chromium (light, 1280x800, 2x DPR), isolated
T3CODE_HOMEand emptyGH_CONFIG_DIR, input sent through the debugging port.Steps: Open
only21mil-fixtures/pr-watch-filter-fixture→ Branch selector → search#99999→ Checkout pull request → wait for error → edit to#1→ capture while resolving.Base: commit and before-run
263d3488fd; latestupstream/main8f2c090a93(0 commits touch the dialog or callers); cleangit merge-tree --write-tree(f901c6017e).PR 99999 not-found error stays beside "Resolving pull request..." on PR 1.
Only "Resolving pull request..." shows on PR 1; PR 99999 error cleared.
Links
apps/web/src/components/PullRequestThreadDialog.browser.test.tsxNot shown
PullRequestThreadDialog), non-Linux browsers.Automated verification (failing-first, passing browser test, check:changed)
Generated with Gemini 4 Neon in T3 Code Nightly