Skip to content

fix: MCP apps stay in a thin strip when expanded - #193069

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
fix/mcp-app-fullscreen-height-20261104
Nov 5, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
fix/mcp-app-fullscreen-height-20261104

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes MCP apps such as Excalidraw remaining in a thin top strip after clicking Edit to expand the transcript app.

User Impact

Expanded apps fill the available editor height, follow viewport resizing, and still return to their original inline height when closed. No configuration changes are required.

Why This Change Was Made

The transcript adapter forced display: block inline, overriding the existing fullscreen flex layout. Remove that redundant override so the stylesheet remains the single layout owner; inline display: block and the existing minimum height stay intact. No sandbox, CSP, permission, or transport policy changes.

Evidence

  • Same browser flow through the real Control UI transcript host, sandbox, and MCP bridge fails before the fix in Chromium and WebKit: an 800px fullscreen host contains a 150px app frame. After the fix, both engines give the app 708px of usable height. Viewport resize and Close back to 450px inline also pass.

  • The fixture is a synthetic MCP app with an Edit button and diagram, not the upstream Excalidraw frontend. The Gateway methods are mocked; this proves the production host-layout boundary, not a live-provider or deployed-Gateway result.

  • Focused browser regression: 2 tests passed, 5.53s test time / 19.11s wall time including the isolated UI build. Exact-head CI build and the selected UI E2E job also passed.

  • Formatting, diff whitespace, assertion-safety and line-cap ratchets pass. Local lint is blocked before analysis because the task checkout links another checkout's dependencies, which the physical dependency-boundary policy rejects. The completed CI attempt reported no lint error in a changed file; inherited failures are recorded below. No guard was bypassed.

  • Regression adds 140 test lines for the real nested-frame browser boundary, with its own test-line allocation. Production delta is one replaced line; no new runtime machinery.

  • Independent source review confirmed the production fix and found two test issues, now addressed: register this suite for CI WebKit provisioning and verify resized geometry shrinks without viewport overflow.

  • Workflow static validation passes (zizmor, Git-owned workflow checks, and composite interpolation check). The requested workflow guard corpus exceeded the 180s local command deadline before completion; no failing assertion was observed. The exact-head CI attempt is now complete; its inherited failures are recorded below.

  • Local ClawSweeper completed the full committed range 943904e8c4cae76b64bf83b1b53a8c230122fb9b..aa435a560e087fa457654d29518031d818330e9e with high reasoning effort and P2 triage coverage. No actionable correctness or security findings; no remaining review findings. This was source-only review, not an additional runtime replay.

Completed CI and inherited-failure exception

CI run 41938414952, attempt 1 finished with failed CI, not a green result. Build artifacts, the selected UI E2E job, and independent security-fast passed. The two root failures are unrelated to this patch:

  • checks-ui (2/3): the unchanged Markdown-table test expects Copied!, but the unchanged English translation is Copied. That fixture does not instantiate the MCP App host.
  • check-lint-core-2: existing max-lines violations in ten untouched source/test files. Every failed input blob is identical between the protected CI baseline and the actual CI merge.

The aggregate CI gate failed downstream of those jobs. The actual checkout was 1a5b837e56afc23174031148bf49b81c0853a57e (parents 0af3fea539816c517ec8e595905ba1991dee6407, aa435a560e087fa457654d29518031d818330e9e). Scoped attribution and exact-head evidence are retained for the supported pre-existing-failure landing route; no security, review, or product finding is waived.

Before (WebKit, synthetic MCP fixture)

Before: expanded app stays in a 150px strip

After (same flow and viewport)

After: expanded app fills the available 708px editor height

Let the existing stylesheet own inline and fullscreen display layout. Add Chromium/WebKit transcript flow coverage for app-requested expansion, viewport resize, and inline restoration; provision WebKit for its CI shard.

The 140-line test allocation covers the nested-frame browser boundary that component tests miss. Independent review findings addressed: register WebKit provisioning and reject stale overflowing resize geometry.
@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@Patrick-Erichsen
Patrick-Erichsen enabled auto-merge (squash) November 5, 2026 00:07
@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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit f05f838 into main Nov 5, 2026
126 of 133 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the fix/mcp-app-fullscreen-height-20261104 branch November 5, 2026 00:21
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
Let the existing stylesheet own inline and fullscreen display layout. Add Chromium/WebKit transcript flow coverage for app-requested expansion, viewport resize, and inline restoration; provision WebKit for its CI shard.

The 140-line test allocation covers the nested-frame browser boundary that component tests miss. Independent review findings addressed: register WebKit provisioning and reject stale overflowing resize geometry.
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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant