Skip to content

refactor(ui): deslop Control UI pages and app shell - #158032

Merged
steipete merged 3 commits into
mainfrom
deslop/l44-ui-pages2
Sep 25, 2026
Merged

steipete merged 3 commits into
mainfrom
deslop/l44-ui-pages2

Conversation

@steipete

@steipete steipete commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Related: #156436

What Problem This Solves

Removes duplicate UI control flow, obsolete rendering, and forwarding layers across Control UI pages and the application shell.

User Impact

Switching Gateways now retires the previous standing-grant ledger and pending revoke state; late results cannot modify the replacement view. The refactor preserves appearance, copy, translations, routes, Gateway RPCs, accessibility, and persisted preferences.

No config schema, Gateway protocol, storage key, persisted JSON shape, or data-model changes; no migration or operator action is required. Memory import and dreaming changes only consolidate existing view logic and field descriptions. Native route memory retains the existing stored route representation.

Why This Change Was Made

The second pages pass and first application-shell pass converge callers on existing owners:

  • Share approval parsing, refresh projection, and question-record hydration; remove duplicate shell forwarding and native-link routing decisions.
  • Serialize preferences directly with the existing normalizers and combine identical server-preference reconciliation loops, preserving stored JSON.
  • Call the chat outbox, authentication, layout, and stream-state owners directly; remove unused list options, duplicate projections, and redundant typed-data checks.
  • Reuse chat attachment, task, metadata, rewind, discussion, and CI-disclosure owners instead of local forwarding interfaces.
  • Combine identical New Session placement projections and composer dispatch; simplify Talk shared helpers and cancellation without changing lifecycle behavior.
  • Describe repeated dreaming phase fields with their existing paths, bounds, defaults, and translation keys.
  • Keep the Devices dialog slot in its dialog controller and share Logbook action settlement under its existing connection-generation owner.
  • Reuse canonical Models, Skills, Workshop, and configuration types, values, and helpers.
  • Share Agents tool-policy labels, Usage detail view-model slices, Activity inspector request lifecycle, and Custodian event classification.

No CSS or top-level ui/src/components/ui/src/lib changes. The first-pass cleanup is retained; its Approvals page is touched only for the independently reproduced ownership bug below. Net production reduction: 1,860 lines (+1,544 / −3,404), across 160 production files, with test changes limited to regression coverage and caller/fixture cutovers. The complete read-through covers all 427 production TypeScript files over 200 lines and the smaller modules/stylesheets.

Fixes Found Along the Way

The Approvals page cleared history on Gateway changes but retained standing grants and pending revoke state. It also applied a completed revoke without checking its captured Gateway/client/generation. The repair clears that scoped state and reuses the history request owner guard for revoke admission and settlement. Four mounted regression cases fail on the original code for stale rows and disabled current-Gateway revoke buttons.

The obsolete older-Gateway setup fallback could also fabricate Ollama/llama.cpp choices when discovery supplied none. Current Gateway producers always supply provider-owned prepare options; the UI now uses only those, with all translation catalog entries retained. The absent-options regression fails on the original fallback.

Compatibility review

The automated compatibility prompts do not identify a changed schema or persisted contract. native-route-memory.ts still writes openclaw.native.lastRoute with { routeId, pathname, search }, reads the same representation, and removes only the existing transient draft parameter; it now uses the shared safe-storage resolver. memory-dreaming.ts preserves each phase's field order, paths, numeric bounds, defaults, enabled fallback, and translation keys in compact descriptors. memory-import/view.ts shares repeated date inputs and action buttons while preserving disabled states, callbacks, and action identifiers; the backfill implementation and data are unchanged. Existing native-route, preference, dreaming, and memory-import suites are included in the passing UI proof. No migration, config conversion, or upgrade action is required.

Evidence

Heavy validation ran remotely through the repository Crabbox wrapper on Blacksmith Testbox, with full source hashes checked before and after execution. Original broad proof used tbx_01m3bjc18k8agr8dd29zh64dyy (run); build, focused repairs, and screenshots used tbx_01m3bppvs77fv4sy34t239sv8z (run); the earlier changed-file gate used tbx_01m3bty728w4zv5dvc3yd4c9j5 (run). Rebase and repair proof also used tbx_01m3by6amjavnnczr1teyahh2m, tbx_01m3c1jygzgbn5eap5gn3xyqhp, and tbx_01m3c2xg3xkwh5de4j5kfk3s81; final completion uses tbx_01m3c443w0rsarekqzpv7qt816 (run). Only one lease was active at a time; all seven lane leases are now stopped. The final lease reports completed, and the wrapper removed its staging checkouts. Lease cleanup is separate from validation; the Actions allocation can show cancellation after a successful external check and deliberate stop.

  • Importer-selected UI proof: 1,029 suites selected; 1,026 passed initially, and the three failed suites passed after repairing a missed canonical import, stale private-getter fixture readers, and an omitted explicit callback argument. The focused repair selection passed 83 cases across four suites. The broad run passed 18,377 cases and retained one pre-existing opt-in real-Chromium skip; no new skip or weakened assertion.
  • Browser/E2E proof: the original selection passed 32 suites / 173 cases; three suites were blocked before page creation by missing Playwright FFmpeg. After installing it, those suites plus the task-suggestion flow passed 31 cases across four suites (57.99 s). Every originally selected E2E suite has passing evidence.
  • Exact-head pnpm build passed in 597.79 s. The pre-rebase full build also passed in 582.90 s. The pinned baseline tree was verified before the run, and final source hashes matched before and after it.
  • Final owner/sibling validation (node scripts/run-vitest.mjs run --config ui/vitest.config.ts --configLoader runner with native bridge, approval-page, Talk input, dictation, Activity view, and Activity reducer files) passed all six suites / 106 cases in 8.63 s command wall.
  • Rebase proof: removing the provider deep-link projection fails both new registered-router cases; the restored projection passes all 18 route tests (3.84 s single-worker wall). Seven related UI suites pass 110 cases (21.42 s); the Models provider-login E2E passes six cases (32.63 s).
  • Exact-head hosted CI passed at 408d8af21a3fc81e1e258be2e43386a2ff7de1e1: 80 successful jobs, 17 intentional skips, and the required CI gates green. The complete UI shards passed 1,513 suites / 25,415 tests with four existing skips.
  • CI repairs preserve the one-argument WebView2 messaging contract and remove a shadowed Lit decorator name. The existing exact-message dictation test caught an attempted media-error simplification; the original media acquisition boundary is retained byte-for-byte. All three UI test shards pass on 408d8af21a3fc81e1e258be2e43386a2ff7de1e1, including that regression, without changing its assertion.
  • The original source fails the four new standing-grant ownership cases and the absent-prepare-options case; the candidate passes Approvals (18 cases), setup options (7), and Devices dialogs (3).
  • Independent Codex autoreview returned scoped-clean for both passes against the pinned rebase base. The subsequent Activity conflict preserves main’s per-render formatter and bounded immutable array updates alongside the same reviewed lookup cleanup; its view suite passed all 10 tests.
  • The assertion-safety baseline removes 24 allowances across 13 UI files using the canonical producer. No allowance increases. The canonical i18n raw-copy baseline also drops two stale timestamp text-node entries after the same R/W labels move into descriptors; no rendered copy or translation key changes.

Exact-head hosted CI, the final remote check-changed gate, and pnpm build pass. All 25 core type-check graphs, the UI type check, and the complete export scans passed. Strict lint passes for every changed TypeScript file. The final node scripts/check-changed.mjs --base 364f1ddf3b6646a016c06fd29ddce3186a39892f -- <all changed TypeScript paths> passed in 845.46 s and covers all 181 changed TypeScript files, retains its canonical assertion-safety and i18n baseline checks, and checks the generated raw-copy baseline byte-for-byte through its canonical producer. The extra standalone oxfmt probe correctly refused this JSON file because the repository intentionally excludes **/*.json; its canonical i18n verifier owns both content and serialization. The completion harness therefore reports exit 1 only for that unsuitable supplemental probe, while the six suites, source gate, and build each report exit 0. The canonical byte-for-byte baseline check passed inside the source gate; a redundant standalone repeat was cancelled during local preparation before any source upload. No formatter rule or ignore exception was changed.

A full-tree preflight also finds the inherited 704/700 line limit in the excluded ui/src/components/app-sidebar-session-list-render.ts from #157890; hosted CI treats that limit as advisory under the existing repository policy. Scoped source checks retain strict severity.

All 23 before/after screenshot pairs were inspected, delivered in the originating chat, uploaded, and verified to render inline in GitHub (16 in this body, seven in the linked comment). Captures use real Chromium with the isolated Vite mock Gateway and synthetic data; there is no production Gateway claim. Fifteen pairs are pixel-identical; the remaining differences are confined to narrow antialiasing/viewport edges, with unchanged visual appearance and content.

Changed test costs

Measured remote command wall time using pnpm test <file> --maxWorkers=1:

Test file Single-worker wall (s) CI execution (s) CI collection (s)
ui/src/pages/approvals/approvals-page.test.ts 3.14 0.245 0.058
ui/src/pages/model-setup/prepare-options.test.ts 1.92 0.003 0.005
ui/src/pages/devices/devices-dialogs.test.ts 2.22 0.165 0.023
ui/src/app/app-host.gateway-lineage.test.ts 6.68 0.467 0.763
ui/src/pages/chat/chat-model-restriction-recovery.test.ts 2.78 0.462 0.469
ui/src/pages/chat/chat-pane-attachment-handoff.test.ts 5.58 0.182 7.251
ui/src/pages/chat/chat-pane.session-discussion.test.ts 2.93 0.262 1.777
ui/src/pages/chat/chat-queue-reorder.test.ts 2.57 0.075 0.136
ui/src/pages/chat/chat-read-reconciliation.test.ts 3.38 0.118 0.545
ui/src/pages/chat/chat-send-attachment-retirement.test.ts 2.82 0.154 0.388
ui/src/pages/chat/chat-send-handoff.test.ts 4.33 0.206 0.435
ui/src/pages/chat/chat-send-readiness.test.ts 2.98 0.742 1.672
ui/src/pages/chat/chat-send-settings.test.ts 2.58 0.078 0.207
ui/src/pages/chat/chat-send-submit.test.ts 2.73 0.441 1.161
ui/src/pages/chat/chat-send.test.ts 4.23 3.468 16.148
ui/src/pages/chat/chat-view.async-questions.test.ts 3.93 2.524 0.323
ui/src/pages/chat/components/chat-transcript-invalidation.test.ts 4.09 3.634 5.611
ui/src/pages/chat/queued-message-edit.test.ts 2.63 0.204 0.543
ui/src/pages/cron/cron-page.delivery-conversations.test.ts 3.12 1.971 7.972
ui/src/pages/usage/view-details.test.ts 2.92 1.011 0.234
ui/src/pages/model-providers/route.test.ts 3.84 0.154 0.227

Exact-head CI run 36127311294 passed all three UI shards. Their test-step wall times were 162 s, 263 s, and 222 s. The per-file CI columns above are Vitest module execution and collection durations under concurrent hosted load; they are not isolated command wall times or additive estimates.

Inspected before/after screenshots (first 16 states)

Each image shows the original on the left and the candidate on the right. All content comes from synthetic fixtures; no private desktop, real account data, secrets, or internal model identities are present.

activity: before and after

advanced-raw-diff: before and after

agents-tools: before and after

appearance: before and after

approval-pending: before and after

approvals-standing-grants: before and after

automations: before and after

channels: before and after

chat-files: before and after

devices-alias-dialog: before and after

devices-remove-dialog: before and after

logbook-detail: before and after

memory-dreaming-phases: before and after

memory-dreaming-schedule: before and after

memory-import-backfill: before and after

model-providers: before and after

Additional inspected screenshot pairs: remaining seven states.

@clawsweeper

clawsweeper Bot commented Sep 25, 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.

@steipete

Copy link
Copy Markdown
Contributor Author

Additional inspected before/after screenshots (7 states). Original on the left; candidate on the right. Synthetic Gateway fixtures only.

model-setup-prepare: before and after

new-session-where: before and after

profile: before and after

skill-workshop: before and after

skills-settings: before and after

usage-context: before and after

usage-details: before and after

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 8:00 AM ET / 12:00 UTC (Revision 5).

ClawSweeper review

What this changes

The branch consolidates Control UI page and app-shell logic, clears standing-grant state when the Gateway changes, and takes model setup choices from Gateway discovery.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open. The branch contains distinct Control UI cleanup and a Gateway-switch approval fix that are not on current main. The inspected changes, regression coverage, and browser evidence support the approach; I found no discrete blocking defect.

Priority: P2
Reviewed head: 408d8af21a3fc81e1e258be2e43386a2ff7de1e1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Visual and browser evidence is strong, and focused source review found no blocking defect; the breadth of the refactor limits certainty.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The production Control UI bundle ran in Chromium against an isolated mock Gateway; inspected before/after screenshots show the changed pages rendering consistently, and the PR records browser checks on the pinned head. Mounted tests cover the Gateway-switch grant behavior, though the screenshots do not demonstrate a live revoke. The changed preference and route writers retain their stored formats, so no data-model migration is indicated.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The production Control UI bundle ran in Chromium against an isolated mock Gateway; inspected before/after screenshots show the changed pages rendering consistently, and the PR records browser checks on the pinned head. Mounted tests cover the Gateway-switch grant behavior, though the screenshots do not demonstrate a live revoke. The changed preference and route writers retain their stored formats, so no data-model migration is indicated.
Evidence reviewed 7 items Gateway-scoped approval state: The PR clears grant rows and pending revoke state on a Gateway reset, then checks the captured Gateway, client, access, and request generation before applying a revoke result.
Approval regression coverage: Mounted cases cover replacement clients and Gateway sources, including late success and failure from an old revoke. The PR body reports that these cases fail on the original implementation and pass on the branch.
Model setup contract: The branch reads provider-owned preparation choices from the discovery result; the current Gateway producer supplies that field. The scoped UI policy says the UI and Gateway ship together and do not carry older-Gateway fallbacks.
Findings None None.
Security None None.

How this fits together

The Control UI receives Gateway snapshots, approval records, model setup choices, and saved browser preferences. Its page controllers turn those inputs into rendered views and send user actions back to the Gateway.

flowchart LR
  A[Gateway snapshots] --> C[Control UI controllers]
  B[Saved preferences] --> C
  C --> D{Current Gateway and request?}
  D --> E[Rendered pages]
  D --> F[Approval and setup actions]
  F --> G[Gateway requests]
Loading

Before merge

  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: ui/src/pages/memory-import/view.ts, serialized state: ui/src/app/native-route-memory.ts, unknown-data-model-change: ui/src/app/native-route-memory.ts, unknown-data-model-change: ui/src/pages/config/memory-dreaming.ts, unknown-data-model-change: ui/src/pages/memory-import/view.ts, unknown-truncated-pull-files, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Retain the single-owner UI paths and Gateway-scoped approval behavior, then land through the normal exact-head merge gates.

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

Yes for the approval defect: current-main source retains old grant and revoke state after a Gateway change, and the branch adds mounted replacement-client and replacement-source cases. I did not execute those cases in this read-only review.

Is this the best way to solve the issue?

Yes. The approval repair uses the existing request-ownership check, and current Gateway discovery owns model preparation choices. The inspected persisted writers retain their existing representations.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5a207d65c7a6.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The production Control UI bundle ran in Chromium against an isolated mock Gateway; inspected before/after screenshots show the changed pages rendering consistently, and the PR records browser checks on the pinned head. Mounted tests cover the Gateway-switch grant behavior, though the screenshots do not demonstrate a live revoke. The changed preference and route writers retain their stored formats, so no data-model migration is indicated.

Label justifications:

  • P2: The PR repairs a limited Control UI approval-state defect while simplifying a broad but non-emergency UI surface.
  • 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): The production Control UI bundle ran in Chromium against an isolated mock Gateway; inspected before/after screenshots show the changed pages rendering consistently, and the PR records browser checks on the pinned head. Mounted tests cover the Gateway-switch grant behavior, though the screenshots do not demonstrate a live revoke. The changed preference and route writers retain their stored formats, so no data-model migration is indicated.
  • proof: sufficient: Contributor real behavior proof is sufficient. The production Control UI bundle ran in Chromium against an isolated mock Gateway; inspected before/after screenshots show the changed pages rendering consistently, and the PR records browser checks on the pinned head. Mounted tests cover the Gateway-switch grant behavior, though the screenshots do not demonstrate a live revoke. The changed preference and route writers retain their stored formats, so no data-model migration is indicated.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The production Control UI bundle ran in Chromium against an isolated mock Gateway; inspected before/after screenshots show the changed pages rendering consistently, and the PR records browser checks on the pinned head. Mounted tests cover the Gateway-switch grant behavior, though the screenshots do not demonstrate a live revoke. The changed preference and route writers retain their stored formats, so no data-model migration is indicated.

Evidence

What I checked:

  • Gateway-scoped approval state: The PR clears grant rows and pending revoke state on a Gateway reset, then checks the captured Gateway, client, access, and request generation before applying a revoke result. (ui/src/pages/approvals/approvals-page.ts:305, 408d8af21a3f)
  • Approval regression coverage: Mounted cases cover replacement clients and Gateway sources, including late success and failure from an old revoke. The PR body reports that these cases fail on the original implementation and pass on the branch. (ui/src/pages/approvals/approvals-page.test.ts:324, 408d8af21a3f)
  • Model setup contract: The branch reads provider-owned preparation choices from the discovery result; the current Gateway producer supplies that field. The scoped UI policy says the UI and Gateway ship together and do not carry older-Gateway fallbacks. (src/system-agent/setup-inference-detect.ts:226, 5a207d65c7a6)
  • Stored-state compatibility: The native route keeps its existing key and routeId/pathname/search JSON fields. The settings writer still serializes the same optional preference fields, with undefined values omitted by JSON.stringify; inspection found no introduced stored-format change. (ui/src/app/settings.ts:673, 408d8af21a3f)
  • Feature history: Current-main history includes the earlier standing-grant ledger and the merged first Control UI cleanup pass. That first pass overlaps this work but does not contain the branch's Gateway-switch repair. (ui/src/pages/approvals/approvals-page.ts:184, de12e0a06c1b1f3300823c001607ad3608edcc61bd04)
  • PR state and validation: The pinned PR head is open and unmerged. Its body reports exact-head hosted CI, browser checks, source checks, and build success; the supplied check context reports a successful required CI gate. (408d8af21a3f)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: 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 (4 earlier review cycles)
  • reviewed 2026-09-25T09:20:31.775Z sha cc8621d5e4b14276f5a412c5fd96bcf1ad5a15bd :: blocked before merge. :: none
  • reviewed 2026-09-25T09:53:03.080Z sha 54872c4d440eef8b5815f30030bbd8f4e5594f8c :: blocked before merge. :: none
  • reviewed 2026-09-25T10:09:58.980Z sha fedaa62 :: blocked before merge. :: none
  • reviewed 2026-09-25T11:11:21.839Z sha 408d8af :: blocked before merge. :: none

@steipete
steipete force-pushed the deslop/l44-ui-pages2 branch from cc8621d to 54872c4 Compare September 25, 2026 09:45
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 25, 2026
Converge page and app flows on their existing owners, remove unused
forwarding and rendering paths, and preserve UI and Gateway contracts.

Fix standing-grant state surviving Gateway changes: retire stale revoke
work under the existing request ownership guard. Mounted regressions
fail against the original implementation and pass after the repair.
@steipete
steipete force-pushed the deslop/l44-ui-pages2 branch from 54872c4 to fedaa62 Compare September 25, 2026 09:59
@steipete
steipete marked this pull request as ready for review September 25, 2026 10:02
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 25, 2026
Keep WebView2 host messaging separate from Window.postMessage, retain the causes of translated Talk errors, and avoid shadowing the Lit state decorator.
Retain the existing media acquisition error translation boundary. Adding DOMException causes exposes legacy code fields through the generic UI error formatter; the existing dictation regression requires the original message.
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Sep 25, 2026
@steipete
steipete merged commit 2e74a58 into main Sep 25, 2026
139 checks passed
@steipete
steipete deleted the deslop/l44-ui-pages2 branch September 25, 2026 12:15
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 25, 2026
Consolidate config rendering, sidebar/session bookkeeping, and common
formatting helpers while removing unused forwarding and derived state.
Preserve component, Gateway, route, preference, and accessibility contracts.

Fix generic filename glyphs, file-preview type labels, and session channel
labels for prototype-shaped names. Clear geolocation when its IP is removed.

Second-pass follow-up to #156740 with page importers from #158032 covered.
steipete added a commit that referenced this pull request Sep 25, 2026
Consolidate config rendering, sidebar/session bookkeeping, and common
formatting helpers while removing unused forwarding and derived state.
Preserve component, Gateway, route, preference, and accessibility contracts.

Fix generic filename glyphs, file-preview type labels, and session channel
labels for prototype-shaped names. Clear geolocation when its IP is removed.

Second-pass follow-up to #156740 with page importers from #158032 covered.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
* refactor(ui): deslop Control UI pages and app shell

Converge page and app flows on their existing owners, remove unused
forwarding and rendering paths, and preserve UI and Gateway contracts.

Fix standing-grant state surviving Gateway changes: retire stale revoke
work under the existing request ownership guard. Mounted regressions
fail against the original implementation and pass after the repair.

* fix(ui): preserve native messaging and error causes

Keep WebView2 host messaging separate from Window.postMessage, retain the causes of translated Talk errors, and avoid shadowing the Lit state decorator.

* fix(ui): preserve dictation error messages

Retain the existing media acquisition error translation boundary. Adding DOMException causes exposes legacy code fields through the generic UI error formatter; the existing dictation regression requires the original message.
steipete added a commit that referenced this pull request Sep 26, 2026
Consolidate config rendering, sidebar/session bookkeeping, and common
formatting helpers while removing unused forwarding and derived state.
Preserve component, Gateway, route, preference, and accessibility contracts.

Fix generic filename glyphs, file-preview type labels, and session channel
labels for prototype-shaped names. Clear geolocation when its IP is removed.

Second-pass follow-up to #156740 with page importers from #158032 covered.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
Consolidate config rendering, sidebar/session bookkeeping, and common
formatting helpers while removing unused forwarding and derived state.
Preserve component, Gateway, route, preference, and accessibility contracts.

Fix generic filename glyphs, file-preview type labels, and session channel
labels for prototype-shaped names. Clear geolocation when its IP is removed.

Second-pass follow-up to openclaw#156740 with page importers from openclaw#158032 covered.
steipete added a commit that referenced this pull request Oct 15, 2026
Continue the y01 largest-owner, export/caller and duplicate-helper audit.
Delegate composer mounting to the canonical interop boundary while retaining
field equality, keyed renderer identity and foreground picker cleanup. Remove
test-only panel refresh methods and commit counters; exercise the actual view,
polling and committed DOM instead. Trust admitted immutable composer metadata
and the full tool-stream owner contract. Narrow sidebar traversal to its
normalized single column and simplify browser/Gateway realtime decoding.

Both shipping Lit/Solid paths and rendered markup remain unchanged. No config,
protocol, storage, dependency, security-boundary or Phase E backend changes.

Best-effort tradeoffs accepted

- Malformed internal tool-stream hosts: #158032 introduced shape probes during
  a bookkeeping refactor, not a human incident. Real owners have complete state;
  a broken internal caller now fails rather than silently skipping cleanup.
  #125197's human steering/order report still justifies the unchanged causal
  reconciliation algorithm; no report ties malformed-host probes to that bug.
- In-place mutation of admitted draft metadata: #158335 added reply persistence
  and #166682 moved the annotation copies, without a mutation incident. Actual
  editors replace records/arrays. A future in-place mutator must follow that
  contract or it may alter a pending snapshot. Durable receipts/revisions stay.
- Non-JSON relay events: #146676 added transport machinery without a human
  cyclic-frame incident. Frames already crossed JSON decoding; an impossible
  internal cycle or BigInt now throws. Activation count/byte bounds remain.
- Older Gateway close-disposition support: #171377 added a compatibility path,
  but UI/Gateway ship together and the current server advertises the field.
  Unsupported skew now rejects. Accepted-answer durability from the real human
  report #171310 and fixes #171377/#172159 remains intact.
- Blob/typed-array/arbitrary Google message representations: c399fb7
  added these alternate decoder branches without a linked human report. The
  browser WebSocket is configured as arraybuffer before listeners. Unsupported
  synthetic representations are ignored; actual strings/ArrayBuffers still
  decode, and removal of the artificial await needs no post-await stale check.
- Extra sidebar columns after normalization: #123874 flattened the flexible
  #113712 layout to one tabbed panel. A broken internal producer is no longer
  searched as a multi-column layout; persisted legacy flattening still runs.

The earlier commit records the original eight accepted best-effort scenarios.
Coverage and remaining justified owners are logged in .local/y01-ledger.md for
coordinator bundling. Combined candidate removes 416 net production lines
against 5716bb1 (tests/support excluded).
steipete added a commit that referenced this pull request Oct 15, 2026
Continue the y01 largest-owner, export/caller and duplicate-helper audit.
Delegate composer mounting to the canonical interop boundary while retaining
field equality, keyed renderer identity and foreground picker cleanup. Remove
test-only panel refresh methods and commit counters; exercise the actual view,
polling and committed DOM instead. Trust admitted immutable composer metadata
and the full tool-stream owner contract. Narrow sidebar traversal to its
normalized single column and simplify browser/Gateway realtime decoding.

Both shipping Lit/Solid paths and rendered markup remain unchanged. No config,
protocol, storage, dependency, security-boundary or Phase E backend changes.

Best-effort tradeoffs accepted

- Malformed internal tool-stream hosts: #158032 introduced shape probes during
  a bookkeeping refactor, not a human incident. Real owners have complete state;
  a broken internal caller now fails rather than silently skipping cleanup.
  #125197's human steering/order report still justifies the unchanged causal
  reconciliation algorithm; no report ties malformed-host probes to that bug.
- In-place mutation of admitted draft metadata: #158335 added reply persistence
  and #166682 moved the annotation copies, without a mutation incident. Actual
  editors replace records/arrays. A future in-place mutator must follow that
  contract or it may alter a pending snapshot. Durable receipts/revisions stay.
- Non-JSON relay events: #146676 added transport machinery without a human
  cyclic-frame incident. Frames already crossed JSON decoding; an impossible
  internal cycle or BigInt now throws. Activation count/byte bounds remain.
- Older Gateway close-disposition support: #171377 added a compatibility path,
  but UI/Gateway ship together and the current server advertises the field.
  Unsupported skew now rejects. Accepted-answer durability from the real human
  report #171310 and fixes #171377/#172159 remains intact.
- Blob/typed-array/arbitrary Google message representations: c399fb7
  added these alternate decoder branches without a linked human report. The
  browser WebSocket is configured as arraybuffer before listeners. Unsupported
  synthetic representations are ignored; actual strings/ArrayBuffers still
  decode, and removal of the artificial await needs no post-await stale check.
- Extra sidebar columns after normalization: #123874 flattened the flexible
  #113712 layout to one tabbed panel. A broken internal producer is no longer
  searched as a multi-column layout; persisted legacy flattening still runs.

The earlier commit records the original eight accepted best-effort scenarios.
Coverage and remaining justified owners are logged in .local/y01-ledger.md for
coordinator bundling. Combined candidate removes 416 net production lines
against 5716bb1 (tests/support excluded).
steipete added a commit that referenced this pull request Oct 15, 2026
* refactor(ui): consolidate chat owners and remove obsolete adapters

Keep both live rendering routes and the existing DOM, text, persisted shapes,
security boundaries, draft durability, and ordinary session concurrency.
Consolidate effective-tool loading, header registration, transcript refs,
history target capture, and PCM output ownership. Remove unused adapters
after their completed native-control cutovers and redundant internal work.

Best-effort tradeoffs accepted:
- Pending-page/live-update overlap: #145240 records synthetic request-order
  proof, not a cited human incident. Displayed disposition can briefly lag
  until the next ordinary refresh; durable receipts remain authoritative.
- Synchronous rail self-retirement: #153245 records a synthetic benchmark,
  not a cited human incident. Focus restoration is best effort in that case.
- Obsolete intersection callbacks: #142227 records synthetic E2E proof, not
  a cited stale-delivery incident. Target maps ignore retired rows; a late
  callback can request redundant layout.
- Obsolete mutation callbacks: the same #142227 provenance. Native disconnect
  remains; a late delivery can resample the current scroller.
- Obsolete resize callbacks: #162617 records synthetic performance traces,
  not a cited stale-delivery incident. Native cleanup remains; a late callback
  can sample current layout.
- Wrong bundled Gateway PR identity: #148070/#147952 describe the feature,
  not a wrong-target incident. The producer constructs the exact requested
  target; a contract violation now displays its returned result.
- Cross-tab prefetch election: #125128 covered a retired five-session idle
  sweep with synthetic performance proof. Two tabs can now redundantly read
  one explicitly hover/focus-intended target; per-tab limits remain.
- Malformed internal sidebar maps: #113712 introduced feature normalization,
  not a cited incident. Settings validates load/save and all callers use that
  output; impossible malformed typed values are not repaired at every update.

* refactor(ui): consolidate chat lifecycle and internal state paths

Continue the y01 largest-owner, export/caller and duplicate-helper audit.
Delegate composer mounting to the canonical interop boundary while retaining
field equality, keyed renderer identity and foreground picker cleanup. Remove
test-only panel refresh methods and commit counters; exercise the actual view,
polling and committed DOM instead. Trust admitted immutable composer metadata
and the full tool-stream owner contract. Narrow sidebar traversal to its
normalized single column and simplify browser/Gateway realtime decoding.

Both shipping Lit/Solid paths and rendered markup remain unchanged. No config,
protocol, storage, dependency, security-boundary or Phase E backend changes.

Best-effort tradeoffs accepted

- Malformed internal tool-stream hosts: #158032 introduced shape probes during
  a bookkeeping refactor, not a human incident. Real owners have complete state;
  a broken internal caller now fails rather than silently skipping cleanup.
  #125197's human steering/order report still justifies the unchanged causal
  reconciliation algorithm; no report ties malformed-host probes to that bug.
- In-place mutation of admitted draft metadata: #158335 added reply persistence
  and #166682 moved the annotation copies, without a mutation incident. Actual
  editors replace records/arrays. A future in-place mutator must follow that
  contract or it may alter a pending snapshot. Durable receipts/revisions stay.
- Non-JSON relay events: #146676 added transport machinery without a human
  cyclic-frame incident. Frames already crossed JSON decoding; an impossible
  internal cycle or BigInt now throws. Activation count/byte bounds remain.
- Older Gateway close-disposition support: #171377 added a compatibility path,
  but UI/Gateway ship together and the current server advertises the field.
  Unsupported skew now rejects. Accepted-answer durability from the real human
  report #171310 and fixes #171377/#172159 remains intact.
- Blob/typed-array/arbitrary Google message representations: c399fb7
  added these alternate decoder branches without a linked human report. The
  browser WebSocket is configured as arraybuffer before listeners. Unsupported
  synthetic representations are ignored; actual strings/ArrayBuffers still
  decode, and removal of the artificial await needs no post-await stale check.
- Extra sidebar columns after normalization: #123874 flattened the flexible
  #113712 layout to one tabbed panel. A broken internal producer is no longer
  searched as a multi-column layout; persisted legacy flattening still runs.

The earlier commit records the original eight accepted best-effort scenarios.
Coverage and remaining justified owners are logged in .local/y01-ledger.md for
coordinator bundling. Combined candidate removes 416 net production lines
against 5716bb1 (tests/support excluded).

* test(ui): align talk fixtures with transport contracts

Require detach disposition when append rejection closes the relay. The UI and
Gateway ship together; the prior fallback's omitted field is no longer valid.

Close the Google socket before start settles when testing startup rejection.
Synchronous frame decoding removed the fixture's former artificial decode
microtask; waiting one turn now settles start before the close. Preserve all
error, callback, microphone, socket and timer assertions.

No production change or new best-effort tradeoff. The preceding commit records
the accepted transport assumptions and their provenance.

* refactor(agents): consolidate runner lifecycle plumbing

Share lifecycle hook capture, native policy loops and gated diagnostic content
construction. Combine initial session metadata updates through the existing
writer and reuse the persisted-input notifier. Keep delivery evidence in a
typed WeakMap without mutating or wrapping frozen error objects.

Security checks, public contracts, transcript durability, parallel tool
correlation and ordinary shutdown settlement remain. No schema, configuration,
dependency, protocol or public SDK signature changes. The standalone session
memory backend and its lifecycle machinery are untouched.

Best-effort tradeoffs accepted:
- Reusing the same engine during active disposal no longer has a WeakRef
  tombstone rejection. #168789 cites synthetic #143426/#143592 disposal cases,
  not a human production report. Misuse may fail in the engine normally;
  closing admission and actual resource settlement remain.
- Fresh bounded primitive diagnostics are not redundantly cloned before
  publication (#108304). Listener egress still isolates its payloads.
- Internal delivery-evidence readers receive the attachment-time snapshot,
  not another defensive copy (0ea0807). No human mutation report was found;
  unsupported internal mutation could affect a later reader. Confirmed-send
  suppression and attachment-time copying remain.

Lane y08: 105 net production lines removed (165 added / 270 removed), excluding
tests; tests add 67 net lines. Below-500 branch-only handoff for coordinator
bundling after recent, older and largest-owner audits found no further sound
candidate. No PR or hosted-CI success is claimed.

Proof: production and affected test types, changed-file lint/format, runtime
and madge cycles (zero), lint-suppressions (3/3), and independent P2 review
passed. Maintenance resources (6/6), CLI spawn (40/40), and restart recovery
(33/33) completed. Support proof was stopped after ten minutes without an
assertion result; Gateway cancellation timed out during startup/imports with
no assertion result, and deletion was not reached. CLI reliability was only
partially exercised in an earlier interrupted selection. These are unresolved
proof gaps, not attributed main failures.

* refactor(agents): remove duplicate runner preparation work

Trust canonical inline model modalities and waiter-owned cleanup. Fold the
sole-caller HTTP setup wrapper and stage warning predicate into their owners,
and remove an unused diagnostic clock option.

This pass removes 32 net production lines; the branch total is 137. Core and
affected test types, lint, format, cycle checks, stage timing and suppression
tests pass. Independent P2 review is clean. Wider focused runtime selections
remain incomplete under host load; coordinator bundling needs broad CI proof.

* refactor: withdraw inconclusive stream cleanup and repair bundle ratchets

Retain current main stream-state contracts after the UI failure replay could not establish an exact-main comparison. Shrink the delivery-evidence assertion allowance and keep its frozen/primitive regression intact in a focused unit file.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…w#173015)

* refactor(ui): consolidate chat owners and remove obsolete adapters

Keep both live rendering routes and the existing DOM, text, persisted shapes,
security boundaries, draft durability, and ordinary session concurrency.
Consolidate effective-tool loading, header registration, transcript refs,
history target capture, and PCM output ownership. Remove unused adapters
after their completed native-control cutovers and redundant internal work.

Best-effort tradeoffs accepted:
- Pending-page/live-update overlap: openclaw#145240 records synthetic request-order
  proof, not a cited human incident. Displayed disposition can briefly lag
  until the next ordinary refresh; durable receipts remain authoritative.
- Synchronous rail self-retirement: openclaw#153245 records a synthetic benchmark,
  not a cited human incident. Focus restoration is best effort in that case.
- Obsolete intersection callbacks: openclaw#142227 records synthetic E2E proof, not
  a cited stale-delivery incident. Target maps ignore retired rows; a late
  callback can request redundant layout.
- Obsolete mutation callbacks: the same openclaw#142227 provenance. Native disconnect
  remains; a late delivery can resample the current scroller.
- Obsolete resize callbacks: openclaw#162617 records synthetic performance traces,
  not a cited stale-delivery incident. Native cleanup remains; a late callback
  can sample current layout.
- Wrong bundled Gateway PR identity: openclaw#148070/openclaw#147952 describe the feature,
  not a wrong-target incident. The producer constructs the exact requested
  target; a contract violation now displays its returned result.
- Cross-tab prefetch election: openclaw#125128 covered a retired five-session idle
  sweep with synthetic performance proof. Two tabs can now redundantly read
  one explicitly hover/focus-intended target; per-tab limits remain.
- Malformed internal sidebar maps: openclaw#113712 introduced feature normalization,
  not a cited incident. Settings validates load/save and all callers use that
  output; impossible malformed typed values are not repaired at every update.

* refactor(ui): consolidate chat lifecycle and internal state paths

Continue the y01 largest-owner, export/caller and duplicate-helper audit.
Delegate composer mounting to the canonical interop boundary while retaining
field equality, keyed renderer identity and foreground picker cleanup. Remove
test-only panel refresh methods and commit counters; exercise the actual view,
polling and committed DOM instead. Trust admitted immutable composer metadata
and the full tool-stream owner contract. Narrow sidebar traversal to its
normalized single column and simplify browser/Gateway realtime decoding.

Both shipping Lit/Solid paths and rendered markup remain unchanged. No config,
protocol, storage, dependency, security-boundary or Phase E backend changes.

Best-effort tradeoffs accepted

- Malformed internal tool-stream hosts: openclaw#158032 introduced shape probes during
  a bookkeeping refactor, not a human incident. Real owners have complete state;
  a broken internal caller now fails rather than silently skipping cleanup.
  openclaw#125197's human steering/order report still justifies the unchanged causal
  reconciliation algorithm; no report ties malformed-host probes to that bug.
- In-place mutation of admitted draft metadata: openclaw#158335 added reply persistence
  and openclaw#166682 moved the annotation copies, without a mutation incident. Actual
  editors replace records/arrays. A future in-place mutator must follow that
  contract or it may alter a pending snapshot. Durable receipts/revisions stay.
- Non-JSON relay events: openclaw#146676 added transport machinery without a human
  cyclic-frame incident. Frames already crossed JSON decoding; an impossible
  internal cycle or BigInt now throws. Activation count/byte bounds remain.
- Older Gateway close-disposition support: openclaw#171377 added a compatibility path,
  but UI/Gateway ship together and the current server advertises the field.
  Unsupported skew now rejects. Accepted-answer durability from the real human
  report openclaw#171310 and fixes openclaw#171377/openclaw#172159 remains intact.
- Blob/typed-array/arbitrary Google message representations: 2a4c20f
  added these alternate decoder branches without a linked human report. The
  browser WebSocket is configured as arraybuffer before listeners. Unsupported
  synthetic representations are ignored; actual strings/ArrayBuffers still
  decode, and removal of the artificial await needs no post-await stale check.
- Extra sidebar columns after normalization: openclaw#123874 flattened the flexible
  openclaw#113712 layout to one tabbed panel. A broken internal producer is no longer
  searched as a multi-column layout; persisted legacy flattening still runs.

The earlier commit records the original eight accepted best-effort scenarios.
Coverage and remaining justified owners are logged in .local/y01-ledger.md for
coordinator bundling. Combined candidate removes 416 net production lines
against 7f7310a (tests/support excluded).

* test(ui): align talk fixtures with transport contracts

Require detach disposition when append rejection closes the relay. The UI and
Gateway ship together; the prior fallback's omitted field is no longer valid.

Close the Google socket before start settles when testing startup rejection.
Synchronous frame decoding removed the fixture's former artificial decode
microtask; waiting one turn now settles start before the close. Preserve all
error, callback, microphone, socket and timer assertions.

No production change or new best-effort tradeoff. The preceding commit records
the accepted transport assumptions and their provenance.

* refactor(agents): consolidate runner lifecycle plumbing

Share lifecycle hook capture, native policy loops and gated diagnostic content
construction. Combine initial session metadata updates through the existing
writer and reuse the persisted-input notifier. Keep delivery evidence in a
typed WeakMap without mutating or wrapping frozen error objects.

Security checks, public contracts, transcript durability, parallel tool
correlation and ordinary shutdown settlement remain. No schema, configuration,
dependency, protocol or public SDK signature changes. The standalone session
memory backend and its lifecycle machinery are untouched.

Best-effort tradeoffs accepted:
- Reusing the same engine during active disposal no longer has a WeakRef
  tombstone rejection. openclaw#168789 cites synthetic openclaw#143426/openclaw#143592 disposal cases,
  not a human production report. Misuse may fail in the engine normally;
  closing admission and actual resource settlement remain.
- Fresh bounded primitive diagnostics are not redundantly cloned before
  publication (openclaw#108304). Listener egress still isolates its payloads.
- Internal delivery-evidence readers receive the attachment-time snapshot,
  not another defensive copy (8c995fb). No human mutation report was found;
  unsupported internal mutation could affect a later reader. Confirmed-send
  suppression and attachment-time copying remain.

Lane y08: 105 net production lines removed (165 added / 270 removed), excluding
tests; tests add 67 net lines. Below-500 branch-only handoff for coordinator
bundling after recent, older and largest-owner audits found no further sound
candidate. No PR or hosted-CI success is claimed.

Proof: production and affected test types, changed-file lint/format, runtime
and madge cycles (zero), lint-suppressions (3/3), and independent P2 review
passed. Maintenance resources (6/6), CLI spawn (40/40), and restart recovery
(33/33) completed. Support proof was stopped after ten minutes without an
assertion result; Gateway cancellation timed out during startup/imports with
no assertion result, and deletion was not reached. CLI reliability was only
partially exercised in an earlier interrupted selection. These are unresolved
proof gaps, not attributed main failures.

* refactor(agents): remove duplicate runner preparation work

Trust canonical inline model modalities and waiter-owned cleanup. Fold the
sole-caller HTTP setup wrapper and stage warning predicate into their owners,
and remove an unused diagnostic clock option.

This pass removes 32 net production lines; the branch total is 137. Core and
affected test types, lint, format, cycle checks, stage timing and suppression
tests pass. Independent P2 review is clean. Wider focused runtime selections
remain incomplete under host load; coordinator bundling needs broad CI proof.

* refactor: withdraw inconclusive stream cleanup and repair bundle ratchets

Retain current main stream-state contracts after the UI failure replay could not establish an exact-main comparison. Shrink the delivery-evidence assertion allowance and keep its frozen/primitive regression intact in a focused unit file.
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: 📸 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