GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): a finished pairing no longer closes a newly opened Add Environment dialog by StiensWout · Pull Request #39089 · pingdotgg/t3code Conversation
Contributor
Direct pairing, SSH connection, and T3 Connect route registration could finish after dismissal and close a reopened Add Environment dialog or show an inline error from the previous attempt. The dialog now checks that the opening which started the attempt is still current before closing or showing an inline error. Successful operations still show their confirmation, and a T3 Connect route registration that fails after dismissal reports the failure in a toast. Reproduction on mainCommit dcaff67177 (main). The first pairing finishes and closes the dialog you reopened. The cause is at EvidenceEnvironment: boat.dev default machine, Linux x64, a fresh checkout of each commit Steps: A finished pairing leaves the reopened Add Environment dialog open: browser.route "http://127.0.0.1:34499/.well-known/t3/environment"; app.open ; expect.not.toHaveURL //pair(?:[?#]|$)/; app.open /settings/connections; locator.tap locator("#remote-environments button[aria-label="Add environment"]"); locator.fill getByRole("dialog", name: "Add Environment") >> getByPlaceholder("backend.example.com"); locator.fill getByRole("dialog", name: "Add Environment") >> getByPlaceholder("PAIRCODE"); locator.tap getByRole("dialog", name: "Add Environment") >> getByRole("button", name: "Add environment"); locator.tap getByRole("dialog", name: "Add Environment") >> getByRole("button", name: "Close"); locator.waitFor getByRole("dialog", name: "Add Environment") → hidden; locator.tap locator("#remote-environments button[aria-label="Add environment"]"); locator.waitFor getByRole("dialog", name: "Add Environment") → visible; locator.waitFor getByText("Backend added") → visible; locator.waitFor locator("#remote-environments") >> getByText(/\bConnected\b/) → visible; app.screenshot after-first-pairing-finishes; expect.toBeVisible getByRole("dialog", name: "Add Environment"). Proven: the scenario fails on base 475ae52ac2 and passes on head 25ef7293bd.
Scenario source:
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Out of Scope Changes check | The pairing and SSH session guards in AddEnvironmentDialog.tsx match #39088 and the PR objectives. The head commit 8c7ddc1 ('keep the reopened-dialog guard to pairing and SSH') and the PR objective… |
Provide readable whole-PR diff evidence for AddEnvironmentDialog.tsx at the route-registration section (and the matching test hunks) relative to the merge base 475ae52. Confirm whether the route-registration code matches main at head 8c7… |
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title names the main change: a finished pairing no longer closes a newly opened Add Environment dialog. The raw summary and PR objectives both describe the dialog session guard for direct pairing,… | |
| Description check | The description follows the repository template sections: Problem, Change, Scope, Verification, and an agent attribution line. The Problem and Change sections are clear. The Scope section links issue … | |
| Linked Issues check | [#39088] requires that a reopened Add Environment dialog stays open when an earlier pairing finishes after dismissal. At head 8c7ddc1, AddEnvironmentDialog.tsx captures savedBackendSessionRef.curre… |
Explanation
The title names the main change: a finished pairing no longer closes a newly opened Add Environment dialog. The raw summary and PR objectives both describe the dialog session guard for direct pairing, SSH connection, and remote pairing failures. The title is specific and matches the changeset. It is a conventional commit title, and the length of 83 characters is acceptable. Note that the title says 'pairing' while the change also covers SSH connections, which is a narrower scope but still a real part of the change.
Explanation
The description follows the repository template sections: Problem, Change, Scope, Verification, and an agent attribution line. The Problem and Change sections are clear. The Scope section links issue #39088 and explains the bug. The Verification section gives a reproduction on main, a proof run on base and head, screenshots, recordings, and test commands. The template's guidance on verification is met. The description has no explicit 'Scope' statement that the change is a bug fix rather than a feature, but the linked issue covers that. Minor gap: the Scope section does not restate that the issue is the bug report, and the 'Left open after review' notes are unresolved review items left in the body. Those are not template sections, but they do not make the description incomplete.
Explanation
[#39088] requires that a reopened Add Environment dialog stays open when an earlier pairing finishes after dismissal. At head 8c7ddc1, AddEnvironmentDialog.tsx captures savedBackendSessionRef.current before the remote pairing await. It closes the dialog only when session === savedBackendSessionRef.current. Pairing failures set the inline error only for the current session. handleOpenChange(false) increments the session, so the reopened dialog has a new session. The pairing success toast is still shown after the guard. The SSH path (connectSavedBackendSshTarget) uses the same guard for close and error. The head commit message and the current PR description disagree on T3 Connect route registration, but that path does not affect the pairing and SSH requirements in #39088. Limit of evidence: the file read was truncated at 16000 bytes before the route-registration section, so that section was not read. The browser test file and e2e scenario were not read in this review; the previous assessment cited them and they are not required to establish the pairing behavior.
Explanation
The pairing and SSH session guards in AddEnvironmentDialog.tsx match #39088 and the PR objectives. The head commit 8c7ddc1 ('keep the reopened-dialog guard to pairing and SSH') and the PR objectives say T3 Connect route registration stays as on main. The current PR description still says a T3 Connect route registration failure after dismissal is reported in a toast. The whole-PR diff could not be read: the diff operation reported missing changed blobs, and the file read was truncated before the route-registration section of AddEnvironmentDialog.tsx. The previous summary also describes the route-registration hunk as changed. Therefore it is not established whether the head still changes route-registration behavior. That change would be outside #39088, which covers pairing and SSH only. The browser test additions and the e2e scenario were not read in this review, so their scope is also unverified.
Resolution
Provide readable whole-PR diff evidence for AddEnvironmentDialog.tsx at the route-registration section (and the matching test hunks) relative to the merge base 475ae52. Confirm whether the route-registration code matches main at head 8c7ddc1. If it differs from main, either revert it or document how it relates to #39088, and update the PR description to match the head commit.
f111bbae-de95-474f-be58-5b96ed050045apps/web/src/components/settings/AddEnvironmentDialog.browser.test.tsxapps/web/src/components/settings/AddEnvironmentDialog.tsxIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Leave T3 Connect route registration as on main; it is outside the reported pairing bug and was not shown fixed in the real app. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The automated pipeline stopped on this pull request and will not merge it: the proof was not accepted:
It stays open for a person to finish or close. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: A finished pairing closes a newly opened Add Environment dialog
There was an error while loading. Please reload this page.