Repository navigation
fix(control-ui): repair prompt height-cap e2e after scrollbar fix - #186409
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenancePossible 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 27, 2026, 9:07 PM ET / October 28, 2026, 01:07 UTC. |
…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.
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: autoafter #186232 deliberately switched classic-scrollbar drafts toscroll.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
scrollexactly 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:
The attribution runs add
--testNamePattern 'grows the first prompt downward'.e432ec0f81336c3094a9954cd25ff60af10a15ee, original assertionca9ee27e2ae4f20321e76d36afe4a81dd6950b96(#186232), original assertionscrollversusautoe5206cbdcbdcc702e751a4483b66d05229e8f88f, original assertionca9ee27e2ae4; all six intervening probes fail with the same assertionb1844ddb1df94830f54c137368e59679eaad8249plus this repairThe 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 --checkpass. Local Codex autoreview of the complete final patch againstb1844ddb1df94830f54c137368e59679eaad8249is scoped-clean through P2, with no accepted/actionable findings. Exact-head CI run 40611542763 is green at1a266f8a7cb80cd980a0a73df9f4dc2438341196, including the selected UI e2e shard, all three UI unit shards, lint, type checks and ratchets.AWS lease
cbx_72a44eea7fab, requested and observed typem7a.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.ui/src/e2e/browser-dictation-status.e2e.test.ts/settings/model-providers, received/settings/talkb1844ddb1df9(8 passed / 1 failed, 54 s)extensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.tsb1844ddb1df9(1 passed / 1 failed, 248 s); security check retainedui/src/e2e/tooltip-first-activation.e2e.test.tsui/src/pages/workboard/workboard-native-bundle.e2e.test.tsThe 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, andresolvePodmanSandboxRuntimeInfo(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_72a44eea7fabwas stopped after artifact collection; cleanup verifiedreleased,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.