Skip to content

fix(ui): remove obsolete board error adapter - #170609

Merged
steipete merged 1 commit into
mainfrom
dbasync/redmain-board-error-wrapper
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
dbasync/redmain-board-error-wrapper

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

The Solid widget migration in 4a05c7c5d59d5768d10105b46cf131e05734f902 (#169725) removed the final three callers of renderBoardWidgetError, 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 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 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 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 fcb89a331a1f59eedde59c4b3a338febdb199cb7 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 #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.

@clawsweeper

clawsweeper Bot commented Oct 13, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T03:58:21.652300Z 6b6b0c2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR deletes the unused Lit board-error adapter and redirects four type-only imports to the existing type owner.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified cleanup with no actionable findings; candidate runtime validation is not claimed.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored dead-code cleanup changes no reachable rendering behavior. The inspected linked migration screenshots show reader tabs and terminal docking, not candidate-specific execution; no tests or target code were run during this review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored cleanup removes a verified unused presentation path while preserving the maintained implementation and all behavior.

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
Reviewed head: 6b6b0c21aa90d026e6ee7af0bbc00a34b052e5dd

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control 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]
Loading

Technical review

Best 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

  • Lit board-error adapter keeps the original intent (d4f5517: The shared-presentation consolidation retained a Lit bridge to the native Solid error component for remaining Lit consumers; the subsequent migration removed those consumers.)
  • BoardWidgetPageMenu imports keeps the original intent (3e8757d: The adapter re-exported the type from board-widget-cell-options.ts; direct type-only imports preserve that existing definition.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Exact introduced change: The pinned diff deletes only the eleven-line adapter and changes four type-only imports; it leaves the error renderer, retry callbacks, menu implementation, and authorization checks intact. (ui/src/components/board/board-widget-cell-render.ts, 6b6b0c21aa90)
  • Current main still contains the obsolete path: Fetched main contains the unused renderBoardWidgetError export and exactly four type-only consumers of its module; the reviewed checkout has no remaining references to the removed path. (ui/src/components/board/board-widget-cell-render.ts:6, fad84f184600)
  • Existing owner and migration provenance: BoardWidgetPageMenu remains defined in board-widget-cell-options.ts. The merged migration at refactor(ui): port portable Lit consumers to Solid #169725 replaced the browser, report, and website consumers with direct Solid error rendering, making this adapter unnecessary. (ui/src/components/board/board-widget-cell-options.ts:22, 4a05c7c5d59d)
  • CI failure is a body-format gate: The failed PR context and evidence check requests authored What Problem This Solves and Evidence sections; its annotations identify no production-code failure. Other checks were still running or queued in the supplied context. (6b6b0c21aa90)
  • Policy, history, and inspection limits: Read the complete root and UI AGENTS.md files; no maintainer-notes directory exists. Scoped history identifies repeated presentation work by Peter Steinberger. Older-content searches and one blame operation encountered unavailable promisor blobs, so no original-introduction claim is made. (ui/AGENTS.md, 6b6b0c21aa90)

PR surface

Source -11, Tests 0. Total -11 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 3 14 -11
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 4 15 -11

Labels

Label changes:

  • add P3: This is low-risk internal cleanup with no intended user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is low-risk internal cleanup with no intended user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 13, 2026, 12:00 AM ET / 04:00 UTC.

@steipete
steipete merged commit c6ee923 into main Oct 13, 2026
91 of 96 checks passed
@steipete
steipete deleted the dbasync/redmain-board-error-wrapper branch October 13, 2026 04:18
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant