Repository navigation
fix(ui): remove obsolete board error adapter - #170609
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 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR deletes the unused Lit board-error adapter and redirects four type-only imports to the existing type owner. Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it completes the Solid migration by removing an unused adapter, with no actionable patch defects found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI board widgets render errors through Solid components, while chat controllers pass widget-menu models to the header and route actions back to the retained board view. flowchart TD
A[Board widget controllers] --> B[Solid error component]
B --> C[Error alert and retry]
D[Chat board controller] --> E[Header session menu]
E --> F[Retained board view actions]
Technical reviewBest possible solution: Remove the retired adapter and retain the existing Solid renderer and canonical menu type exactly as this patch does. Do we have a high-confidence way to reproduce the issue? Source inspection confirms the unused export on fetched main and verifies that its remaining importers consume only the re-exported type; no runtime failure is established. Is this the best way to solve the issue? Deleting the obsolete module and importing its type from the existing owner completes the cutover without adding another compatibility layer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fad84f184600. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -11, Tests 0. Total -11 across 5 files. Added test files: 0. View PR surface stats
LabelsLabel 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 Reviewed October 13, 2026, 12:00 AM ET / 04:00 UTC. |
The Solid widget migration in `62f3a1a8e593bb65c657f2bb836e5eb5dc9bd921` (openclaw#169725) removed the final three callers of `renderBoardWidgetError`, leaving its Lit adapter exported but unused. Scheduled main [38343322520/job 115119178402](https://github.com/openclaw/openclaw/actions/runs/38343322520/job/115119178402) fails the canonical export scans on that exact symbol. Delete the obsolete adapter module and import `BoardWidgetPageMenu` directly from its existing owner in all four remaining type-only consumers. The type, Solid error component, error/retry behavior, and page-menu actions are unchanged. The superseded module is removed completely. Exact candidate `6b6b0c21aa90d026e6ee7af0bbc00a34b052e5dd` passed all four complete browser, report, website, and board page-chrome test files: **22/22, no skips**, 7.48s Vitest / 11.16s command wall. The [focused run](https://github.com/openclaw/openclaw/actions/runs/38344141789) also passed all three canonical scans: `deadcode:dependencies` (173.37s), `deadcode:unused-files` (98.68s), and `deadcode:exports` (117.24s), with zero production/full-tree unused files or exports and zero script exports. No finding suppression was added. [Ordinary CI](https://github.com/openclaw/openclaw/actions/runs/38344033939) completed with 35 successful jobs, 24 skipped, and two failed jobs: the commands test type leaf reports the separate preflight-reader TS2724, and the aggregate repeats it. All other selected types, lint, source contracts, and boundaries pass; Madge reports zero cycles. The database ratchets report T1 live 455→455, compatibility 9→9, and dialect 0→0. The [independent baseline job](https://github.com/openclaw/openclaw/actions/runs/38345114058/job/115124606702) checked out actual main `54a9df02cc64f5f466490dc7b76ae6bc7f2b2690` and naturally failed the identical commands TypeScript leaf with `config-preflight-snapshot.test.ts:41` TS2724 (exit 2). Only this exact inherited failure and its aggregate are waived under the red-main exception; this PR's ordinary CI is not claimed green. The separate preflight repair is tracked in openclaw#170619. Build, SDK diff, and update-cell jobs were unselected and are not claimed as fresh passes. Local formatting, lint, whitespace checks, and native commit hooks passed. One scoped Codex P2 review completed clean with no findings. Five files: +4/−15. No visual or runtime behavior change, new dependency, schema change, SQLite call, or removed authority check. SQL statements and requests are unaffected by scope; no SQL benchmark was run for this dead-code repair.
The Solid widget migration in
4a05c7c5d59d5768d10105b46cf131e05734f902(#169725) removed the final three callers ofrenderBoardWidgetError, leaving its Lit adapter exported but unused. Scheduled main 38343322520/job 115119178402 fails the canonical export scans on that exact symbol.Delete the obsolete adapter module and import
BoardWidgetPageMenudirectly from its existing owner in all four remaining type-only consumers. The type, Solid error component, error/retry behavior, and page-menu actions are unchanged. The superseded module is removed completely.Exact candidate
6b6b0c21aa90d026e6ee7af0bbc00a34b052e5ddpassed all four complete browser, report, website, and board page-chrome test files: 22/22, no skips, 7.48s Vitest / 11.16s command wall. The focused run also passed all three canonical scans:deadcode:dependencies(173.37s),deadcode:unused-files(98.68s), anddeadcode:exports(117.24s), with zero production/full-tree unused files or exports and zero script exports. No finding suppression was added.Ordinary CI completed with 35 successful jobs, 24 skipped, and two failed jobs: the commands test type leaf reports the separate preflight-reader TS2724, and the aggregate repeats it. All other selected types, lint, source contracts, and boundaries pass; Madge reports zero cycles. The database ratchets report T1 live 455→455, compatibility 9→9, and dialect 0→0. The independent baseline job checked out actual main
fcb89a331a1f59eedde59c4b3a338febdb199cb7and naturally failed the identical commands TypeScript leaf withconfig-preflight-snapshot.test.ts:41TS2724 (exit 2). Only this exact inherited failure and its aggregate are waived under the red-main exception; this PR's ordinary CI is not claimed green. The separate preflight repair is tracked in #170619. Build, SDK diff, and update-cell jobs were unselected and are not claimed as fresh passes.Local formatting, lint, whitespace checks, and native commit hooks passed. One scoped Codex P2 review completed clean with no findings.
Five files: +4/−15. No visual or runtime behavior change, new dependency, schema change, SQLite call, or removed authority check. SQL statements and requests are unaffected by scope; no SQL benchmark was run for this dead-code repair.