Skip to content

fix(ui): side panel tab labels render without vertical clipping - #125511

Merged
steipete merged 1 commit into
mainfrom
steipete/clipped-terminal-header-ui-1de77b
Aug 18, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/clipped-terminal-header-ui-1de77b

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users opening Terminal or another tool in the chat side panel could see the outer tab label vertically clipped into a few illegible pixels. The inner shell tab remained readable, which made the broken top-level header especially distracting.

Why This Change Was Made

The side-panel pill keeps the RTL-aware inline spacing from #125368, but once again resets Web Awesome's inherited block padding at the tab-base owner. That restores the full label line box without changing the 28 px close target, tab dimensions, tooltip behavior, or shared Terminal/Browser tab strip.

The existing browser geometry contract now verifies that the rendered label remains fully inside its overflow clipper in both LTR and RTL. The regression test fails on the pre-fix CSS with a -7.296875px block-start inset.

Regression provenance: #125368 changed the previous all-axis padding reset to inline-only padding. The exact follow-up was commit 3aa2263bb75f9097b323f8c0127f3acb08cc7dc1; the PR was merged as 29fc91fe99d8832e5031a272f4afb74b05a1da70.

AI-assisted; I reviewed the implementation, dependency CSS contract, history, tests, and screenshots directly.

User Impact

Side-panel tab labels are fully legible and vertically centered again in right- and bottom-docked layouts, while the newer balanced close-button spacing and RTL pill geometry remain intact.

Evidence

Before After
Clipped Terminal side-panel label Fully visible Terminal side-panel label

The deterministic Control UI E2E harness exercised the real Chromium-rendered surface with a mocked Gateway. The real-profile Chrome extension relay was unavailable, so no authenticated live account data was used or captured.

  • Pre-fix regression proof: focused browser contract fails at ltr label block-start containment with -7.296875.
  • Exact after-fix Terminal geometry: the 18.59375 px label line box is fully contained by a 28 px clipper.
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts — 3 passed.
  • Dark single-Terminal screenshot scenario in ui/src/e2e/chat-rail-columns.e2e.test.ts — 1 passed, 4 skipped.
  • node scripts/check-changed.mjs -- ui/src/styles/chat/sidebar.css ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts — passed formatting, typecheck, lint, guards, and UI build.
  • pnpm ui:build — passed; Control UI performance budgets remained green.
  • Fresh Codex autoreview — clean, no accepted/actionable findings.
  • Source-blind visual validation — 5/5 contract clauses passed on the tight before/after crops.

Production LOC: +1/-0 | Tests: +23/-2

Restore the block-axis padding reset lost in #125368 so Web Awesome tab labels remain vertically legible while retaining logical inline spacing. Add LTR and RTL browser geometry coverage for the visible label boundary.
@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 18, 2026
@steipete
steipete marked this pull request as ready for review August 18, 2026 02:14
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 18, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 10:21 PM ET / August 18, 2026, 02:21 UTC.

ClawSweeper review

What this changes

This PR resets block-axis padding on side-panel tab bases and adds LTR/RTL browser geometry assertions to prevent vertically clipped tab labels.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for normal maintainer handling: the narrow Control UI repair has no blocking correctness finding, and the maintainer label plus MEMBER author status prevent automated cleanup closure.

Priority: P2
Reviewed head: e983d5731db1fb5bd0a054f3d9d6be209888295e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-side CSS correction with meaningful browser-boundary coverage and no actionable patch defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR; it nevertheless supplies directly relevant before/after screenshots and post-fix browser geometry results.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR; it nevertheless supplies directly relevant before/after screenshots and post-fix browser geometry results.
Evidence reviewed 6 items Current-main gap: Current main sets logical inline padding on the side-panel tab base but has no block-axis reset at the affected owner.
Owner-boundary fix: The PR adds the block-axis reset directly on the side-panel tab base, without affecting the shared Terminal or Browser tab-strip stylesheet.
Caller and scope: Side-panel tabs always receive labelTooltip, so the checked tooltip trigger wraps the side-panel label; Terminal and Browser use the shared component but not this sidebar-only selector.
Findings None None.
Security None None.

How this fits together

The Control UI creates side-panel tabs from panel metadata, renders them through the shared tab-strip component, and applies sidebar-specific CSS to their Web Awesome tab base. The browser contract opens Side chat and verifies the label remains inside its visible clipper.

flowchart LR
  A[Side-panel metadata] --> B[Shared tab strip]
  B --> C[Web Awesome tab base]
  C --> D[Sidebar CSS]
  D --> E[Label clipper]
  E --> F[Visible tab label]
  F --> G[Browser geometry contract]
Loading

Before merge

  • Resolve merge risk (P1) - The direct Web Awesome stylesheet contract could not be re-opened locally because its installed source is absent and GitHub DNS is unavailable; retain the PR's exact-head browser geometry evidence when landing.
  • Complete next step (P2) - No repair lane is needed: this maintainer-labeled, MEMBER-authored PR has no concrete patch defect and only needs normal exact-head merge gating.
Agent review details

Security

None.

PR surface

Source +1, Tests +21. Total +22 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 1 23 2 +21
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 24 2 +22

Review metrics

Metric Value Why it matters
Production versus test delta production +1/-0; tests +23/-2 The single production declaration restores the missing logical block-padding reset, while the test increase covers both writing directions.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the one-line owner-side padding reset with its LTR/RTL containment contract once exact-head checks are green; a net-neutral refactor is not available because the missing reset is the required behavior.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the one-line owner-side padding reset with its LTR/RTL containment contract once exact-head checks are green; a net-neutral refactor is not available because the missing reset is the required behavior.

Do we have a high-confidence way to reproduce the issue?

Unclear for an independently run reproduction: current main lacks the reset and the focused browser contract directly measures the claimed containment invariant, but this read-only review did not execute Chromium.

Is this the best way to solve the issue?

Yes. The repair is placed on the sidebar-specific tab-base owner, while the contract verifies the actual label clipper rather than coupling to component implementation details.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 71eab1118d4d.

Labels

Label justifications:

  • P2: A visible side-panel label regression affects Control UI usability but has a limited presentation-only blast radius.
  • 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. Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR; it nevertheless supplies directly relevant before/after screenshots and post-fix browser geometry results.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The external-contributor proof gate does not apply to this MEMBER-authored PR; it nevertheless supplies directly relevant before/after screenshots and post-fix browser geometry results.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the focused repair and has the largest sampled history on the affected CSS and browser-contract files. (role: recent Control UI contributor; confidence: high; commits: e983d5731db1, 843017073cc2; files: ui/src/styles/chat/sidebar.css, ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts)
  • Vyctor H. Brzezowski: Current-main history includes a recent side-panel-label legibility repair in the same stylesheet area. (role: adjacent current-main contributor; confidence: medium; commits: 127931c13da1; files: ui/src/styles/chat/sidebar.css)

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.

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification for head e983d5731db1fb5bd0a054f3d9d6be209888295e.

The regression is reproduced at the visible owner boundary: without the block-axis reset, the browser contract fails with a -7.296875px label inset and the top-level Terminal text is sliced to a few pixels. With the fix, the exact Terminal label's 18.59375 px line box is fully contained by its 28 px clipper in the same right-docked scenario.

ClawSweeper rank-up moves:

  • Dependency contract addressed: the installed @awesome.me/webawesome 3.10.0 tab source defines .tab { padding: 1em 1.5em; }, confirming that an inline-only override preserves the inherited block padding. The one-line sidebar-owned padding-block: 0 reset is therefore the narrow fix.
  • Exact-head merge gate addressed: CI run 32091114815 finished green for this head.

Proof completed:

  • Focused browser contract: 3/3 passed in ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts.
  • Exact dark Terminal screenshot flow: 1 passed, 4 skipped in ui/src/e2e/chat-rail-columns.e2e.test.ts.
  • Changed-file formatting, typecheck, lint, guards, and UI build passed through node scripts/check-changed.mjs.
  • Independent pnpm ui:build passed with Control UI performance budgets green.
  • Fresh autoreview reported no accepted/actionable findings.
  • Source-blind visual validation passed all 5 clauses after inspecting the tight before/after crops.

Before: https://github.com/user-attachments/assets/7c518faf-c5a0-4500-8f3c-03c2d0cb6943

After: https://github.com/user-attachments/assets/f846d1a4-5f8a-4b06-82ee-331116af2f62

Proof gap: the real-profile Chrome extension relay was unavailable, so the visual proof uses the repository's deterministic real-Chromium Control UI E2E harness with a mocked Gateway. No authenticated account data was required.

@steipete
steipete merged commit 93f7492 into main Aug 18, 2026
147 checks passed
@steipete
steipete deleted the steipete/clipped-terminal-header-ui-1de77b branch August 18, 2026 02:29
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(ui): side panel tab labels render without vertical clipping This is item 3/3 in the current shard. Shard 0/38.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
Restore the block-axis padding reset lost in openclaw#125368 so Web Awesome tab labels remain vertically legible while retaining logical inline spacing. Add LTR and RTL browser geometry coverage for the visible label boundary.
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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