Repository navigation
refactor(ui): remove unselected private options and unread projections - #176748
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: needs maintainer review before merge. What this changesThis PR removes unused private Control UI options, injected collaborators, and unread return fields while migrating affected tests. Example: A user selects Beta in a controlled tab list currently showing Alpha.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-approved cleanup preserves the production contracts inspected, including attachment-input binding and cleanup, with no actionable findings; current-head CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI components consume Gateway facts and synchronous domain owners, then render tabs, composer menus, session indicators, and resource views. flowchart LR
A[Gateway facts] --> B[UI domain owners]
B --> C[Component projections]
C --> D[Solid components]
D --> E[Native browser operations]
E --> F[User interaction]
Technical reviewBest possible solution: Retain the existing owners and supported behavior while removing the unused alternatives, then land after current-head gates are satisfied. Do we have a high-confidence way to reproduce the issue? This is an internal cleanup rather than a reported runtime bug; source inspection supports the unused-option premise, and no reproduction was run. Is this the best way to solve the issue? The change uses existing owners without replacement machinery, preserves their production defaults, and updates affected consumers and fixtures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4278e94e48b2. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -123, Tests +1, Other 0. Total -122 across 44 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (5 earlier review cycles)
Reviewed October 19, 2026, 3:04 AM ET / 07:04 UTC (Revision 6). |
e03244d to
7be7c8c
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@clawsweeper re-review The requested conflict repair is complete. Current signed head is |
|
🦞👀 Re-review progress:
|
9152c05 to
e38dd15
Compare
|
@clawsweeper re-review Current reviewed head: e38dd159a22934e4d1eb3f18340e3dba201dd5fc. Conflict repair preserves main's newly live scroll options and MenuHandle focus behavior; the old scroll specialization is withdrawn entirely. The body now records fresh scoped types, lint, menu/scroll tests, suppression checks and runtime cycles. Historical hosted CI is explicitly prior-head evidence, not a verdict on this head. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Current reviewed head: 5c1701d231b713627b42f634fa2b0a8694b4c842. The fixture-only repair decodes compressed persisted transcript events rather than dereferencing or skipping null text columns. All existing media/replay assertions remain. Fresh independent review and scoped native types/lint/format/suppression proof passed; the body records the prior exact-head failure and pending replacement-head hosted replay. No production/storage/SDK behavior changes or CI reruns. |
|
🦞👀 Re-review progress:
|
5c1701d to
87006e3
Compare
|
@clawsweeper re-review Conflict-only replacement head: 87006e36dd2458b13f4b530b85c22526c48c7f2c, rebased onto f551cc9. Main already contains the compressed-transcript fixture repair; the redundant commit is dropped, and the main fixture is byte-identical. All five retained signed commits are patch-identical. Fresh whole-tree caller and alias closure found no new live values for the removed private UI contracts. Serial isolated proof passed: targeted native UI/media types, 17 menu/scroll cases, 14 suppression cases, scoped type-aware lint/format, zero runtime import cycles and whitespace. The PR body records the full proof and prior-head failure attribution. Exact replacement-head CI remains the broad gate. |
|
🦞👀 Re-review progress:
|
87006e3 to
58b62ed
Compare
|
@clawsweeper re-review Conflict-only replacement head: 58b62ed on 0b702b5. Main's attachment-input anchor binding and lifecycle cleanup are preserved. Four patches are identical; only main context changes in the production patch. All five commits remain signed, and fresh production caller/alias/SDK/native-DOM closure reconfirms the private-only scope. Current proof and its exact limitations are recorded in the updated body. No prior-head CI is claimed for this replacement; its exact-head hosted CI remains required. Phase E is untouched. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
openclaw#176748) * refactor: remove private UI option variants * test(ui): preserve native browser-card fixture lifecycle * test(ui): retain horizontal scroll and settle lazy toast fixtures * test(ui): await lazy draft body imports * test(ui): align fixtures with private option cleanup
What Problem This Solves
Private UI helpers expose modes, collaborators and return projections that no production caller selects or reads. They obscure the actual owners without providing a user-facing option.
User Impact
No visible design or supported behavior change is intended. Gateway protocol, configuration, SDK exports, persisted data and user-facing text remain unchanged. Phase E standalone session memory is untouched.
Why This Change Was Made
Use the existing native WebSocket, fetch, location, clock and overlay owners directly. Tabs retain their actual controlled, horizontal contract. Remove unused wizard cancellation alternatives, composer slots, widget forwarding, sidebar summary insertion and duplicate dock width policy. Drop unread acknowledgment timing, activity refresh and reconciliation result projections, retaining the underlying Gateway facts and real admission/confirmation decisions.
This is the UI-area split of a private-option family spanning more than 80 files. Against conflict-repair base 0b702b5, the candidate changes 44 paths: 123 net production lines removed and one net test line added. Main independently removed the activity-envelope family and fixed the compressed-transcript fixture; neither is counted here. The desktop collaborator cut already landed independently and is also excluded.
Best-effort tradeoffs accepted
Evidence
Latest conflict-only rebase
GitHub reported CONFLICTING at head 87006e36dd2458b13f4b530b85c22526c48c7f2c. The conflict-only rebase onto 0b702b5 preserves main's attachment-input anchor binding, replacement cleanup and outer disposal from #176954. Only the unused dialog projections and their fragment are removed. Four patches are identical; the production patch differs only in that preserved main context. All five retained commits are signed. Current candidate: 58b62ed. Fresh exact-base production caller, alias, SDK and native-DOM closure reconfirms the private-only scope.
Post-rebase serial isolated proof exited zero: targeted native UI types (including attachment input and handoff test roots), 24 menu/input/scroll cases, 22 attachment-handoff cases and all 14 suppression cases passed. The three focused shards took 185.18 seconds. Three-file source-backed type-aware lint passed with two existing widget reactivity warnings; formatting passed in 45 ms, runtime import cycles were zero and whole-slice whitespace passed. Package manifests and the lockfile did not change across this rebase; the refreshed install is reused. Exact replacement-head hosted CI remains the broad gate.
Exact-head hosted run 39213050853 completed with the CI watcher GREEN. Complete check-run census: 57 successes, 40 skips and three superseded auxiliary cancellations. Each cancelled lane has a successful replacement: context/evidence 117930571712, dispatch 117930571635 and auto-response 117930523864. The CI gate 117934956333 and security-fast 117930956370 passed; current CI, dependency-review and security-sensitive-review statuses from publisher 39214467594 are all successful. The raw rollup's superseded history is not a remaining test failure. No inherited-failure exception, CI rerun or push for green is needed.
The preceding 870 head has 103 completed check runs: 59 successes, 41 skips and three auxiliary cancellations. No failed check run was observed. That prior-head evidence does not qualify the new head, and cancelled auxiliary jobs are not claimed passing.
The preceding 5c run 39207350653, attempt 1, completed with 140 checks: 73 successes, 62 skips, one neutral result, two superseded auxiliary cancellations with successful replacements, and two failures. Real-Gateway shard 2/2 passed, including the compressed-transcript repair. The only root failure is real-Gateway shard 1/2, job 117913336014: the unchanged session-pr-reader-lifetime case times out at 120000 ms; 18 cases passed and two existing cases skipped. Aggregate 117916981796 reflects that failure.
The coordinator flake ledger and newest six completed scheduled main runs were checked: 39205204421, 39200477526, 39195750293, 39191176869, 39186683798 and 39183785855. Newest main run 39205204421 at e3cc361 independently fails the identical case at the identical 120000-ms deadline, job 117906667153. The failing test is byte-identical between that main and 5c. This is concrete baseline failure evidence, not a load-only diagnosis or a green-CI claim. The current rebased head still needs its own exact-head CI and failure accounting.
Compressed-transcript fixture repair, now on main
Exact-head run 39203853360, attempt 1, tested merge 64bd725a46dfa090d8b27924a539c716bd929bf3 (protected main 2a49c62 plus e38dd159a22934e4d1eb3f18340e3dba201dd5fc). The complete 100-check census has 56 successes, 39 intentional skips, three superseded auxiliary cancellations with completed replacements, and two failures: real-Gateway shard 2/2 and its downstream CI aggregate. All browser shards, UI units, lint, types, performance and real-Gateway shard 1/2 passed.
The media-transcript fixture dereferenced a null event_json column. That column is legitimately null when a transcript event is stored compressed; skipping the row would lose the very persisted attachment-error evidence this test protects. The repair reads event_zstd and decodes that representation, following the existing repeated-turn QA fixture. Plain-text parsing, all media delivery/replay assertions and production storage remain unchanged. Fresh independent P0–P2 review found no actionable issues. No inherited-failure exception is claimed for this failure.
Reviewed pre-rebase head: 5c1701d231b713627b42f634fa2b0a8694b4c842. The fixture-only delta passed targeted native types, source-backed scoped lint, all 14 suppression cases, formatting and whitespace. The suppression engine took 18.37 seconds (29.96 seconds including the wrapper); final formatting took 138 ms. The existing production import graph and earlier zero-cycle proof were unchanged; the only new import was test-only node:zlib. Its hosted real-Gateway shard 2/2 subsequently passed in run 39207350653. The repair is now inherited from main rather than part of this diff; the latest rebased head still needs its own CI.
The existing two-case file took 36.45 seconds in that CI run. Its actual browser delivery, real Gateway replay and persisted display-versus-model content contract require the existing E2E boundary; no duplicate suite is added. The campaign forbids local E2E, so exact replacement-head hosted CI is the full replay gate.
Conflict proof and earlier history
GitHub reported CONFLICTING after native inherited-failure admission stopped before merge intent on API quota exhaustion. The conflict-only rebase onto 170fda is complete; all five replayed commits are signed. Main now has a live false scroll-tracking path and revision/active-item scroll options. The old scroll specialization is withdrawn: both scroll owners are byte-identical to captured main, preserving every real mode, reveal effect and cleanup. Composer menu keeps main's MenuHandle callback and current-focus/controlled-close behavior; only unread dialog projections disappear. Fresh full-slice independent review completed scoped-clean through P2. Fresh isolated frozen installation, targeted native UI types, source-backed lint on the four conflict-related owners, all 17 focused menu/scroll cases, 14 suppression cases, zero runtime import cycles and whitespace passed. The focused wrapper took 81.62 seconds (UI engine 20.95 seconds). No prior-head hosted result qualifies this replacement head; its exact-head hosted CI is pending. Author simplification retained existing owners and added no replacement framework or production seam.
Historical exact-head CI and local proof
Completed prior-head CI 39195994589, attempt 1, tested merge ea77f5a3f8a15d84bd3f7e38361f733137357de7 with ordered parents protected main 5ec30bf and the reviewed 9152 head. Its complete commit-check census was 100 terminal checks: 58 success, 39 intentional skips and three failures below; later body-metadata checks did not add a root failure. All three UI unit shards, all core test-type shards and the assertion ratchet passed. Dependency review and security-sensitive review statuses passed. That CI remained red, not green, with two individually attributed baseline failures. Its native admin evidence is prior-head evidence only.
The coordinator flake ledger and newest six completed scheduled main runs were checked: 39195750293, 39191176869, 39186683798, 39183785855, 39176649118 and 39172446197. Fresh exact-job logs from the newest schedule 39195750293 independently reproduce both failures on the PR's actual protected-main parent: performance job 117878238185 reports 1,491,895 bytes against the same 1,490,000 cap; E2E job 117878239147 has the identical Models-help line 238 stale-English assertion. This is exact failing-case/source and head-vs-base metric attribution, not job-name-only or load-based inference. No CI rerun, re-push for green or local broad E2E was used.
The latest two-file CI repair removes only the obsolete defaultActive shadow-style table case, retains items/controlled-active movement and final-consumer cleanup assertions, supplies the required active prop to unrelated style fixtures, and shrinks the chat-send-ack assertion allowance from two to one. No production code changed. The focused shadow-styles/tabs/hub-tabs selection passed 12/12 across three files (20.70 seconds engine/51.43 seconds wrapper). Targeted native UI types, scoped lint, the assertion ratchet, 14/14 suppression cases and whitespace passed. Fresh independent review of this exact delta completed scoped-clean through P2 with no actionable findings. Exact-head hosted CI above confirms the three earlier PR-caused failures are repaired; the two baseline failures are not relabeled green.
The preceding exact 7be head's completed broad run 39192420658 tested merge 2c36cef54559f6ae24a776f09cf829a4490c705a, ordered parents main d694fe8 and PR 7be7c8c. Every failed root job was inspected:
Real-Gateway UI E2E (2/2) passed 63/63 in 28 files. The coordinator flake ledger and last six completed scheduled main runs were checked (39186683798, 39183785855, 39176649118, 39172446197, 39168070659, 39163574553); exact baseline logs and unchanged-source comparisons supply attribution. Historical cancellations are not passing proof. No broad local E2E, CI rerun, raised timeout, retry, skip or new suppression was used.
The latest conflict-only rebase preserves main's smaller dock fixture and its lazy composer memo owners. Dock assertions now select the canonical layout.maxWidth instead of the deleted duplicate override; no assertion or observable behavior was removed. All four replayed commits are signed. Fresh isolated frozen install passed in 19.1 seconds; targeted native types passed, and the dock/menu selection passed 20/20 cases in three files (67.31 seconds engine/116.98 seconds wrapper). Final scoped lint passed on all 44 paths (zero errors, the same five existing warnings); all 14 suppression cases passed (59.23 seconds engine/82.06 seconds wrapper), the runtime-cycle guard and whitespace passed. The complete serial proof exited zero. No hosted replacement-head result is claimed here.
Earlier replacement-head evidence: the preceding conflict repair preserved main's shared listen/stopScroll and createShadowStyles owners; it removed only the unused trackScroll, defaultActive and orientation alternatives. Its independent review completed scoped-clean through P2. Fresh targeted native types passed. The focused six-file conflict selection initially passed 34/37, exposing three draft-body assertions that did not await the owner's lazy NewSessionSubmission import. Adding two vi.dynamicImportSettled awaits, without changing assertions, timeouts or production behavior, made the identical selection pass 37/37 (12.54 s engine/18.79 s wrapper). The two-line fixture repair independently reviewed scoped-clean through P2. Final guards passed: targeted native types, scoped lint on all 43 paths (zero errors, five existing warnings), 14/14 suppression tests, zero runtime import cycles and whole-slice whitespace. No broad post-rebase suite is claimed.
Earlier tooling-refresh evidence follows; it is historical, not replacement-head hosted proof. That rebase preserved main's reactive-host, stream-cleanup and exported ScrollState changes. A fresh all-caller audit caught main #176605 adding a real horizontal attachment-preview caller. Horizontal useScrollState arguments and observer forwarding therefore remain; only unused trackScroll is removed. The added owner regression was red on the queued incorrect narrowing and passed after restoring the live contract. The earlier repaired signed head was b0e7998; exact-head hosted CI remains the broad gate for the replacement.
Whole-tree caller/export closure includes src, ui/src, extensions, packages and tooling. Author simplification retains existing owners without adding a framework, suppression, timeout, retry or skip. Independent full-slice review and the earlier Browser fixture repair completed scoped-clean through P2. The horizontal repair separately completed scoped-clean review through P2. Fresh independent review of the three-file horizontal/toast repair also completed scoped-clean through P2, with no accepted/actionable findings.
Strict targeted UI typecheck and scoped source-backed lint pass. Refreshed lint retains five warnings in unchanged blocks and no errors; no new suppression was added. Mandatory lint-suppression tests pass 14/14 (40.31 seconds engine,60.46 seconds wrapper). Refreshed standard runtime import-cycle proof reports zero cycles. The original bounded AST comparison found no added production edges; the subsequent axis-forwarding and test-only repairs add no production dependency edge. This is not a standard madge-command pass. Final three-file repair lint, oxfmt (48 ms) and whole-slice whitespace checks pass.
The focused 40-file run passed 724/725 tests before identifying one fixture migration defect in the Browser card owner. JSX bridge hosts are Solid-owned, so removing a host does not dispose its parent root. The fixture now uses the documented native BrowserTabCardHost.Element entry point, preserving its original disconnection lifecycle. All assertions stay unchanged. The complete repaired owner then passed 43/43 in 71.67 seconds (109.57 seconds including wrapper completion); the other 682 passing cases are unchanged. No full 725-test post-repair pass is claimed. The original selection took 385.00 seconds (407.98 seconds including wrapper completion); these owner/sibling tests protect transport, cancellation, keyboard, focus, row and resource-lifetime behavior, not merely argument plumbing.
The refreshed physical frozen installation passed, including the new native typechecker. Strict targeted types passed after horizontal restoration and again after the toast repair. A six-file selection and same-selection replay each passed 92/93; both retained the same unchanged first attachment-overflow toast failure while admission counts, rejected identity, the horizontal regression and other cases passed. The toast fixture did not await the lazy renderer; its two-line repair adopts the existing toast owner's updateComplete/dynamicImportSettled ordering without changing assertions. The identical six-file selection then passed93/93 in22.44 seconds engine/35.37 seconds wrapper. This establishes red-to-green fixture repair without adding a retry or changing a deadline.
The normal generated-package declaration prerequisite was stopped to honor the campaign's no-broad-local-build budget; scoped lint uses the repository's official source-backed core graph, with the same rules and explicit paths. Generated package/build, broad UI, browser/E2E and standard static-cycle proof remain exact-head hosted CI responsibilities. The chat/shared-owner slice requires ci:full before its ready-head run. No live browser/device/provider, screenshot or visual-change proof is claimed.