Repository navigation
refactor(ui): deduplicate layout, clipboard, and polling scaffolds - #106003
Conversation
c83fd7a to
c71f02b
Compare
7939015 to
7302656
Compare
|
Landing checkpoint for exact head
Unblocker: repair the LOC ratchet on |
|
Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 1:03 AM ET / 05:03 UTC. Summary PR surface: Source -58, Tests +124, Other 0. Total +66 across 22 files. Reproducibility: yes. at source level, though it was not live-reproduced: leave a chat pane idle beyond a minute and the timestamp subtree can remain cached because the new poll no longer changes the guard dependency. Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep the shared layout, clipboard, polling, and formatting helpers, but preserve a minute-tick dependency in the guarded chat render path, cover it with a focused regression test, and demonstrate the affected flows in a real Control UI session. Do we have a high-confidence way to reproduce the issue? Yes at source level, though it was not live-reproduced: leave a chat pane idle beyond a minute and the timestamp subtree can remain cached because the new poll no longer changes the guard dependency. Is this the best way to solve the issue? No. The shared-helper direction is maintainable, but the chat polling migration is not behavior-preserving until it restores the memoized subtree's explicit invalidation signal. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ef9383d88ab8. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source -58, Tests +124, Other 0. Total +66 across 22 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
Merged via squash after explicit maintainer instruction to waive advisory CI failures; no required branch-protection checks were configured.
|
…penclaw#106003) * refactor(ui): share dock panel layout * refactor(ui): centralize clipboard writes * refactor(ui): centralize polling lifecycle * refactor(ui): reuse shared byte formatter * chore(ci): refresh UI LOC ratchet * fix(ui): keep dock layout type internal
Closes #105950
What Problem This Solves
The Control UI maintained duplicate dock-panel persistence, clipboard writes, polling lifecycle code, and workspace byte formatting. Those copies could drift; several copy actions already bypassed the canonical non-secure-context fallback.
Why This Change Was Made
This adds one parameterized dock-layout helper and one Lit reactive polling controller, routes all identified clipboard writes through the existing helper, and delegates workspace sizes to the shared normalization formatter. The nodes polling variant fit the controller cleanly; the non-Lit logbook state controller remains unchanged.
Out of scope: duration/relative-time helpers with distinct i18n namespaces remain a follow-up product decision. The dead-export baseline remains owned by its separate burn-down task.
User Impact
No visual or interaction layout changes. Copy actions now consistently retain the existing HTTP fallback; panel dimensions, polling cadence, and workspace size labels retain their prior behavior.
Production TypeScript is net 58 lines smaller. Commits are separated by dedup cluster.
Evidence
Blacksmith Testboxes
tbx_01kxcrgr5m3f4ehtrkegjyv364,tbx_01kxcvfzkpddsbdg3w7kpc0gcq,tbx_01kxcw8nc7a8x4mqey2t7sgnq8, and current-basetbx_01kxcwt1y47whzr77vhjsbcscg:pnpm test:ui: patch-identical head passed 3,742/3,742. Rebased exact head passed 3,741/3,742; the one untouchedchat-tool-cardsDOM-query failure passed 36/36 on immediate isolated rerun.pnpm tsgo:uiandpnpm tsgo:core:test: passed.b43e832fcc8000ed7287c7accc54e381db607f85(48/52 on both trees).oxfmt --checkandgit diff --check: passed.scripts/ts-max-loc-baseline-v2.json. This PR passed the LOC ratchet against base6ef3e87583eda04fc3c790b68af86e021e68733c; currentmainat8a2da4b1bf1555fe0bfaf705eb57300c673c81beis independently LOC-red on seven unrelated core/Codex files.AI-assisted implementation and review.