Skip to content

fix(ui): gate system information at the shared reader - #160982

Merged
Patrick-Erichsen merged 3 commits into
mainfrom
openclaw/scope-ui-04-systems-20260929
Oct 2, 2026
Merged

Patrick-Erichsen merged 3 commits into
mainfrom
openclaw/scope-ui-04-systems-20260929

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: Session-only operators trigger denied host-information reads when opening chat, Devices, Connection settings, Appearance, New Session, or System busyness.

User Impact

User impact: These views remain usable without host-information access. Authorized readers retain host statistics, platform labels, shared polling, and platform-specific workspace actions, including pages opened in the background. Server scopes and grants are unchanged; no migration or configuration action is required.

Why This Change Was Made

All automatic system.info reads now use the existing shared reader and the Gateway's advertised method plus operator.read grant. The reader also checks the current connection and permissions before exposing cached or delayed results. This removes the chat header's permanent per-client cache and the separate advertisement-only helper; presentation gates stop unavailable polling.

Evidence

  • Current chat-header scope proof.

  • Catalog/sidebar test repair evidence.

  • Debug fixture before/after proof.

  • Before editing, the mounted Devices regression and eight shared-reader cases failed on current main. The bundled chat-header test sent one denied system.info request for session-only scopes. After the repair it sends zero; read-only and read+admin each send one, and admin retains Reveal in Finder.

  • 232 tests across ten owner/caller files passed with --maxWorkers=1: the final main run took 17.21 s wall and the Config observer run took 2.88 s. Coverage includes cached/in-flight retirement, shared cancellation, reconnect/provider changes, authorized polling, Appearance, Debug, and New Session. Regression cases also prove background-to-visible resumption and delayed header results after connection replacement; both foreground-resume cases failed before their lifecycle repair.

  • 18 production-bundle browser scenarios passed in 23.89 s across the dedicated chat-header, Systems workspace, and New Session suites. The harness rebuilt the bundle before running. Synthetic mock-Gateway request observations and inspected screenshots establish UI behavior; this run did not alter a live identity or Gateway.

  • CI exposed a stale shared browser fixture: it supplied system.info responses without advertising the method. The unchanged Debug diagnostics flow reproduced the failure locally; adding the current core method to the default mock catalog restores it. Seven Debug/header browser scenarios pass in 30.11 s, including vitals while session-list reads are held. No production change was needed.

  • Broader CI exposed two test-target defects: the Models publication flow released an earlier Appearance prepared-only request, and the sidebar owner filter matched the distinct People filter. Both reproduced locally (2 failed / 11 passed); after targeting the Models projection and exact sessions control, all 13 scenarios passed in 26.48 s on the final typed candidate. Production and behavioral assertions remain unchanged. Final changed-file checks and fresh default-priority review also passed.

  • check:changed passed all gates, including eight core test type graphs, production UI typecheck, format, coercion, unused-export scans, and changed-file lint.

  • Independent Codex review: no P0–P2 findings; final default-priority review also found no actionable findings after foreground-resume and type-import fixes. Final-head CI passed at 2bbaedb4490f743345b28cbfdb3a8be0ae857127, including every bundled and both real-Gateway browser shards.

The original Devices before/after images below are retained as historical evidence from 18905f968ad5; they are pixel-identical because this is a request-suppression fix. Current chat-header proof likewise preserves the menu while reducing denied traffic.

Before
Before: Devices same visual state with denied reads

After
After: Devices same visual state without denied reads

Review notes and proof scope

The architectural owner is ui/src/lib/system-info.ts; all automatic UI requests now converge there. The existing canCallGatewayMethod and shared operator-scope implications remain authoritative in the renderer. The server descriptor still requires operator.read.

Production delta: +37 lines (103 added, 66 removed); tests and test support: +346 lines. Growth adds final owner/permission validation, stops unavailable compact-tray polling, and resumes deferred foreground reads, while removing duplicate caches and gates. Header menu opening remains immediate while the existing reactive platform label updates asynchronously. No config, protocol, dependency, or stored-data surface changes.

ClawSweeper revision 9 reviewed final head 2bbaedb4490f on October 2 at 20:55 UTC: no actionable findings, before-merge actions, or Rank-up moves; browser proof accepted. The local measurements above apply to the repaired candidate; the final test-target repairs are included in that review. Final-head CI also passed.

Named follow-up: chat workspace-menu loading still issues worktrees.list/worktrees.branches without corresponding read/write presentation gates. Those separate methods retain server authorization and are outside this system-information owner repair.

Contributor credit: Patrick requested the audit-backed repair.

Work sessions

Final-head CI test cost

Measured from passing jobs in CI run 37063152814, source 2bbaedb4490f743345b28cbfdb3a8be0ae857127. These are per-file test durations, not job setup or build time.

Changed test Seconds
ui/src/pages/new-session/draft-place-browser.test.ts 0.106
ui/src/lib/system-info.test.ts 0.018
ui/src/pages/debug/debug-overlay-access.test.ts 0.020
ui/src/pages/devices/devices-page.test.ts 3.176
ui/src/pages/connection/connection-page.test.ts 0.956
ui/src/pages/config/config-page.session-observer.test.ts 0.040
ui/src/pages/chat/chat-pane-system-info.test.ts 0.181
ui/src/e2e/model-providers-progressive.e2e.test.ts 13.272
ui/src/e2e/session-owner-filter-header.e2e.test.ts 1.955
ui/src/e2e/chat-header-system-info.e2e.test.ts 2.687

Current main independently received the identical two sidebar locator corrections in 12e5f8dac63c; the shared-reader and Models test repairs remain necessary.

The combined required status needed one security-workflow rerun after GitHub temporarily omitted the completed run from its workflow-list response. Both required openclaw/ci-gate entries then passed on the same source head.

@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 5:08 PM ET / 21:08 UTC (Revision 10).

ClawSweeper review

What this changes

The Control UI consolidates automatic host-information reads, suppresses requests without read access, rejects stale results, and repairs affected browser fixtures.

Merge readiness

✅ Ready for maintainer review

The repair remains necessary on current main. The pinned patch has no actionable correctness findings, and the supplied browser-boundary proof supports the intended behavior.

Priority: P2
Reviewed head: 2bbaedb4490f743345b28cbfdb3a8be0ae857127

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful browser-boundary evidence, lifecycle coverage, successful exact-head CI, and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The shared reader and chat-menu caller are exercised through the production UI bundle with a deterministic Gateway: reported request observations show zero session-only host reads, successful authorized reads, and retained workspace actions; inspected before/after images support presentation parity. Lifecycle regressions supplement this proof. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The shared reader and chat-menu caller are exercised through the production UI bundle with a deterministic Gateway: reported request observations show zero session-only host reads, successful authorized reads, and retained workspace actions; inspected before/after images support presentation parity. Lifecycle regressions supplement this proof. No stored-data contract changes.
Evidence reviewed 8 items Pinned introduction: Inspected the introduced production and test hunks from the verified merge base to the original PR head. The stale test-merge candidate was not used to infer removal of current-main behavior.
Shared request boundary: The reader checks the existing method/grant predicate before requesting data and rechecks client, hello, credential revision, permissions, and cancellation before returning it. Callers retain immediate menus and resume deferred foreground discovery.
Existing server contract: The unchanged core descriptor requires operator.read for system.info; the UI repair consumes the existing grant contract without changing server authorization.
Findings None None.
Security None None.

How this fits together

The Control UI reads Gateway host information to display statistics, machine names, and platform-specific workspace actions. Its shared reader combines connection capabilities and operator grants before supplying those details to pages.

flowchart TD
  A[UI pages and chat menus] --> B[Shared host-information reader]
  C[Connection and operator grants] --> B
  B --> D{Read available?}
  D -->|No| E[Unavailable presentation]
  D -->|Yes| F[Shared Gateway request]
  F --> G[Recheck connection and grants]
  G --> H[Current host details]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +37, Tests +346. Total +383 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 10 103 66 +37
Tests 12 397 51 +346
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 500 117 +383

Review metrics

Metric Value Why it matters
Production versus regression coverage production +37 net lines; tests and support +346 net lines Production growth is explained by final connection/grant validation and foreground resumption while duplicate caches and gates are removed.

Technical review

Best possible solution:

Keep one connection-scoped host-information reader that preserves authorized details and makes unavailable reads an intentional UI state.

Do we have a high-confidence way to reproduce the issue?

Yes: current-main source issues system.info reads without checking operator.read, and the supplied production-bundle scope scenario reports the denied session-only request. This review did not execute the reproduction.

Is this the best way to solve the issue?

Yes: the patch repairs the existing shared reader, removes competing request paths, and preserves authorized presentation using the established grant predicate.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4aa24e3a1340.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This fixes limited-scope denied UI reads and stale host-information results without changing server grants or stored settings.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The shared reader and chat-menu caller are exercised through the production UI bundle with a deterministic Gateway: reported request observations show zero session-only host reads, successful authorized reads, and retained workspace actions; inspected before/after images support presentation parity. Lifecycle regressions supplement this proof. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The shared reader and chat-menu caller are exercised through the production UI bundle with a deterministic Gateway: reported request observations show zero session-only host reads, successful authorized reads, and retained workspace actions; inspected before/after images support presentation parity. Lifecycle regressions supplement this proof. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction: Inspected the introduced production and test hunks from the verified merge base to the original PR head. The stale test-merge candidate was not used to infer removal of current-main behavior. (2bbaedb4490f)
  • Shared request boundary: The reader checks the existing method/grant predicate before requesting data and rechecks client, hello, credential revision, permissions, and cancellation before returning it. Callers retain immediate menus and resume deferred foreground discovery. (ui/src/lib/system-info.ts:45, 2bbaedb4490f)
  • Existing server contract: The unchanged core descriptor requires operator.read for system.info; the UI repair consumes the existing grant contract without changing server authorization. (src/gateway/methods/core-descriptors.ts:385, 2bbaedb4490f)
  • Current-main necessity: Fetched main still checks only connection state in the shared reader and returns shared results without the new final permission/owner check. New Session also retains its separate direct request. (ui/src/lib/system-info.ts:38, 4aa24e3a1340)
  • Latest-release comparison: The same ungated shared-reader implementation exists in v2026.9.7, so the central repair is not already present in the supplied latest release. (ui/src/lib/system-info.ts:38, c074824a27c9)
  • Browser-boundary proof: The captured discussion reports production-bundle Gateway request observations: session-only host reads change from one denied request to zero, while read-only/admin retain one successful read and admin retains Reveal in Finder. Inspected all four prepared local images; they preserve Devices and session-only Copy path presentation. Traffic claims are supported by the reported request observations and the scope-matrix browser scenario, rather than screenshots alone. Source: fix(ui): gate system information at the shared reader #160982 (comment). (ui/src/e2e/chat-header-system-info.e2e.test.ts:88, 2bbaedb4490f)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Shakker: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-29T05:55:23.671Z sha caff65c33a17293746cdf4c5adb7db9b5e69ffce :: blocked before merge. :: [P3] Report the changed test's measured cost
  • reviewed 2026-09-29T06:35:40.958Z sha caff65c33a17293746cdf4c5adb7db9b5e69ffce :: needs changes before merge. :: [P3] Report the modified test file’s CI seconds
  • reviewed 2026-09-29T07:14:56.796Z sha 18905f9 :: needs changes before merge. :: [P3] Record CI cost for the changed test files
  • reviewed 2026-09-29T07:35:44.395Z sha 18905f9 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-01T05:20:48.438Z sha 18905f9 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-01T05:31:25.209Z sha 18905f9 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-02T20:36:56.202Z sha 5d57375 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-02T20:55:59.897Z sha 2bbaedb :: needs maintainer review before merge. :: none

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 29, 2026 05:48
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 29, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/scope-ui-03-discussion-20260929 branch from 82ffb48 to 3703df1 Compare September 29, 2026 07:06
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/scope-ui-04-systems-20260929 branch from caff65c to 18905f9 Compare September 29, 2026 07:06
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

The PR body now reports exact-head CI duration for both changed test files: Devices 2.242 s (checks-ui 3/3), scoped chat E2E 7.881 s (checks-ui-e2e 8/9). Both were selected and passed; the body links the jobs and preserves the existing screenshot evidence.

@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 29, 2026
@roboclaw-bot
roboclaw-bot removed this pull request from stack #160986 October 1, 2026 05:14
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 1, 2026
@Patrick-Erichsen
Patrick-Erichsen deleted the branch main October 2, 2026 19:34
Preserve authorized host details and foreground discovery while suppressing
denied automatic reads. Retire cached and in-flight results when their
connection or read scope changes, and remove the separate header cache.

Co-authored-by: Patrick-Erichsen <[email protected]>
@Patrick-Erichsen Patrick-Erichsen changed the title fix: avoid denied system information reads fix(ui): gate system information at the shared reader Oct 2, 2026
@Patrick-Erichsen
Patrick-Erichsen changed the base branch from openclaw/scope-ui-03-discussion-20260929 to main October 2, 2026 20:14
@Patrick-Erichsen
Patrick-Erichsen force-pushed the openclaw/scope-ui-04-systems-20260929 branch from 18905f9 to 56b4d3d Compare October 2, 2026 20:15
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Rebased the isolated system-information repair onto main and completed the shared-reader cutover. Session-only chat-header system.info traffic changes from 1 denied request to 0; read/admin keep 1 successful request, and admin keeps Reveal in Finder. The Copy path menu remains usable in all three inspected captures.

232 owner/caller tests pass; 18 production-bundle browser scenarios pass. Shared reads reject stale cached/in-flight results after permission or connection changes. Background-opened name/platform discovery resumes when presented, and delayed menu reads cannot overwrite a replaced connection. Menu opening remains immediate. No server grants were changed. Fresh independent review found no actionable defects.

Attached in order: baseline session-only, repaired session-only, repaired read-only, and repaired admin. These captures use the production UI with a deterministic mock Gateway; they do not change a live identity or server grant.

@clawsweeper re-review

Before: session-only header with denied system read

After: session-only header without system read

After: read-only header remains usable

After: admin retains Reveal in Finder

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Fixed the exact-head CI failure in debug-diagnostics.e2e.test.ts. The shared mock Gateway supplied host statistics without advertising system.info; the new capability gate correctly suppressed that unadvertised read. Added the current core method to the default fixture catalog. No production change was needed.

Before: the unchanged browser scenario failed at the 432 MB memory assertion and rendered Unavailable. After: the same scenario passes and shows 432 MB / 25% CPU. All seven Debug/header scenarios pass (30.11 s), including the independent vitals polling and scope matrix. Fresh default-priority review is clean.

The attached captures show the stale-fixture failure and corrected-fixture result from the production UI bundle with synthetic Gateway data.

debug-before

debug-after

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 2, 2026
@Patrick-Erichsen

Patrick-Erichsen commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Reproduced and repaired the two browser-test failures from the final-head CI run. No production code changed.

  • Models publication: the default Gateway fixture now activates Appearance’s legitimate prepared-only catalog read. The test was releasing that earlier request before the Models page admitted its own request. It now waits/counts the ordinary catalog projection and retains the model name, selection, stale-result, and refresh assertions.
  • Sidebar owner filter: the fuzzy Filter & sort selector matched both sessions and the newer Filter & sort people control. The same failure occurs on current main. Both affected locators now select the exact sessions control, preserving count, filter, clear, and class assertions.

Same production-bundle test command before: 2 failed, 11 passed. After: all 13 passed in 30.47 s. Fresh default-priority review is clean. Required changed checks are running before publication.

Published as 2bbaedb4490f743345b28cbfdb3a8be0ae857127; final typed browser run: 13/13 passed in 26.48 s. Final changed-file checks and fresh default-priority review passed. Exact-head CI is running.

@Patrick-Erichsen
Patrick-Erichsen merged commit 6347c0c into main Oct 2, 2026
126 of 127 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Merged via squash.

@Patrick-Erichsen
Patrick-Erichsen deleted the openclaw/scope-ui-04-systems-20260929 branch October 2, 2026 21:11
vincentkoc added a commit that referenced this pull request Oct 2, 2026
* commit '79be075e5aa46be9e42dbd53ed6e30e81469210a': (33 commits)
  fix(ui): keep selected-text comment input readable while scrolling (#163772)
  test(memory): open corpus database explicitly
  fix: bound Doctor migration capture to plugin data (#163780)
  fix(ui): gate system information at the shared reader (#160982)
  chore(db): reclassify worker inventory sites with caller evidence (#163754)
  refactor(channels): deslop Slack and Matrix (#163740)
  fix(agents): reject empty sessions_search queries in the tool schema (#129120)
  perf(nodes): load only what a worker turn needs (#160442)
  test(cli): assert concise Gateway failure copy in CLI process tests (#163649)
  refactor(discord): deslop discord (#163728)
  fix(workboard): make Sessions boards work on multi-agent Gateways (#163761)
  test(gateway): add sustained heap retention diagnostics (#163764)
  test(ui): disambiguate session filter controls
  refactor(plugins): deslop imessage, mattermost, and voice-call (#163767)
  fix(qa): run Telegram plugin source in --source-gateway userbot runs (#163718)
  feat(macos): add a --no-activate launch flag for background automation (#163758)
  fix(agents): preserve host authority across module reloads (#163725)
  perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (#163690)
  fix: keep video widgets scrollable and preload initial frames (#163762)
  feat(memory): add a provider-neutral memory provider runtime (#162175)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
* fix(ui): gate system information at the shared reader

Preserve authorized host details and foreground discovery while suppressing
denied automatic reads. Retire cached and in-flight results when their
connection or read scope changes, and remove the separate header cache.

Co-authored-by: Patrick-Erichsen <[email protected]>

* test(ui): advertise system information in browser fixtures

* test(ui): target catalog and sidebar requests precisely

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: Patrick-Erichsen <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Oct 3, 2026
* commit '1fda703fb4d3630e4633461967b2a2186e8f15fd': (33 commits)
  fix(ui): keep selected-text comment input readable while scrolling (openclaw#163772)
  test(memory): open corpus database explicitly
  fix: bound Doctor migration capture to plugin data (openclaw#163780)
  fix(ui): gate system information at the shared reader (openclaw#160982)
  chore(db): reclassify worker inventory sites with caller evidence (openclaw#163754)
  refactor(channels): deslop Slack and Matrix (openclaw#163740)
  fix(agents): reject empty sessions_search queries in the tool schema (openclaw#129120)
  perf(nodes): load only what a worker turn needs (openclaw#160442)
  test(cli): assert concise Gateway failure copy in CLI process tests (openclaw#163649)
  refactor(discord): deslop discord (openclaw#163728)
  fix(workboard): make Sessions boards work on multi-agent Gateways (openclaw#163761)
  test(gateway): add sustained heap retention diagnostics (openclaw#163764)
  test(ui): disambiguate session filter controls
  refactor(plugins): deslop imessage, mattermost, and voice-call (openclaw#163767)
  fix(qa): run Telegram plugin source in --source-gateway userbot runs (openclaw#163718)
  feat(macos): add a --no-activate launch flag for background automation (openclaw#163758)
  fix(agents): preserve host authority across module reloads (openclaw#163725)
  perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (openclaw#163690)
  fix: keep video widgets scrollable and preload initial frames (openclaw#163762)
  feat(memory): add a provider-neutral memory provider runtime (openclaw#162175)
  ...
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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

2 participants