Repository navigation
fix(ui): close stale group dialogs after connection changes - #170067
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
October 12, 2026 18:05
steipete
enabled auto-merge (squash)
October 12, 2026 18:13
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 13, 2026
This was referenced Oct 16, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Problem This Solves
Fixes existing group rename and new-session-defaults dialogs carrying an earlier connection’s intent into a replacement connection after a switch or reconnect.
User Impact
Open dialogs close when their connection retires. Reopening the group menu allows a fresh rename or defaults change on the current connection. Creating a new group retains its existing reconnect-and-retry behavior.
Why This Change Was Made
Both existing-group actions now retain the mutation scope that opened the dialog through submission. The shared modal host owns abort and Solid cleanup; a pending save from a retired dialog cannot settle a newly opened dialog or release its guard. The Control UI documentation explains when to reopen the menu.
Evidence
The original rendered sidebar/controller flow reproduced both defects: after switching connections, the old rename reached the replacement session capability and the old defaults could overwrite its directory. The regression cases cover both connection replacement and reconnect, refuse the retired submit, and then prove a freshly opened dialog still works. A separate lifecycle case covers a late save completion after reopening.
Focused final-source proof used the repository Vitest wrapper with
--maxWorkers=1:app-sidebar.interactions.test.tspassed 74 tests in 10.759s wall;session-group-defaults-dialog.test.tspassed 3 tests in 4.089s. The four new sidebar cases cost 126/184/100/103ms, and the late-save lifecycle case cost 125ms. CI timing will be available from the PR run. Existing new-group retry and group-deletion sibling tests remain green.Production UI types and the exact
core-test-ui-componentsgraph passed, together with scoped lint, formatting, styles, line/size/assertion/Lit checks, MDX, andgit diff --check. Fresh independent review is clean at P2 after correcting its event-handler finding.Synthetic mock-Gateway browser flows passed in Chromium and WebKit, including actual menu clicks, reconnect, modal retirement, reopening, and the resulting Gateway request. The inspected before/after screenshots below come from Chromium; WebKit ran the same interaction and request assertions without the Chromium-specific capture adapter. This is isolated browser boundary proof; no live saved-profile or provider claim is made.
The attachments below show rename before/after, followed by defaults before/after, immediately after reconnect.
Exact-head CI 38288528802 passed. In hosted UI shard 1/3, the four new sidebar cases took 236/214/219/220ms, and the late-save case took 146ms. The complete sidebar interaction module took 11.638s and defaults-dialog module 0.345s.