Skip to content

fix(ui): let focused dashboard widgets fill the task area - #154440

Merged
steipete merged 2 commits into
mainfrom
codex/dashboard-full-height
Sep 21, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/dashboard-full-height

Conversation

@steipete

@steipete steipete commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes a single full-width dashboard widget stopping partway down the screen in a focused task, leaving unused space below it.

User Impact

Focused widgets fill the available task area and follow window resizing. Restoring split view preserves the live widget and unsaved input. No configuration or migration is needed.

Why This Change Was Made

The page layout previously filled the height only for website/browser widgets. MCP apps also estimated iframe height from saved grid rows. Focused widgets now use the page layout, and MCP apps fill their actual container and report its measured dimensions through the existing bridge observer. Shell-free HTML documents retain their content sizing and scrolling behavior.

Evidence

Synthetic before/after screenshots reproduce the empty area and show the repaired layout.

Before: fixed-height widget leaves unused space

After: widget fills the task area

  • 28 component tests passed, including bridge resize notifications, inline auto sizing, access notices, and observer cleanup.
  • Four MCP dashboard browser scenarios and nine fullscreen scenarios passed, covering resize, split restoration, retained input, and nested document scrolling.
  • Original-code regression fails with a 592px bottom gap; the final case passes fullscreen, resize, split, and actual MCP host dimensions (4.36s test, 5.30s file, 54.78s including build/bootstrap).
  • check:changed passed: formatting, lint, UI/core-test typechecks, i18n, and repository guards.
  • Independent Codex review: no actionable P0–P2 findings.
  • Local single-worker timing: component files 12.46s/14.49s wall (0.73s/1.27s test time); MCP browser file 11.22s test time; fullscreen file 30.74s wall. Browser suites reuse their server fixtures. Hosted CI: the dashboard tests passed; the real-Gateway collaborator scroll case failed with a 53px reading-position shift after remote typing appeared. Its scroll/controller owners are unchanged from main. The owning race was reproduced deterministically and repaired separately on main in 2a3aee2181a, with clean independent review, focused tests, full changed checks, and real-Gateway proof showing zero drift at all 16 checkpoints. This PR was rebased onto that repair with an identical dashboard patch. Original failed job.

The screenshots use a mocked Gateway and synthetic app content. This PR does not deploy the Team server.

@clawsweeper

clawsweeper Bot commented Sep 21, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S maintainer Maintainer-authored PR size: M and removed size: S labels Sep 21, 2026
@steipete
steipete marked this pull request as ready for review September 21, 2026 05:03
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 21, 2026, 3:08 AM ET / 07:08 UTC (Revision 3).

ClawSweeper review

What this changes

Makes focused dashboard widgets fill the task area and sizes embedded MCP apps from their rendered containers, with documentation and regression coverage.

Regression provenance

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

Merge readiness

⛔ Needs changes before merge - 2 items remain

The layout fix remains useful and has convincing visual evidence, but the previously reported load-error visibility defect remains in the current head and verified test merge.

Priority: P2
Reviewed head: 06a4d1a12d6221bf070028ad52df220b6c825a1c

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Clear visual evidence and focused implementation are offset by the unresolved error-visibility regression.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots demonstrate the dashboard and MCP view filling the focused task area in the repository's browser harness with a mocked Gateway. Reported browser checks supplement that visual evidence with measured dimensions and state retention; the load-error defect remains a separate correctness blocker.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots demonstrate the dashboard and MCP view filling the focused task area in the repository's browser harness with a mocked Gateway. Reported browser checks supplement that visual evidence with measured dimensions and state retention; the load-error defect remains a separate correctness blocker.
Evidence reviewed 8 items Introduced patch: Reviewed the pinned merge-base-to-head delta. The new full-height mount rule is introduced by this PR; unrelated base-branch changes are excluded.
Prior blocker remains: The full-height rule applies to an empty mount. Setup failure removes the iframe, and render places the error after that mount, below the initial visible widget bounds. This matches the retained prior finding and rank-up move. The earlier reviewed commit was unavailable locally, so no new unchanged-history attribution is asserted.
Verified merge preserves the defect: Raw test-merge parents match the pinned base followed by the exact PR head. Comparing that result with its main parent retains the same full-height mount rule.
Findings 1 actionable finding [P2] Collapse the empty mount when an MCP app fails to load
Security None None.

How this fits together

The Control UI dashboard renders session widgets inside a resizable task panel. Its layout determines the space available to embedded MCP apps and reports those dimensions through the existing app bridge.

flowchart TD
  A[Session dashboard] --> B[Focused or split task layout]
  B --> C[Widget container]
  C --> D[MCP app view]
  D --> E[Measured dimensions]
  E --> F[Embedded app bridge]
  D --> G[Visible app or load error]
Loading

Before merge

  • Collapse the empty mount when an MCP app fails to load (P2) - The previously reported blocker remains. When mcp.app.view rejects or sandbox setup fails, cleanup leaves .mount empty and render() places .error after it. This rule still gives the empty mount the entire widget height, so users initially see a blank widget and must scroll to find the explanation. Restrict full-height sizing to the populated mount, or explicitly collapse it on failure, and verify the error lies within the visible dashboard bounds.
  • Complete next step (P2) - Collapse the empty MCP mount after load failure and verify that its error is visible without scrolling.

Findings

  • [P2] Collapse the empty mount when an MCP app fails to load — ui/src/components/mcp-app-view.ts:143-146
Agent review details

Security

None.

PR surface

Source 0, Tests +97, Docs +2. Total +99 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 5 46 46 0
Tests 4 112 15 +97
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 161 62 +99

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net 0 lines; tests net +97 lines The branch replaces manual sizing calculations while concentrating growth in regression coverage.

Technical review

Best possible solution:

Retain container-based sizing for mounted apps while collapsing an empty mount so load failures remain immediately visible.

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

Yes, from source: reject mcp.app.view for a container-sized dashboard app; the empty full-height mount places the error below the visible area. This review did not execute that scenario.

Is this the best way to solve the issue?

Yes, measuring the existing container is the narrowest sizing fix, but its empty/error state must retain the previous visible failure behavior.

Full review comments:

  • [P2] Collapse the empty mount when an MCP app fails to load — ui/src/components/mcp-app-view.ts:143-146
    The previously reported blocker remains. When mcp.app.view rejects or sandbox setup fails, cleanup leaves .mount empty and render() places .error after it. This rule still gives the empty mount the entire widget height, so users initially see a blank widget and must scroll to find the explanation. Restrict full-height sizing to the populated mount, or explicitly collapse it on failure, and verify the error lies within the visible dashboard bounds.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This fixes a bounded dashboard layout problem, with one remaining error-state presentation defect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): Inspected before/after screenshots demonstrate the dashboard and MCP view filling the focused task area in the repository's browser harness with a mocked Gateway. Reported browser checks supplement that visual evidence with measured dimensions and state retention; the load-error defect remains a separate correctness blocker.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots demonstrate the dashboard and MCP view filling the focused task area in the repository's browser harness with a mocked Gateway. Reported browser checks supplement that visual evidence with measured dimensions and state retention; the load-error defect remains a separate correctness blocker.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots demonstrate the dashboard and MCP view filling the focused task area in the repository's browser harness with a mocked Gateway. Reported browser checks supplement that visual evidence with measured dimensions and state retention; the load-error defect remains a separate correctness blocker.

Evidence

Acceptance criteria:

  • [P1] pnpm test ui/src/components/mcp-app-view.test.ts ui/src/components/board/board-widget-cell-mcp-app.test.ts --maxWorkers=1.
  • [P1] node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/board-mcp-app.e2e.test.ts ui/src/e2e/dashboard-fullscreen.e2e.test.ts.
  • [P1] pnpm check:changed.
  • [P1] git diff --check.

What I checked:

  • Introduced patch: Reviewed the pinned merge-base-to-head delta. The new full-height mount rule is introduced by this PR; unrelated base-branch changes are excluded. (ui/src/components/mcp-app-view.ts:143, 06a4d1a12d62)
  • Prior blocker remains: The full-height rule applies to an empty mount. Setup failure removes the iframe, and render places the error after that mount, below the initial visible widget bounds. This matches the retained prior finding and rank-up move. The earlier reviewed commit was unavailable locally, so no new unchanged-history attribution is asserted. (ui/src/components/mcp-app-view.ts:143, 06a4d1a12d62)
  • Verified merge preserves the defect: Raw test-merge parents match the pinned base followed by the exact PR head. Comparing that result with its main parent retains the same full-height mount rule. (ui/src/components/mcp-app-view.ts:143, 1a46b1286824)
  • Still necessary on main: Fetched main still calculates MCP iframe height from saved grid rows and passes fixedHeight=true. The relevant dashboard implementation has no differences from the pinned merge base. (ui/src/components/board/board-mcp-app-content.ts:32, f6f59497b50f)
  • Latest-release comparison: The MCP app view blob is identical in v2026.9.5 and fetched main; both retain the pre-patch sizing implementation. (ui/src/components/mcp-app-view.ts, ec9c1a13db89)
  • Inspected visual proof: Viewed both prepared PR screenshots. Before shows a short widget and large unused area; after shows the synthetic dashboard filling the task area. The captured body explicitly identifies a mocked Gateway and synthetic app content. These images support the visual layout claim, not error-state coverage or security claims.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Collapse the empty MCP mount and add browser coverage showing a load error within the visible widget bounds.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-21T05:10:06.693Z sha be37c8a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T05:52:27.589Z sha be37c8a :: needs changes before merge. :: [P2] Collapse the empty mount when an MCP app fails to load

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 21, 2026
steipete added a commit that referenced this pull request Sep 21, 2026
Retire automatic follow before a new remote typing row renders. Preserve queued and active reader commands through retargets, and release completed end intent using the existing geometry boundary.

Fixes the current-main race exposed by PR #154440 CI run 35563116798. Deterministic owner regressions fail before the repair; component coverage, changed checks, and two-profile real Gateway proof pass with zero drift across all 16 checkpoints.
Use the rendered container for embedded MCP app sizing instead of estimating iframe height from saved grid rows. Preserve widget state across fullscreen, resizing, and split view.
Initialize the synthetic MCP app so failed geometry checks retain their real diagnostic, and check host dimensions across focus, resize, and split.
@steipete
steipete force-pushed the codex/dashboard-full-height branch from be37c8a to 06a4d1a Compare September 21, 2026 06:58
@steipete
steipete merged commit 7f22c8e into main Sep 21, 2026
155 checks passed
@steipete
steipete deleted the codex/dashboard-full-height branch September 21, 2026 07:30
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to vyctorbrzezowski/openclaw that referenced this pull request Sep 21, 2026
…question-layout-restart-recovery-20260921

* 'main' of https://github.com/openclaw/openclaw: (110 commits)
  perf(infra): collect and retire idle worker heaps (openclaw#154408)
  perf(sessions): hand shared history to the final reader (openclaw#154552)
  fix: clarify Codex onboarding migration scope (openclaw#151383)
  fix: recover conflicted PRs after accepted auto-merge
  perf(update): defer Gateway maintenance during candidate validation (openclaw#154548)
  perf(test): advance llama.cpp reload deadlines virtually (openclaw#154536)
  refactor(skills): prepare pinned library resources off-thread (openclaw#148560)
  fix(tooling): preserve Node compiler policy in script subprocesses (openclaw#154509)
  ci: select supported Node and cover packaged Node 26 (openclaw#154298)
  fix(release): preserve Telegram rerun evidence (openclaw#154561)
  docs: follow pending PR merges through completion
  fix(gateway): avoid stuck shutdowns after lifecycle errors (openclaw#145241)
  fix(ui): let focused dashboard widgets fill the task area (openclaw#154440)
  feat(release): add non-Latest extended-stable releases (openclaw#154515)
  fix(release): project 7.35 package Telegram config (openclaw#154546)
  refactor(config): derive host contracts from schemas (openclaw#153936)
  fix(ui): remove finished subagents from inline activity (openclaw#154469)
  refactor(config): derive core channel contracts from schemas (openclaw#153935)
  refactor(config): derive boundary contracts from schemas (openclaw#153937)
  fix(ui): keep thread activity current across cached updates (openclaw#154540)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
Retire automatic follow before a new remote typing row renders. Preserve queued and active reader commands through retargets, and release completed end intent using the existing geometry boundary.

Fixes the current-main race exposed by PR openclaw#154440 CI run 35563116798. Deterministic owner regressions fail before the repair; component coverage, changed checks, and two-profile real Gateway proof pass with zero drift across all 16 checkpoints.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
…54440)

* fix(ui): fill the task area with a focused dashboard widget

Use the rendered container for embedded MCP app sizing instead of estimating iframe height from saved grid rows. Preserve widget state across fullscreen, resizing, and split view.

* test(ui): verify dashboard app container dimensions

Initialize the synthetic MCP app so failed geometry checks retain their real diagnostic, and check host dimensions across focus, resize, and split.
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant