Skip to content

fix(ui): keep PR chip above transcript rows - #130224

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/pr-chip-z-index-issue
Aug 26, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/pr-chip-z-index-issue

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Virtualized transcript rows are positioned elements and can paint over the pull-request chip when the transcript intentionally underlaps the composer area. The chip becomes partially obscured and loses its hit-tested surface on both desktop and mobile.

Why This Change Was Made

The pull-request strip owns the boundary between transcript content and the composer. Give that strip an explicit stacking level above transcript rows while preserving the existing transcript underlap and responsive layout.

The regression test reproduces overlapping geometry and verifies the chip owns the painted/hit-tested surface at desktop (1180×800) and mobile (393×852) viewports.

Production delta: +4 CSS lines. Test delta: +105/-1 lines.

User Impact

Pull-request chips remain visible and clickable above transcript rows on desktop and mobile.

Evidence

  • Before-fix browser regression failed at both desktop and mobile viewports because the virtual transcript row owned the chip's top strip.
  • After-fix full PR-chip E2E file: 9/9 passed.
  • pnpm check:changed: passed after the lint correction.
  • Mandatory autoreview: clean, no accepted/actionable findings.
  • Blacksmith Testbox proof unavailable because the installed Crabbox wrapper reported an unsupported dev build and produced no lease or run URL; trusted-source local Chromium proof was used per repository policy.

Desktop

Before After
Desktop before: transcript row paints over the PR chip Desktop after: PR chip remains above the transcript

Mobile

Before After
Mobile before: transcript row obscures the PR chip Mobile after: PR chip remains visible above the transcript

Co-authored-by: Tak Hoffman [email protected]


View the OpenClaw team session

@clawsweeper

clawsweeper Bot commented Aug 26, 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 app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 26, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review August 26, 2026 16:43
roboclaw-bot and others added 2 commits August 26, 2026 17:22
OpenClaw-Publication: d6486664-bbca-4012-ae1d-0b5149319c9e
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 26, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/pr-chip-z-index-issue branch from b4d27a5 to 4377ca1 Compare August 26, 2026 17:22
@roboclaw-bot roboclaw-bot reopened this Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 1:29 PM ET / 17:29 UTC.

ClawSweeper review

What this changes

The PR gives Control UI pull-request chips a stacking level above virtualized transcript rows and adds desktop/mobile hit-testing coverage.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open: current main still has absolute virtual transcript rows while the PR strip has no stacking level. The local stacking-context repair and overlap E2E assertion address that boundary; this maintainer-labeled PR now needs green exact-head checks and normal maintainer review.

Priority: P2
Reviewed head: 4377ca1703a1d13815e7c0bd357bce60d0d85306

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused owner-boundary CSS repair and targeted E2E coverage are good quality; exact-head CI remains the merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This bot-authored PR is exempt from the external-contributor proof gate; its body nevertheless links before/after desktop and mobile captures, which could not be downloaded because GitHub DNS was unavailable to the reviewer.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This bot-authored PR is exempt from the external-contributor proof gate; its body nevertheless links before/after desktop and mobile captures, which could not be downloaded because GitHub DNS was unavailable to the reviewer.
Evidence reviewed 6 items Current-main failure surface: Current main makes transcript rows absolutely positioned, while its pull-request strip has no positioning or stacking level; overlapping rows can therefore paint later than the strip.
Owner and caller boundary: The chat view renders the pull-request strip after the transcript, and the component emits the .chat-prs wrapper that owns the interactive chips.
Proposed owner-boundary repair: The PR changes only the strip owner, adding position: relative and z-index: 1 without changing transcript virtualization or chip rendering.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-pull-requests.e2e.test.ts

Result: FAIL (failed) — step 1 run node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-pull-requests.e2e.test.ts: previous terminal command was still running after 30 seconds: "node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-pull-requests.e2e.test.ts"

RUN  v4.1.11 /tmp/clawsweeper-live-proof-130224-mDAZ9u/target

[vitest] still running with no output for 30000ms.

Assertions:

  • FAIL expect_output: session pull request chips
  • FAIL expect_output: Test Files

How this fits together

The Control UI places session pull-request chips between the chat transcript and composer. Virtualized transcript rows are absolutely positioned, and browser paint order determines whether the interactive chip remains visible and clickable.

flowchart LR
  A[Gateway session PR data] --> B[Chat view]
  B --> C[Virtualized transcript]
  B --> D[Pull-request chip strip]
  C --> E[Browser paint order]
  D --> E
  E --> F[Visible clickable chip]
Loading

Before merge

  • Resolve merge risk (P1) - The supplied check state is not green on the exact PR head: required validation must be refreshed before merge.
Agent review details

Security

None.

PR surface

Source +4, Tests +104. Total +108 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 4 0 +4
Tests 1 105 1 +104
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 109 1 +108

Review metrics

Metric Value Why it matters
Production vs test LOC production +4/-0, tests +105/-1 The production change is one localized stacking rule; the remaining diff is browser coverage for overlap and hit testing.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the narrow .chat-prs stacking context after the exact-head Control UI E2E and required checks are green, leaving transcript underlap and virtualization unchanged.
  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 narrow .chat-prs stacking context after the exact-head Control UI E2E and required checks are green, leaving transcript underlap and virtualization unchanged.

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

No independent browser run was performed in this read-only review. Source establishes a direct reproduction path: overlap an absolute virtual row with a rendered chip and inspect hit testing, as the added E2E does.

Is this the best way to solve the issue?

Yes. The strip owns the interactive chip surface, so raising that existing wrapper above the transcript is a narrower and more maintainable repair than altering virtualizer behavior or adding pointer-event exceptions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 772f6a3d5ea9.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded Control UI interaction regression: affected pull-request chips can be obscured or unclickable, but the core runtime remains available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This bot-authored PR is exempt from the external-contributor proof gate; its body nevertheless links before/after desktop and mobile captures, which could not be downloaded because GitHub DNS was unavailable to the reviewer.

Evidence

What I checked:

  • Current-main failure surface: Current main makes transcript rows absolutely positioned, while its pull-request strip has no positioning or stacking level; overlapping rows can therefore paint later than the strip. (ui/src/styles/chat/layout.css:654, 772f6a3d5ea9)
  • Owner and caller boundary: The chat view renders the pull-request strip after the transcript, and the component emits the .chat-prs wrapper that owns the interactive chips. (ui/src/pages/chat/chat-view.ts:643, 772f6a3d5ea9)
  • Proposed owner-boundary repair: The PR changes only the strip owner, adding position: relative and z-index: 1 without changing transcript virtualization or chip rendering. (ui/src/styles/chat/layout.css:2892, 4377ca1703a1)
  • Regression coverage: The added E2E case injects a real virtual-row overlap and verifies document.elementFromPoint resolves to the chip at desktop and mobile viewports. (ui/src/e2e/chat-pull-requests.e2e.test.ts:270, 4377ca1703a1)
  • Feature-history routing: Available current-main history identifies a recent Control UI stylesheet touch by RoboClaw; the shallow/promisor history could not retrieve older path provenance because GitHub DNS was unavailable. (ui/src/styles/chat/layout.css:654, af36abd6a000)
  • Exact-head validation remains incomplete: The supplied PR context reports cancelled UI/check jobs, a failed CI gate, and remaining in-progress checks; it does not yet establish a green exact-head merge gate.

Likely related people:

  • RoboClaw: The latest available main history touch for the affected stylesheet is authored by RoboClaw. (role: recent Control UI stylesheet contributor; confidence: medium; commits: af36abd6a000; files: ui/src/styles/chat/layout.css)
  • Peter Steinberger: Available main history for the pull-request component area includes a recent touch by Peter Steinberger, though older detailed provenance was unavailable in this shallow checkout. (role: recent adjacent chat contributor; confidence: low; commits: ba8e03fb9c6c; files: ui/src/pages/chat/components/chat-pull-requests.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Obtain green exact-head Control UI E2E and required checks; the supplied run includes cancelled jobs and a failed gate.

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.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Land-ready at exact head 4377ca1703a1d13815e7c0bd357bce60d0d85306.

Root cause: absolutely positioned virtual transcript rows could paint over the unstacked PR strip. The strip is the architectural owner of this composer-neighbor interactive surface, so the canonical fix gives .chat-prs one relative stacking context above transcript underlap. No paths were removed; production delta is +4/-0 CSS lines, with +105/-1 lines of desktop/mobile boundary coverage.

Proof:

  • Desktop and mobile before/after screenshots are embedded in the PR body and were visually inspected.
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-pull-requests.e2e.test.ts — 9/9 passed.
  • node scripts/check-changed.mjs -- ui/src/styles/chat/layout.css ui/src/e2e/chat-pull-requests.e2e.test.ts — passed.
  • node scripts/run-vitest.mjs extensions/browser/chrome-extension/bootstrap.chromium.test.ts — passed locally, including detached-frame reconnect.
  • Exact-head hosted CI retry 32994948226 — 36 passed, 19 intentionally skipped, 0 failed.
  • ClawSweeper exact-head review — zero findings; security clear. Its green exact-head UI/required-check rank-up move is satisfied.
  • Native OPENCLAW_TESTBOX=1 scripts/pr prepare-run 130224 — passed.

Sibling coverage: all four Control UI E2E shards and real-Gateway UI E2E passed. Known proof gap: the initial standalone Blacksmith wrapper could not allocate, superseded by the repository-native hosted exact-head/Testbox gate above.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Land-ready verification for exact head 4377ca1703a1d13815e7c0bd357bce60d0d85306:

  • Desktop (1180×800) and mobile (393×852) overlap/hit-testing proof passed; the focused Chromium file passed 9/9 with OPENCLAW_CAPTURE_UI_PROOF=1 node scripts/run-vitest.mjs ui/src/e2e/chat-pull-requests.e2e.test.ts.
  • Both captured screenshots were inspected and show the PR chip above the underlapping transcript.
  • Targeted format, TypeScript, style, and changed-surface checks passed.
  • Mandatory autoreview completed clean with no accepted/actionable findings.
  • ClawSweeper reviewed this exact head with no code or security findings; its only rank-up move was green exact-head validation.
  • Exact-head hosted CI is green, including all Control UI E2E shards, real-Gateway UI E2E, lint, test types, and the aggregate openclaw/ci-gate: https://github.com/openclaw/openclaw/actions/runs/32994948226
  • Native review artifacts validate as READY FOR /prepare-pr with zero findings.

Known proof gap: Blacksmith Testbox could not be allocated from this host because its CLI was not authenticated. The repository-approved trusted-source local fallback and full hosted exact-head CI supplied the browser proof instead.

ClawSweeper rank-up move is satisfied. No review skip remains.

@roboclaw-bot
roboclaw-bot merged commit f1491a2 into main Aug 26, 2026
260 of 294 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the openclaw/pr-chip-z-index-issue branch August 26, 2026 17:53
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
* fix(ui): keep PR chip above transcript rows

Co-authored-by: Tak Hoffman <[email protected]>

* fix(ui): keep PR chip above transcript rows

OpenClaw-Publication: d6486664-bbca-4012-ae1d-0b5149319c9e

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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