Skip to content

fix(control-ui): repair prompt height-cap e2e after scrollbar fix - #186409

Merged
steipete merged 1 commit into
mainfrom
steipete/coldload-prompt-height-red
Oct 28, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/coldload-prompt-height-red

Conversation

@steipete

@steipete steipete commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the main-branch Control UI e2e failure in “grows the first prompt downward without moving the identity, then caps at ten lines.” It expects overflow-y: auto after #186232 deliberately switched classic-scrollbar drafts to scroll.

Why This Change Was Made

The desktop fixture uses an 8 px classic scrollbar. #186232 retains that real gutter at the height cap so exchanging padding for the scrollbar cannot repeatedly change wrapping and undo the overflow. Its sibling readability test was updated, but this exact expectation was missed. Assert scroll exactly and explain the lifecycle constraint; preserve every geometry, clipping, focus, submission and request assertion.

This is the requested scoped repair for a known main failure during the Control UI reload campaign. The campaign measured fourteen visible states on a signed-in reload of a dashboard deep link; this PR changes only the failing test.

User Impact

No product behavior changes. The e2e validates the intended scrollbar behavior without undoing the composer jitter fix.

Evidence

Native runner, one file and one worker:

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner --maxWorkers=1 ui/src/e2e/new-session-page.prompt-attachments.e2e.test.ts

The attribution runs add --testNamePattern 'grows the first prompt downward'.

Source / test Result
Direct parent e432ec0f81336c3094a9954cd25ff60af10a15ee, original assertion Pass
Introducing commit ca9ee27e2ae4f20321e76d36afe4a81dd6950b96 (#186232), original assertion Fail: scroll versus auto
Initial main e5206cbdcbdcc702e751a4483b66d05229e8f88f, original assertion Same failure
First-parent native bisect across 109 main commits First bad: ca9ee27e2ae4; all six intervening probes fail with the same assertion
Rebased main b1844ddb1df94830f54c137368e59679eaad8249 plus this repair 11/11 pass, file 13.919 s, target case 0.778 s, Vitest invocation 26.78 s

The test file is byte-identical across the introducing commit and its parent. L251 independently reproduced the original failure 10/10 on matched main before this repair. Timings above describe test cost on the shared Mac, not application performance measurements.

Formatting and git diff --check pass. Local Codex autoreview of the complete final patch against b1844ddb1df94830f54c137368e59679eaad8249 is scoped-clean through P2, with no accepted/actionable findings. Exact-head CI run 40611542763 is green at 1a266f8a7cb80cd980a0a73df9f4dc2438341196, including the selected UI e2e shard, all three UI unit shards, lint, type checks and ratchets.

AWS lease cbx_72a44eea7fab, requested and observed type m7a.xlarge, Node 24.22.1, repository Playwright. Full proof run: focused file 11/11 passed, no skips, file 16.79 s, target case 0.89 s, invocation wall 40 s. The full native UI e2e invocation used two workers, no shard or skip selectors, and completed in 6,121 s: 3,207 passed / 2 failed / 10 skipped, across 862 files (858 passed, four red). The touched file passed all eleven cases in that full invocation.

Full-run red file Failure / qualification Follow-up
ui/src/e2e/browser-dictation-status.e2e.test.ts Expected /settings/model-providers, received /settings/talk Same case and failure on pinned main b1844ddb1df9 (8 passed / 1 failed, 54 s)
extensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.ts Private mutation boundary is writable by another POSIX principal Same case and failure on pinned main b1844ddb1df9 (1 passed / 1 failed, 248 s); security check retained
ui/src/e2e/tooltip-first-activation.e2e.test.ts Suite setup: missing WebKit executable; two cases unexecuted Repository WebKit installed; exact-head native replay 2/2 passed, no skips (29 s)
ui/src/pages/workboard/workboard-native-bundle.e2e.test.ts Same missing WebKit setup; four cases unexecuted Exact-head native replay 4/4 passed, no skips (42 s)

The changed-file checker passed formatting, lint, targeted type checks and all other guards. Its dead-export scan failed identically on head and pinned main b1844ddb1df94830f54c137368e59679eaad8249: classifySqliteWorkerExecute, sqliteWorkerRequestClasses, THINKING_TAG_CASES, and resolvePodmanSandboxRuntimeInfo (sandboxEngine). These are unchanged by this test-only patch.

The control run used the same AWS lease and instance type, separate clean builds of head and pinned main, and one native file/worker at a time. It confirms both full-suite assertion failures are inherited on that baseline. Installing the missing WebKit executable resolved the two setup failures, with all six previously unexecuted cases passing. The original full-suite command remains a failed invocation; the follow-ups supplement it. Four other skipped cases remain visible in the original report (steer custody, live DeepSeek, desktop carrier, peer restart). The proof scripts' exit-zero receipts mean evidence collection completed, not that every native check passed.

No runtime code changed, so application timing/CLS comparisons and paired performance deltas are not applicable. All timings here measure test cost. Both remote source checkouts remained clean after validation. AWS lease cbx_72a44eea7fab was stopped after artifact collection; cleanup verified released, ready=false, hasHost=false. No lane-owned Gateway or lease remains running.

Production LOC delta: 0 (the requested production-filter diff is empty). Test-line delta: 0, two lines replaced. No baseline, configuration, protocol, schema or dependency changes. No visual change; no screenshots required.

@clawsweeper

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T00:54:12.813586Z 1a266f8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR changes the capped New Session prompt’s expected overflow mode from auto to scroll and explains why classic scrollbars retain their gutter.

Example: The desktop New Session test fills the prompt with 14 lines.

  • Before: The test rejects overflow-y: scroll because it expects auto.
  • After: The test accepts the intended scroll mode while retaining clipping, layout, focus, and submission checks.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, correct test repair supported by reported native browser runs and successful exact-head CI; supplied visual evidence belongs to the earlier production fix.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair changes no production behavior; its body reports native browser regression runs, and the inspected linked image demonstrates the earlier production scrollbar repair rather than this assertion change.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The Control UI E2E suite reports a failure for intended capped-prompt scrollbar behavior.
Reason: The maintainer-directed repair restores a useful regression test without reverting the composer fix or changing product behavior.

Regression provenance

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

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it narrowly repairs an outdated E2E expectation while preserving the intended scrollbar fix and existing behavioral assertions; no actionable findings remain, and the exact-head aggregate CI gate passed.

Priority: P3
Reviewed head: 1a266f8a7cb80cd980a0a73df9f4dc2438341196

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI browser suite enters multiline drafts through the New Session page and checks the shared textarea owner’s rendered sizing, scrollbar presentation, and session-creation request.

flowchart TD
  A[Browser test] --> B[New Session prompt]
  B --> C[Shared textarea owner]
  C --> D[Scrollbar and height presentation]
  D --> E[Geometry assertions]
  B --> F[Session creation assertion]
Loading

Technical review

Best possible solution:

Merge the focused assertion repair while preserving the shared composer’s scrollbar decision and all existing geometry and submission coverage.

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

The desktop test’s auto expectation conflicts with the shared owner’s deliberate classic-scrollbar scroll mode; the body supplies matching before/after native-run results, but this review ran no tests.

Is this the best way to solve the issue?

The patch is the smallest complete fix: update the stale oracle and its explanation without weakening polling, geometry, clipping, focus, or request assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e7f054619274.

Provenance checked

  • Capped-prompt overflow assertion and polling keeps the original intent (a0c2786: Wait for native overflow presentation to settle on the next animation frame while preserving rendered behavior.)
  • Classic-scrollbar gutter behavior keeps the original intent (ca9ee27: Keep text width stable at the height cap by forcing a real classic scrollbar gutter and retaining padding for overlay scrollbars.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a0c2786 adds ui/src/e2e/new-session-page.prompt-attachments.e2e.test.ts:179 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a0c278641b1f; files: ui/src/e2e/new-session-page.prompt-attachments.e2e.test.ts)
  • Vyctor H. Brzezowski: Raw commit 7d99f9f adds ui/src/e2e/new-session-page.prompt-attachments.e2e.test.ts:43 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7d99f9fd8693; files: ui/src/e2e/new-session-page.prompt-attachments.e2e.test.ts)

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 2 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 2 0

Labels

Label changes:

  • add P3: This is a focused test-maintenance repair with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused test-maintenance repair with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 27, 2026, 9:07 PM ET / October 28, 2026, 01:07 UTC.

@steipete
steipete merged commit 2285960 into main Oct 28, 2026
124 of 125 checks passed
@steipete
steipete deleted the steipete/coldload-prompt-height-red branch October 28, 2026 03:25
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
…t e2e (openclaw#186409)

ui/src/e2e/new-session-page.prompt-attachments.e2e.test.ts failed 10/10 on main: it expected the composer prompt overflow to be `auto`, but openclaw#186232 (5372568, Safari jitter at the draft height cap) intentionally keeps classic scrollbars (`scroll`) to prevent height oscillation and updated its own tests, missing this one.

The stale assertion now expects the intended `scroll`; the test's geometry and interaction assertions are unchanged. Native bisect identified 5372568 as the introducing commit. Production LOC 0, test-line delta 0. The file passes 11/11 locally and on AWS; exact-head CI green; full UI e2e failures reproduce on pinned main; autoreview clean through P2.
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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