Repository navigation
refactor(ui): consolidate gateway host/status onto the Gateway settings page - #114971
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 4:05 AM ET / 08:05 UTC. ClawSweeper reviewWhat this changesThe branch renames the visible Connection settings page to Gateway and moves the existing Gateway host status, resource meters, polling, and settings-search target from General onto that unchanged settings route. Merge readinessThis is a coherent, proof-backed Control UI cleanup with no concrete patch defect found. Keep it open for the protected maintainer review path: the current head is cleanly mergeable but behind Priority: P3 Review scores
Verification
How this fits togetherControl UI settings pages consume the browser Gateway client’s connection snapshot and optional system-information response. This change places Gateway access controls, host status, and handshake details on one Gateway settings page while leaving General to global preferences. flowchart LR
A[Gateway handshake and system info] --> B[Browser Gateway client]
B --> C[Gateway settings page]
C --> D[Access and credential controls]
C --> E[Gateway host status]
F[Settings sidebar search] --> C
G[General settings] --> H[Global preferences]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +143, Tests +25. Total +168 across 20 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase or update this focused UI consolidation onto current Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reorganizes existing Control UI settings rather than reporting a failing behavior. The supplied before/after live screenshots directly show the intended relocation. Is this the best way to solve the issue? Yes, conditionally: moving the existing host panel, polling, and search target to the existing connection route is the narrowest maintainable solution because it keeps the route and credential handling intact while co-locating Gateway information. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7072ba50e2ff. LabelsLabel 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
History |
|
Merged via squash.
|
…gs page (openclaw#114971) * refactor(ui): move gateway host panel and connection status to the Gateway page * test(ui): update e2e expectations for the Gateway settings page move
* refactor(ui): consolidate page rendering and trim speculative recovery Reuse the canonical retained Lit-content owner for the composer, resolve New Session defaults through one owner, filter palette choices once, and render stacked/total usage bars through one rectangle path. Supported rendering, features, authorization and both migration paths remain intact. Remove duplicate warm-prefetch alias-clock validation and the debug panel's within-animation remeasurement/retargeting; keep their existing owners. Best-effort tradeoffs accepted: - Remove the companion post-rejoin history barrier from #125107. The synthetic initial-read/rejoin timing window has no cited human incident; a racing row appears on the next refresh/reopen/reconnect. Keep stable IDs, durable history, live wizard state and ambiguous-turn non-replay. - Remove old-Gateway system.info error classification from #114971. Core methods already share version and advertisement/read admission (#160982); unexpected unknown-method errors now remain visible and retry normally. - Remove warm-prefetch alias-clock comparisons from #137947's synthetic scenario. An unopened cached transcript may lag; foreground open still revalidates its cursor and retains account/identity/deletion ownership. - Remove debug body-size retargeting from #162315's synthetic E2E. A size change within the 160ms animation settles at finish; ordinary animation, reduced motion, drag/resize and same-mode continuity stay. Remove unused reconnect() left by the completed #170758 Solid cutover. Net production reduction: 181 lines; remove 107 mechanism-only test lines. Focused retained page/owner tests: 216 passed; synthetic capture: 1 passed. Expanded/minimized Debug frames are byte-identical before/after, inspected and synthetic. No changelog, schema, protocol, dependency or config change. * refactor(ui): consolidate sidebar and overlay presentation Use reactive JSX props for sidebar adapters, share rendered-ancestry observation between tooltips and hovercards, and consolidate picker placement and fixed menu rows. Keep the Lit/Solid shipping paths, DOM classes, text, authorization, focus, resource handling, and asynchronous overlay animation generations unchanged. Best-effort tradeoffs accepted: - Same-call show/hide listeners replacing or disconnecting their overlay no longer have intent-token fencing; the next ordinary request reconciles state. - Reopening from a native-close callback no longer triggers compensating reopen; the accepted close wins until a later ordinary user request. - Recursive self-retirement from a hide callback has no separate retirement protocol; ordinary disposal and descendant retirement are retained. - Children created during the parent's native-close callback receive no second late-child sweep; normal descendants retire before native mutation. These removed mechanisms came from synthetic callback cases in #169128, with no cited human actual-use incident. Preserve ordinary veto and browser input behavior; remove only the tests that pin the retired synchronous protocols. * refactor(ui): retain getter calls for new-session links * test(ui): align companion rejoin request expectation * refactor(ui): retain main overlay behavior after inconclusive replays * refactor(ui): retain main agent switcher after inconclusive replay Drop the agent-menu avatar/property cleanup after the WebKit scroll case failed in bundle CI but passed focused replays at both head and main. Preserve main's implementation under the coordinator's conservative-cut rule; do not claim the browser failure repaired.
…72582) * refactor(ui): consolidate page rendering and trim speculative recovery Reuse the canonical retained Lit-content owner for the composer, resolve New Session defaults through one owner, filter palette choices once, and render stacked/total usage bars through one rectangle path. Supported rendering, features, authorization and both migration paths remain intact. Remove duplicate warm-prefetch alias-clock validation and the debug panel's within-animation remeasurement/retargeting; keep their existing owners. Best-effort tradeoffs accepted: - Remove the companion post-rejoin history barrier from openclaw#125107. The synthetic initial-read/rejoin timing window has no cited human incident; a racing row appears on the next refresh/reopen/reconnect. Keep stable IDs, durable history, live wizard state and ambiguous-turn non-replay. - Remove old-Gateway system.info error classification from openclaw#114971. Core methods already share version and advertisement/read admission (openclaw#160982); unexpected unknown-method errors now remain visible and retry normally. - Remove warm-prefetch alias-clock comparisons from openclaw#137947's synthetic scenario. An unopened cached transcript may lag; foreground open still revalidates its cursor and retains account/identity/deletion ownership. - Remove debug body-size retargeting from openclaw#162315's synthetic E2E. A size change within the 160ms animation settles at finish; ordinary animation, reduced motion, drag/resize and same-mode continuity stay. Remove unused reconnect() left by the completed openclaw#170758 Solid cutover. Net production reduction: 181 lines; remove 107 mechanism-only test lines. Focused retained page/owner tests: 216 passed; synthetic capture: 1 passed. Expanded/minimized Debug frames are byte-identical before/after, inspected and synthetic. No changelog, schema, protocol, dependency or config change. * refactor(ui): consolidate sidebar and overlay presentation Use reactive JSX props for sidebar adapters, share rendered-ancestry observation between tooltips and hovercards, and consolidate picker placement and fixed menu rows. Keep the Lit/Solid shipping paths, DOM classes, text, authorization, focus, resource handling, and asynchronous overlay animation generations unchanged. Best-effort tradeoffs accepted: - Same-call show/hide listeners replacing or disconnecting their overlay no longer have intent-token fencing; the next ordinary request reconciles state. - Reopening from a native-close callback no longer triggers compensating reopen; the accepted close wins until a later ordinary user request. - Recursive self-retirement from a hide callback has no separate retirement protocol; ordinary disposal and descendant retirement are retained. - Children created during the parent's native-close callback receive no second late-child sweep; normal descendants retire before native mutation. These removed mechanisms came from synthetic callback cases in openclaw#169128, with no cited human actual-use incident. Preserve ordinary veto and browser input behavior; remove only the tests that pin the retired synchronous protocols. * refactor(ui): retain getter calls for new-session links * test(ui): align companion rejoin request expectation * refactor(ui): retain main overlay behavior after inconclusive replays * refactor(ui): retain main agent switcher after inconclusive replay Drop the agent-menu avatar/property cleanup after the WebKit scroll case failed in bundle CI but passed focused replays at both head and main. Preserve main's implementation under the coordinator's conservative-cut rule; do not claim the browser failure repaired.
What Problem This Solves
Gateway connection information was spread across General, Connection, and About. General rendered full host resource stats plus a compact connected/version footer, while Connection owned the editable Gateway credentials and a separate handshake snapshot.
Why This Change Was Made
The existing Connection route is the natural owner for Gateway access and runtime status. This change renames its visible label to Gateway, moves the existing Gateway Host panel and 10-second host poll there, removes the redundant snapshot uptime row, and makes settings search follow the panel to its new route and anchor. General now keeps only global preferences: config status/apply, Model & Thinking, and Language.
Current main also uses system.info on Appearance to show the Session Observer's server-resolved utility model. That independent consumer remains Appearance-only; General no longer requests or receives host state.
User Impact
Users now find Gateway URL/token/password/session controls, host identity and resource meters, and the latest connection snapshot on one Gateway settings page. Existing /settings/connection deep links continue to work because the route id and path are unchanged. Connect and credential handling are unchanged.
Evidence
Real behavior proof (live Control UI, scratch gateway)
Redacted captures from a scratch gateway (isolated state dir, token auth, no real credentials). Base:
raw.githubusercontent.com/steipete/openclaw-pr-assets/main/settings-restructure-2026-07/pr114971/Before (main): General carries the Gateway Host panel and a Connected/version footer while Connection is a separate page:
After (this branch): the renamed Gateway page owns Access → Gateway Host → Snapshot (duplicate uptime row removed); General holds only global preferences: