Repository navigation
fix(ui): collapse empty child-attention gaps above composer - #166347
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. Reviewed October 6, 2026, 7:40 PM ET / 23:40 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR collapses empty child-status notice containers above the chat composer and extends the existing responsive footer geometry regression test. Merge readiness✅ Ready for maintainer review This PR remains useful: current main still counts an empty child-attention host as visible footer content. No actionable patch defect was found, and the inspected desktop/mobile screenshots demonstrate the spacing improvement. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI places child-session notices and pull-request cards above the message composer. Its footer styles determine whether empty notice containers occupy space while preserving populated cards and their actions. flowchart TD
A[Child session status] --> B[Child notice component]
B --> C[Composer notice container]
D[Pull request and other context cards] --> E[Footer context stack]
C --> E
E --> F{Visible content present?}
F -->|Yes| G[Show cards above composer]
F -->|No| H[Collapse empty space]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +3, Tests +7. Total +10 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep footer spacing driven by actual rendered notice content, with populated cards and neighboring context preserved. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the trigger: an empty child-attention host keeps both enclosing containers visible on current main. The contributor reports failing browser geometry checks and supplies before captures; this review did not execute tests. Is this the best way to solve the issue? Yes, updating the existing emptiness selectors is a narrow repair that matches the component's light-DOM contract and avoids introducing a second visibility owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 45228e1aeed6. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Co-authored-by: Vincent Koc <[email protected]>
* fix(release): preserve gateway fixture close callback * fix(release): retain gateway listener claim through startup * fix(release): preserve explicit gateway test ports * fix(ui): collapse empty child-attention gaps above composer (#166347) Co-authored-by: Vincent Koc <[email protected]> * test(ui): wait for rendered stream before asserting collaborator follow * test(ui): trace collaborator follow policy on failure [diagnostic] * fix(ui): capture end anchor when smooth follow is already at the end * test(ui): drop collaborator follow diagnostics --------- Co-authored-by: Vincent Koc <[email protected]>
…#166347) Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Fixes extra space above the chat composer when the child-attention host is present but has no notice to display.
Related: #166233
User Impact
The pull-request bar keeps its compact spacing above the composer on desktop and mobile. Populated child-attention cards, error notices and their actions remain visible.
Why This Change Was Made
The empty light-DOM host uses
display: contents, but both enclosing emptiness selectors still counted the host itself. Both selectors now look through that named host while preserving other notice and context elements.The existing six-case footer geometry matrix now inserts an empty host and checks that geometry remains unchanged.
Evidence
Browser proof used the mocked Gateway. It does not claim live-provider coverage or an identical CI environment.