Skip to content

fix(ui): collapse empty child-attention gaps above composer - #166347

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ui-empty-child-attention-layout
Oct 7, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ui-empty-child-attention-layout

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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

  • Before the fix, the whole 12-case pull-request suite reproduced three spacing failures (12px against the unchanged 8px maximum), with nine passes.
  • With only the regression test added, the whole footer suite had six intended extra-6px geometry failures and five passes.
  • After the fix, all 31 tests passed across four whole suites: pull-request chips (12), child-attention E2E (2), footer browser layout (11), and child-attention unit tests (6). No skips.
  • Desktop/mobile before-and-after captures inspected; populated child-attention captures also verified.
  • Twenty scoped native checks passed, including UI typecheck, changed-test oxlint, relevant ratchets and all three unused-export scans. Targeted formatting, stylelint and diff checks passed.
  • Fresh scoped review completed with no actionable findings.
  • The full 23-command changed-check aggregate and local core test graphs were not run. Completed exact-head hosted CI and native preparation remain required before landing.

Browser proof used the mocked Gateway. It does not claim live-provider coverage or an identical CI environment.

Desktop before: extra composer gap

Desktop after: compact composer gap

Mobile before: extra composer gap

Mobile after: compact composer gap

@vincentkoc vincentkoc self-assigned this Oct 6, 2026
@clawsweeper

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

@vincentkoc
vincentkoc marked this pull request as ready for review October 6, 2026 23:30
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 7:40 PM ET / 23:40 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 5c97db4ba7998f2f009004ccbff611d5842c2713

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair with inspected before/after media and useful regression coverage.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop/mobile browser captures with a mocked Gateway demonstrate the changed composer stylesheet reducing the empty-host gap while retaining the visible pull-request card and composer. Reported browser suites supplement that direct visual evidence; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected desktop/mobile browser captures with a mocked Gateway demonstrate the changed composer stylesheet reducing the empty-host gap while retaining the visible pull-request card and composer. Reported browser suites supplement that direct visual evidence; no stored-data contract changes.
Evidence reviewed 7 items Verified introduced change: The pinned merge-base-to-head diff changes only the two emptiness selectors and adds an empty-host geometry assertion to the existing browser matrix.
Current main still needs the fix: Current main hides composer notices only when they have no element children; the enclosing context likewise counts every notice child. An empty child-attention host therefore prevents collapse.
Empty and populated component contract: The child-attention component renders light-DOM cards only for attention-bearing descendants. Its contents-only base class keeps the host mounted without adding a layout box. The new selectors look through that named host and continue counting populated cards and other notices.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source +3, Tests +7. Total +10 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 5 2 +3
Tests 1 7 0 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 12 2 +10

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This repairs a small visual spacing defect without changing message delivery, settings, or stored state.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected desktop/mobile browser captures with a mocked Gateway demonstrate the changed composer stylesheet reducing the empty-host gap while retaining the visible pull-request card and composer. Reported browser suites supplement that direct visual evidence; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected desktop/mobile browser captures with a mocked Gateway demonstrate the changed composer stylesheet reducing the empty-host gap while retaining the visible pull-request card and composer. Reported browser suites supplement that direct visual evidence; no stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected desktop/mobile browser captures with a mocked Gateway demonstrate the changed composer stylesheet reducing the empty-host gap while retaining the visible pull-request card and composer. Reported browser suites supplement that direct visual evidence; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-06T23:35:21.854Z sha 5c97db4 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc merged commit 7ac5dba into main Oct 7, 2026
141 checks passed
@vincentkoc
vincentkoc deleted the fix/ui-empty-child-attention-layout branch October 7, 2026 00:00
RomneyDa pushed a commit that referenced this pull request Oct 7, 2026
RomneyDa added a commit that referenced this pull request Oct 7, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant