Repository navigation
fix(ui): keep reconnects, browser tabs, and localized search consistent - #115221
Conversation
f6db9cd to
0baa10c
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 10:27 AM ET / 14:27 UTC. ClawSweeper reviewWhat this changesThis PR prevents retired Gateway and browser clients from updating the Control UI, removes a successfully deleted browser tab before reconciliation, normalizes accented Settings-search text, and restores shared test history after a navigation test. Merge readinessKeep this PR open for maintainer merge review: the supplied diff is a focused repair for four linked current-main regressions, but the branch is behind current Priority: P1 Review scores
Verification
How this fits togetherThe Control UI receives Gateway events and remote-browser snapshots, then projects them into the active connection identity, event history, tab strip, and screenshots. Settings search separately filters localized labels before rendering matching configuration sections. flowchart LR
A[Gateway sockets] --> B[Event ownership guard]
B --> C[Control UI identity and activity]
D[Browser tab operations] --> E[Client-bound snapshot reconciliation]
E --> F[Tabs and screenshots]
G[Localized Settings text] --> H[NFC-normalized search]
Decision needed
Why: The four linked regressions are concrete, but the protected label requires explicit human handling and the currently reported merge state is behind the base branch. Before merge
Agent review detailsSecurityNone. PR surfaceSource +18, Tests +167. Total +185 across 8 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto current Do we have a high-confidence way to reproduce the issue? Yes, at source level: the linked reports provide deterministic client-replacement, failed-tab-refresh, and Unicode-normalization paths, each covered by focused regression tests in this PR. The supplied context reports failing-first confirmation on main, though it was not independently executed during this read-only review. Is this the best way to solve the issue? Yes, based on the supplied patch: client ownership is enforced at the Gateway and browser lifecycle boundaries, deletion state is retired at the committed DELETE boundary, and Unicode normalization stays local to Settings search rather than altering global text handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9feb6ad16187. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: test(codex): de-flake attempt turn-watch timing tests (#115258) fix: preserve retryable ACPX lease ownership (#115247) fix: serialize ACPX lease ownership transitions fix: retain ACPX leases across wrapper reconnects refactor: parse ACPX lease command identity fix: preserve OpenClaw profile env in macOS launch-at-login plist (#99752) refactor(config): retire compaction truncateAfterCompaction gate (#115206) improve(ui): reduce duplicate chat startup work (#114743) fix(ui): keep reconnects, browser tabs, and localized search consistent (#115221) perf(pr): cache complete small file lists (#115199) perf(sqlite): skip no-op automatic schema repair (#115193) docs(browser): correct Docker sandbox setup (#115254) fix(ui): avoid duplicate session refreshes during startup (#114764) # Conflicts: # ui/src/pages/agents/panels-tools-skills.browser.test.ts
* origin/main: test(codex): de-flake attempt turn-watch timing tests (#115258) fix: preserve retryable ACPX lease ownership (#115247) fix: serialize ACPX lease ownership transitions fix: retain ACPX leases across wrapper reconnects refactor: parse ACPX lease command identity fix: preserve OpenClaw profile env in macOS launch-at-login plist (#99752) refactor(config): retire compaction truncateAfterCompaction gate (#115206) improve(ui): reduce duplicate chat startup work (#114743) fix(ui): keep reconnects, browser tabs, and localized search consistent (#115221) perf(pr): cache complete small file lists (#115199) perf(sqlite): skip no-op automatic schema repair (#115193) docs(browser): correct Docker sandbox setup (#115254) fix(ui): avoid duplicate session refreshes during startup (#114764)
…nt (openclaw#115221) * fix(ui): fence stale gateway and browser lifecycles * test(ui): restore history after agent tool navigation
Closes #115215
Closes #115216
Closes #115217
Closes #115218
What Problem This Solves
Fixes an issue where users reconnecting or switching Gateways could see a stale connection overwrite their current identity or browser snapshot. Fixes an issue where closing an active browser tab would reselect the deleted tab if the follow-up tab refresh failed. Fixes localized Settings searches that missed visually identical composed and decomposed accented text.
Why This Change Was Made
Keep each Gateway event, browser snapshot, and screenshot attached to the client that owns it. Retire a successfully deleted browser tab immediately, retain an existing fallback when reconciliation fails, and normalize Settings search terms at the search boundary without changing global text or generated translations.
The first hosted full-suite run also revealed that the existing agent-tools browser test left its clicked URL fragment in shared history, causing three unrelated moved-Settings-route regressions. This PR fixes the contamination at its source: the browser test now restores the exact previous URL in a finally block before the next test runs.
User Impact
Gateway reconnects no longer display another connection's identity, tabs, or activity. Closing the last or active browser tab cannot resurrect the removed tab. Localized Settings searches consistently match accented text entered by keyboards, input methods, or copy and paste. Full-suite Settings route regressions no longer inherit the agent tool navigation hash.
Evidence
Blacksmith delegated success is established by its wrapper exit status and timing JSON; the ephemeral backing Actions session can be marked cancelled during successful Testbox cleanup.