Repository navigation
refactor(ui): deslop Control UI pages and app shell - #158032
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 25, 2026, 8:00 AM ET / 12:00 UTC (Revision 5). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
cc8621d to
54872c4
Compare
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.
54872c4 to
fedaa62
Compare
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.
|
Merged via squash.
|
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.
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.
* 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.
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.
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.
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).
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).
* 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.
…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.







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:
No CSS or top-level
ui/src/components/ui/src/libchanges. 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.tsstill writesopenclaw.native.lastRoutewith{ routeId, pathname, search }, reads the same representation, and removes only the existing transientdraftparameter; it now uses the shared safe-storage resolver.memory-dreaming.tspreserves each phase's field order, paths, numeric bounds, defaults, enabled fallback, and translation keys in compact descriptors.memory-import/view.tsshares 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 usedtbx_01m3bppvs77fv4sy34t239sv8z(run); the earlier changed-file gate usedtbx_01m3bty728w4zv5dvc3yd4c9j5(run). Rebase and repair proof also usedtbx_01m3by6amjavnnczr1teyahh2m,tbx_01m3c1jygzgbn5eap5gn3xyqhp, andtbx_01m3c2xg3xkwh5de4j5kfk3s81; final completion usestbx_01m3c443w0rsarekqzpv7qt816(run). Only one lease was active at a time; all seven lane leases are now stopped. The final lease reportscompleted, 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.pnpm buildpassed 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.node scripts/run-vitest.mjs run --config ui/vitest.config.ts --configLoader runnerwith 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.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.408d8af21a3fc81e1e258be2e43386a2ff7de1e1, including that regression, without changing its assertion.scoped-cleanfor 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.Exact-head hosted CI, the final remote
check-changedgate, andpnpm buildpass. 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 finalnode 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 standaloneoxfmtprobe 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.tsfrom #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:ui/src/pages/approvals/approvals-page.test.tsui/src/pages/model-setup/prepare-options.test.tsui/src/pages/devices/devices-dialogs.test.tsui/src/app/app-host.gateway-lineage.test.tsui/src/pages/chat/chat-model-restriction-recovery.test.tsui/src/pages/chat/chat-pane-attachment-handoff.test.tsui/src/pages/chat/chat-pane.session-discussion.test.tsui/src/pages/chat/chat-queue-reorder.test.tsui/src/pages/chat/chat-read-reconciliation.test.tsui/src/pages/chat/chat-send-attachment-retirement.test.tsui/src/pages/chat/chat-send-handoff.test.tsui/src/pages/chat/chat-send-readiness.test.tsui/src/pages/chat/chat-send-settings.test.tsui/src/pages/chat/chat-send-submit.test.tsui/src/pages/chat/chat-send.test.tsui/src/pages/chat/chat-view.async-questions.test.tsui/src/pages/chat/components/chat-transcript-invalidation.test.tsui/src/pages/chat/queued-message-edit.test.tsui/src/pages/cron/cron-page.delivery-conversations.test.tsui/src/pages/usage/view-details.test.tsui/src/pages/model-providers/route.test.tsExact-head CI run
36127311294passed 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.
Additional inspected screenshot pairs: remaining seven states.