Repository navigation
fix(ui): balance completed-work spacing - #126303
vyctorbrzezowski merged 4 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 19, 2026, 11:08 PM ET / August 20, 2026, 03:08 UTC. ClawSweeper reviewWhat this changesThe PR changes completed-work disclosure spacing in Control UI chat transcripts and adds a browser layout regression test. Merge readinessKeep open: the CSS balances the gaps by increasing completed-work row height, contrary to the PR’s stated density-preservation goal. A focused correction is needed before maintainer review can pass it. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherCompleted turns render a collapsed “Worked for …” row between a user prompt and final assistant reply. Chat grouping produces the rollup, the transcript projection renders it, and CSS controls its visible vertical rhythm. flowchart LR
A[Completed chat turn] --> B[Turn grouping]
B --> C[Completed-work rollup]
C --> D[Spacing CSS]
D --> E[Assistant reply]
D --> F[Browser layout test]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +81. Total +81 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Redistribute the existing spacing budget—matching the PR’s documented desktop 4px/4px and touch 4px/10px targets—and extend the browser assertion to preserve total completed-work row height. Do we have a high-confidence way to reproduce the issue? Yes—current-main and exact-head CSS establish the old and new padding budgets, while the focused browser fixture measures the rendered adjacent gaps. This read-only review did not execute the test. Is this the best way to solve the issue? No—the patch achieves symmetric gaps by expanding the row rather than redistributing its existing spacing budget; the documented density-preserving targets are the narrower repair. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against eed64163b629. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Exact-head visual proofFinal head: These sanitized Chromium captures use the browser regression's production-equivalent virtual-row composition and production CSS. I inspected every image. The desktop view moves from
Verification
Landing is now explicitly requested. Exact-head CI and native landing gates remain required. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready verification for
No remaining proof gap blocks the requested landing. |
|
Merged via squash.
|
* fix(ui): balance completed-work spacing * fix(ui): preserve touch work spacing * fix(ui): balance touch work spacing * fix(ui): open completed-work spacing




Closes #126302
What Problem This Solves
Fixes an issue where the Control UI's completed-turn "Worked for ..." disclosure sat too close to the preceding user bubble while leaving disproportionately more space before the assistant's final reply.
This spacing defect is independent of the disclosure flicker/scroll-anchor work in #126093 and #126272.
Why This Change Was Made
The completed-work row now owns equal block-axis spacing around the disclosure. Desktop changes from
0px above / 8px belowto9px / 9px. Touch layouts combine the shared 14px row margin with the work-row padding to change from14px / 22pxto23px / 23px.The final values intentionally add 5px beyond the initially balanced design on each side. A redundant touch-specific margin override was removed, leaving one canonical spacing path. Tool-only turns remain unaffected because they do not render the completed-work rollup.
User Impact
Completed turns scan more clearly: the work disclosure no longer crowds either neighboring message. Each completed-work rollup is intentionally 10px taller than the original layout.
Production delta:
+3/-3(net 0). Test delta:+83/-2(net +81).Evidence
87/87)87/87)