Skip to content

fix(ui): close stale group dialogs after connection changes - #170067

Merged
steipete merged 1 commit into
mainfrom
codex/qa1076-group-dialog-owner
Oct 12, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa1076-group-dialog-owner

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

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.ts passed 74 tests in 10.759s wall; session-group-defaults-dialog.test.ts passed 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-components graph passed, together with scoped lint, formatting, styles, line/size/assertion/Lit checks, MDX, and git 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.

Before: old rename dialog remains after reconnect

After: retired rename dialog closes and Alpha stays unchanged

Before: old defaults dialog remains after reconnect

After: retired defaults dialog closes and can be reopened safely

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.

@steipete
steipete marked this pull request as ready for review October 12, 2026 18:05
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L labels Oct 12, 2026
@steipete
steipete enabled auto-merge (squash) October 12, 2026 18:13
@steipete
steipete merged commit e3ed194 into main Oct 12, 2026
138 of 141 checks passed
@steipete
steipete deleted the codex/qa1076-group-dialog-owner branch October 12, 2026 18:17
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant