Skip to content

refactor(ui): consolidate gateway host/status onto the Gateway settings page - #114971

Merged
steipete merged 2 commits into
mainfrom
steipete/gateway-page-consolidation
Jul 28, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/gateway-page-consolidation

Conversation

@steipete

@steipete steipete commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

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

  • node scripts/run-vitest.mjs ui/src/pages/connection — 2 files, 9 tests passed
  • node scripts/run-vitest.mjs ui/src/pages/config — 12 files, 126 tests passed
  • node scripts/run-vitest.mjs ui/src/i18n — 4 files, 71 tests passed
  • node scripts/run-vitest.mjs ui/src/components/settings-sidebar.test.ts ui/src/app-navigation.test.ts ui/src/pages/config/settings-search.test.ts — 3 files, 93 tests passed
  • pnpm ui:i18n:baseline — raw-copy baseline 106 entries; English catalog 4137 keys; no raw-copy file delta
  • node scripts/check-changed.mjs -- <19 changed files> — Blacksmith Testbox exit 0; formatting, i18n, typechecks, guards, and lint passed
  • autoreview --mode uncommitted — clean, no accepted/actionable findings

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:

General (host panel + footer) Connection (old)
before general before connection

After (this branch): the renamed Gateway page owns Access → Gateway Host → Snapshot (duplicate uptime row removed); General holds only global preferences:

Gateway page General (slim)
after gateway after general

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 28, 2026
@steipete
steipete marked this pull request as ready for review July 28, 2026 05:59
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 28, 2026
@clawsweeper

clawsweeper Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 4:05 AM ET / 08:05 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 2 items remain

This 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 main, and the remaining UI/E2E and broader checks should finish against a refreshed merge result before landing.

Priority: P3
Reviewed head: 7d2212644b0be99714a0eefe3ab5598a687360b9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The branch has strong direct UI proof and focused coverage, with no discrete correctness finding; landing confidence depends on refreshing the behind branch and completing the in-progress merge-head checks.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Redacted before/after screenshots from a live scratch Gateway directly show the intended General-to-Gateway settings relocation and the consolidated Gateway page.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Redacted before/after screenshots from a live scratch Gateway directly show the intended General-to-Gateway settings relocation and the consolidated Gateway page.
Evidence reviewed 6 items Connection page becomes the status owner: The branch imports the existing connection-page styling, subscribes to Gateway snapshots, polls system information every 10 seconds, and passes host state into the Connection view; the existing connection route and credential controls remain the owner boundary.
Search and deep-link target follow the moved panel: Gateway Host search results now navigate to the unchanged connection route and its new host-section anchor instead of General, preserving a direct path to the relocated UI.
General is narrowed without changing configuration semantics: The General quick-settings renderer removes the host panel and connection footer while retaining model, thinking, language, and config-status behavior; no config schema, default, migration, or credential-storage surface is changed in the supplied diff.
Findings None None.
Security None None.

How this fits together

Control 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]
Loading

Before merge

  • Resolve merge risk (P1) - The current branch is behind main; refresh the merge result and let the remaining UI/E2E checks complete before landing, because a three-way merge is the relevant validation target.
  • Complete next step (P2) - No mechanical repair is identified; a maintainer should review the refreshed merge head and the remaining UI/E2E check results before deciding whether to land.
Agent review details

Security

None.

PR surface

Source +143, Tests +25. Total +168 across 20 files.

View PR surface stats
Area Files Added Removed Net
Source 11 507 364 +143
Tests 9 283 258 +25
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 20 790 622 +168

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Rebase or update this focused UI consolidation onto current main, preserve the /settings/connection route contract, and land once the refreshed merge head passes the remaining Control UI validation.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Rebase or update this focused UI consolidation onto current main, preserve the /settings/connection route contract, and land once the refreshed merge head passes the remaining Control UI validation.

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.

Labels

Label justifications:

  • P3: This is a low-risk settings information-architecture cleanup with direct visual proof and no demonstrated change to Gateway connection, credential, or configuration behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Redacted before/after screenshots from a live scratch Gateway directly show the intended General-to-Gateway settings relocation and the consolidated Gateway page.
  • proof: sufficient: Contributor real behavior proof is sufficient. Redacted before/after screenshots from a live scratch Gateway directly show the intended General-to-Gateway settings relocation and the consolidated Gateway page.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Redacted before/after screenshots from a live scratch Gateway directly show the intended General-to-Gateway settings relocation and the consolidated Gateway page.

Evidence

What I checked:

  • Connection page becomes the status owner: The branch imports the existing connection-page styling, subscribes to Gateway snapshots, polls system information every 10 seconds, and passes host state into the Connection view; the existing connection route and credential controls remain the owner boundary. (ui/src/pages/connection/connection-page.ts, 7d2212644b0b)
  • Search and deep-link target follow the moved panel: Gateway Host search results now navigate to the unchanged connection route and its new host-section anchor instead of General, preserving a direct path to the relocated UI. (ui/src/pages/config/settings-search.ts, 7d2212644b0b)
  • General is narrowed without changing configuration semantics: The General quick-settings renderer removes the host panel and connection footer while retaining model, thinking, language, and config-status behavior; no config schema, default, migration, or credential-storage surface is changed in the supplied diff. (ui/src/pages/config/quick.ts, 7d2212644b0b)
  • Focused regression coverage moves with the behavior: The branch adds Connection-page system-information lifecycle tests and moves rendering/search/navigation assertions to the new Gateway location, including stale-info clearing on disconnect. (ui/src/pages/connection/connection-page.test.ts, 7d2212644b0b)
  • Real behavior proof: The PR body contains redacted before/after live Control UI screenshots from an isolated scratch gateway showing the host panel and snapshot on Gateway and the reduced General page; the supplied context records this as sufficient screenshot proof. (7d2212644b0b)
  • Landing state still needs refresh: GitHub reports the PR as cleanly mergeable but behind the current base, and several UI/E2E and broader checks remain in progress; this is a merge-readiness follow-up, not a patch correctness finding. (7072ba50e2ff)

Likely related people:

  • steipete: Authored both commits that implement the Gateway-page consolidation and its follow-up E2E expectation changes; current-main ownership could not be established more specifically from the supplied read-only evidence. (role: recent area contributor; confidence: low; commits: e784adaeae4e, 7d2212644b0b; files: ui/src/pages/connection/connection-page.ts, ui/src/pages/config/quick.ts, ui/src/e2e/app-chrome-interaction.e2e.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the branch against current main and confirm the resulting merge head retains the Gateway route, search anchor, and General-page scope.
  • Let the remaining Control UI and E2E checks complete on that refreshed head before landing.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-07-28T06:02:55.510Z sha e784ada :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-28T07:40:05.708Z sha e784ada :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 28, 2026
@steipete steipete self-assigned this Jul 28, 2026
@steipete
steipete merged commit b6f8641 into main Jul 28, 2026
92 checks passed
@steipete
steipete deleted the steipete/gateway-page-consolidation branch July 28, 2026 08:24
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…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
steipete added a commit that referenced this pull request Oct 15, 2026
* 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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
…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.
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant