Skip to content

test(ui): update MCP App conformance for in-pane confirmations - #164555

Merged
steipete merged 1 commit into
mainfrom
steipete/perf-micro-ci-fix-board-mcp-app-e2e-20260919
Oct 3, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/perf-micro-ci-fix-board-mcp-app-e2e-20260919

Conversation

@steipete

@steipete steipete commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

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 used nice -n 10 ionice -c3 and a task-local disk-backed TMPDIR. The original proof base was 7283a5cd90c2abcc42584eb239869b963fa27e68; the rebased patch retains only the two test files.

Proof Result
Clean-main node scripts/run-vitest.mjs ui/src/e2e/board-mcp-app.e2e.test.ts 4 passed, retention failed; {top: 0, bottom: 602, bodyHeightGap: 602}; 29.58 s runner wall
Same unchanged board E2E with the CSS repair now on main 5/5 passed; zero gaps at 1280×800 and 1440×1000; iframe height 150 → 752 px at 1280×800; retained-runtime case 4.44 s
node scripts/run-vitest.mjs ui/src/e2e/mcp-app-conformance.e2e.test.ts --maxWorkers=1 Before this fixture update: 1 passed, 1 failed (denied vs accepted); final patch: 2/2 passed, 86.41 s runner wall (79.12 s Vitest), including compiled-worker preparation
node scripts/run-vitest.mjs ui/src/e2e/session-dashboard.e2e.test.ts 8/8 passed, 71.19 s runner wall (67.50 s Vitest)
Staged changed-check gate on the authorized rig fallback Exit 0, 21:25–21:32 UTC; UI E2E typecheck 72.2 s, UI typecheck, i18n, dead-export scans, type-aware lint, stylelint, formatting, dependency guards, and ratchets passed
Fresh independent Codex review of the final candidate Scoped-clean through P2, no accepted/actionable findings

Blacksmith Testbox lease tbx_01m41s55dhasedd08nr4ve1arx (blacksmith-testbox, profile openclaw-check) remained queued beyond 20 minutes and was stopped after rig validation. The fallback command was bash /srv/rig/rig-staged-check.sh 400-gate 7283a5cd90c2abcc42584eb239869b963fa27e68, running node scripts/check-changed.mjs --staged against patch SHA-256 427bb74d8dfb45967646df862d3488c75534e863645675706fde8e83e72562bd. 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 red checks-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).

Before the upstream repair: dashboard iframe leaves a 602 px gap

After the upstream repair: the same retained iframe fills the dashboard

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.
@clawsweeper

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

@steipete
steipete marked this pull request as ready for review October 3, 2026 21:38
@steipete
steipete enabled auto-merge (squash) October 3, 2026 21:41
@clawsweeper

clawsweeper Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 5:42 PM ET / 21:42 UTC.

ClawSweeper review

What this changes

Update 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
Reviewed head: 338baf582377fb3e11baafb0460f4245addd1693

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test repair with meaningful approval assertions and reported boundary validation; no blocking patch defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied Repository State identifies a MEMBER-authored test-only follow-up, so ordinary contributor proof is exempt. Reported Chromium/Gateway runs exercise the source-mounted approval boundary; inspected screenshots cover the separate upstream layout fix. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied Repository State identifies a MEMBER-authored test-only follow-up, so ordinary contributor proof is exempt. Reported Chromium/Gateway runs exercise the source-mounted approval boundary; inspected screenshots cover the separate upstream layout fix. No stored-data contract changes.
Evidence reviewed 8 items Verified introduced scope: The pinned introduction changes only the conformance test and its fixture. Base-only tooling changes are outside this PR’s ownership.
Repair remains absent from current main: Fetched main still installs a native-dialog listener and expects its recorded prompt, while the fixture still supplies snapshot: { client } without a connected phase.
Fixture records an observed handshake: The fixture starts the production browser client and awaits its onHello callback before assigning phase: connected. It does not bypass the handshake to manufacture readiness.
Findings None None.
Security None None.

How this fits together

MCP 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 2 files.

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

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This repairs stale browser conformance coverage after a production confirmation change, with no additional user-facing behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: This repairs stale browser conformance coverage after a production confirmation change, with no additional user-facing behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 668c062 adds ui/src/components/mcp-app-view.ts:324 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 668c06211e6c; files: ui/src/components/mcp-app-view.ts)

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
steipete merged commit 6ef7675 into main Oct 3, 2026
137 of 138 checks passed
@steipete
steipete deleted the steipete/perf-micro-ci-fix-board-mcp-app-e2e-20260919 branch October 3, 2026 21:49
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant