Repository navigation
test(ui): update MCP App conformance for in-pane confirmations - #164555
Conversation
Let the MCP App view own its fill-container display layout instead of overriding it from board CSS. Preserve the existing frame geometry, runtime identity, and draft retention assertions. Update the conformance fixture to record its completed Gateway connection and drive the in-pane confirmation introduced by #164493. Proved the original 602px gap and the restored zero-gap layout on the Linux rig.
|
🦞👀 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: needs maintainer review before merge. Reviewed October 3, 2026, 5:42 PM ET / 21:42 UTC. ClawSweeper reviewWhat this changesUpdate the MCP App browser conformance test to approve messages inside the app pane and mark its fixture connected after the Gateway handshake. Merge readiness✅ Ready for maintainer review This follow-up remains necessary: current main still expects native confirmation and supplies an incomplete connection snapshot. The patch repairs that conformance coverage without changing production behavior; no actionable introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherMCP Apps run inside isolated frames in OpenClaw’s Control UI. Their message requests pass through the host’s confirmation pane before reaching the conversation event handler; this test exercises that boundary with a real browser and Gateway. flowchart LR
A[MCP App frame] --> B[Message request]
B --> C[Current connection check]
C --> D[In-pane confirmation]
D --> E[User clicks Send]
E --> F[Conversation event]
F --> G[Conformance assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing browser conformance flow aligned with the pane-owned approval contract while retaining production connection and dispatch safeguards. Do we have a high-confidence way to reproduce the issue? Yes, source establishes a focused failing path: current main’s fixture omits the phase required by the binding guard, and its test still waits for native confirmation. The PR reports before/after browser results; this review did not execute them. Is this the best way to solve the issue? Yes. Updating the existing fixture after its real handshake and driving the actual approval pane is a narrow repair that preserves pre-approval and post-approval assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 06da0de86c0a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Let the MCP App view own its fill-container display layout instead of overriding it from board CSS. Preserve the existing frame geometry, runtime identity, and draft retention assertions. Update the conformance fixture to record its completed Gateway connection and drive the in-pane confirmation introduced by openclaw#164493. Proved the original 602px gap and the restored zero-gap layout on the Linux rig.
Related: #164493
What Problem This Solves
Fixes: the MCP App conformance E2E refuses a message and still waits for a native confirmation dialog after Apps switched to in-pane confirmations.
The accompanying dashboard layout regression is already fixed on main by
11515ce5b3dad2dde1c8a667c6252f62085dd6de. This branch was rebased onto current main; its identical CSS deletion dropped out. This PR contains only the remaining conformance-test repair.User Impact
User impact: no additional production behavior change. The existing conformance flow now verifies the intended approval surface and protects message dispatch through the real browser, Gateway, and MCP transports.
Why This Change Was Made
After awaiting the real Gateway hello, the source-mounted fixture must expose
phase: "connected"to satisfy the current-binding guard introduced by the confirmation change. The test now requires the in-pane alert dialog and message preview, verifies that no message was dispatched before approval, clicks Send, and checks acceptance of the unchanged message. Remove the retired native-dialog recorder; the required strip interaction cannot pass on the old native-dialog path.Production LOC delta: 0. This is a test-only follow-up after main received the one-line production deletion. Test/support delta: 0 (7 added, 7 removed); no new cases, timers, boots, configuration, or production paths. The board geometry and runtime-retention test is unchanged.
Evidence
Isolated Linux rig (8 cores, 30 GB, Node 26), checkout
/srv/rig/wt-400; all heavy commands usednice -n 10 ionice -c3and a task-local disk-backedTMPDIR. The original proof base was7283a5cd90c2abcc42584eb239869b963fa27e68; the rebased patch retains only the two test files.node scripts/run-vitest.mjs ui/src/e2e/board-mcp-app.e2e.test.ts{top: 0, bottom: 602, bodyHeightGap: 602}; 29.58 s runner wallnode scripts/run-vitest.mjs ui/src/e2e/mcp-app-conformance.e2e.test.ts --maxWorkers=1deniedvsaccepted); final patch: 2/2 passed, 86.41 s runner wall (79.12 s Vitest), including compiled-worker preparationnode scripts/run-vitest.mjs ui/src/e2e/session-dashboard.e2e.test.tsBlacksmith Testbox lease
tbx_01m41s55dhasedd08nr4ve1arx(blacksmith-testbox, profileopenclaw-check) remained queued beyond 20 minutes and was stopped after rig validation. The fallback command wasbash /srv/rig/rig-staged-check.sh 400-gate 7283a5cd90c2abcc42584eb239869b963fa27e68, runningnode scripts/check-changed.mjs --stagedagainst patch SHA-256427bb74d8dfb45967646df862d3488c75534e863645675706fde8e83e72562bd. That proof included the identical CSS deletion subsequently landed on main. The wrapper retained its last 80 lines and exit marker; no timing-summary table was emitted.The initial combined E2E invocation failed during compiled-worker input sealing when Chromium profile symlinks changed beneath the required task-local temp directory. Running the sibling files separately let compilation finish before Chromium launched; no guard changed. The first test update exceeded the file line cap; deleting the obsolete dialog recorder preserved the approval assertions with no test LOC growth. The long conformance file already exercises real transport composition beyond 15 seconds, which a cheaper unit test cannot establish.
The following inspected synthetic captures show the layout repair now on main, not an additional visual change in this PR. Exact-head CI run 37155830713 passed on
338baf582377fb3e11baafb0460f4245addd1693. The PR rollup has 49 passing checks, no failures, and no pending checks, including the formerly redchecks-ui-e2e (1/2)and both real-Gateway E2E jobs. The conformance file passed both cases in 42.644 s of hosted file time (3.985 s message/standalone flow, 22.614 s composed-operation/cancellation case).