Skip to content

fix(ui): terminal and browser panels render with hidden content - #169182

Merged
RomneyDa merged 1 commit into
mainfrom
fix/ui-terminal-canvas-visible
Oct 11, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/ui-terminal-canvas-visible

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Related: #168786, 2899226

What Problem This Solves

Fixes: on current main, the Control UI Terminal side panel opens blank because its viewport stays hidden. This also turns checks-ui-e2e (1/2) red for every PR.

User Impact

User impact: opening a Terminal panel shows the terminal again. Unrelated PRs stop failing ui/src/e2e/chat-panel-layout.e2e.test.ts.

Why This Change Was Made

2899226 ("consolidate Solid panel element contracts") changed the terminal and browser wa-tab-panel viewports from the active attribute to a bare prop:active. @solidjs/compiler 2.0.0-rc.13 compiles a valueless prop: attribute to nothing, so the panel never becomes active and Web Awesome keeps it hidden. Writing prop:active={true} emits the property assignment the typed element contract (ui/src/types/solid-elements.d.ts) already requires. These were the only two bare prop: attributes in ui/src. The browser viewport had the same dropped binding; its covered flows (browser-stream-startup e2e) still pass on main, so the visible break is the terminal. The browser line is corrected for the same contract.

Compiler proof (node -e against ui/node_modules/@solidjs/compiler):

  • <wa-tab-panel prop:active /> produces only the template <wa-tab-panel>, with no assignment.
  • <wa-tab-panel prop:active={true} /> produces _el$.active = true;.

Evidence

Terminal side panel in the mocked Control UI e2e (chat-panel-layout), screenshotted 4s after opening Terminal:

Before (origin/main 5f93ba3): the viewport stays hidden and the panel is blank.

terminal panel before

After (this PR): the terminal canvas renders the mock session.

terminal panel after

  • git bisect over ui/ from 89564fa3a10^ (good) to origin/main 5f93ba3, using chat-panel-layout.e2e.test.ts: first bad commit is 2899226.
  • On origin/main 5f93ba3 the test fails: waiting for locator('[data-panel-slot="terminal"] openclaw-terminal-panel').locator('.tp-host canvas') to be visible — locator resolved to hidden <canvas>. The same failure shows up in unrelated PR CI, for example runs 38149059259 and 38149049899.
  • With this change, the ui-e2e config passes for chat-panel-layout, browser-stream-startup, terminal-runtime, and terminal-fonts: 4 files, 13 tests.
  • node scripts/run-vitest.mjs ui/src/components/terminal ui/src/components/browser: 41 files, 505 tests pass.
  • node scripts/check-changed.mjs --staged passes; the dead-export scan was skipped. Autoreview is clean.
  • Follow-up: the compiler silently drops a bare prop: attribute. That is worth a guard or an upstream report, and it is not part of this PR.

2899226 switched the terminal and browser wa-tab-panel viewports from
the `active` attribute to a bare `prop:active`. @solidjs/compiler
2.0.0-rc.13 compiles a valueless `prop:` attribute to nothing, so the
panels were never activated and their content (terminal canvas, browser
frame) stayed hidden. Use `prop:active={true}`, which emits the property
assignment the typed element contract expects.

Repro: ui/src/e2e/chat-panel-layout.e2e.test.ts fails on main waiting for
the terminal `.tp-host canvas` to become visible; passes with this change.
@clawsweeper

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

@RomneyDa
RomneyDa marked this pull request as ready for review October 11, 2026 15:17
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR explicitly sets the terminal and browser viewport elements’ active property to true.

Example: Open Terminal in the Control UI chat side panel.

  • Before: The terminal canvas exists but remains hidden inside an inactive wa-tab-panel.
  • After: The viewport becomes active and exposes the terminal canvas.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) A focused, source-supported repair with no identified defect; required visual proof remains outstanding.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Opening Terminal or Browser leaves the panel’s content hidden.
Reason: The maintainer-authored repair restores intended visibility without adding capability, settings, or a competing owner.

Regression provenance

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

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs a current-main panel visibility regression, preserves the intended element contract, and has no identified code defect.

Priority: P1
Reviewed head: 0bd7232cd9296e31295cbca5d6a1bf902a0614d8

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply inspected before/after screenshots showing terminal canvas and browser viewport visibility through the Control UI; existing reported regression coverage already exercises the terminal failure.
Agent review details

How this fits together

Control UI panel controllers supply presentation state to Solid renderers, which place terminal canvases and browser content inside Web Awesome viewport elements.

flowchart TD
  A[Control UI panel selection] --> B[Panel controllers]
  B --> C[Solid panel renderers]
  C --> D[Active Web Awesome viewport]
  D --> E[Terminal canvas]
  D --> F[Browser content]
Loading

Technical review

Best possible solution:

Use explicit true property bindings in both existing viewport renderers while preserving controller and panel-selection ownership.

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

The pinned compiler source skips bare prop: bindings, Web Awesome defaults the viewport to inactive, and current main contains those bindings; the PR also supplies a matching hidden-canvas failure trace, but no target code was executed during this review.

Is this the best way to solve the issue?

This directly repairs the rendering cause with the smallest change and respects the earlier contract consolidation’s stated intent.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Terminal and browser viewport activation keeps the original intent (2899226: Consolidate JSX element declarations and use required reflected active-property bindings without changing panel selection behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source 0. Total 0 across 2 files. Added test files: 0.

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

Labels

Label changes:

  • add P1: A current-main regression hides both terminal and browser viewport content and disrupts normal panel workflows.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P1: A current-main regression hides both terminal and browser viewport content and disrupts normal panel workflows.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Attach inspected before/after Control UI screenshots for both repaired viewports.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

Reviewed October 11, 2026, 11:23 AM ET / 15:23 UTC.

@RomneyDa
RomneyDa merged commit 345f400 into main Oct 11, 2026
147 checks passed
@RomneyDa
RomneyDa deleted the fix/ui-terminal-canvas-visible branch October 11, 2026 15:29
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 11, 2026
Restore red-main UI coverage after the Solid migration: check actual Play focus, inject failure into the emitted terminal module, and retain unread accessible-name semantics. Cover the visible empty browser panel repaired in #169182.

Reproduced all three E2E failures, then passed all 31 whole-file cases in 64.970s. Browser-panel tests: 19/19 in 5.577s; registered Chromium/WebKit focus proof: 2/2 in 6.897s. Owning UI types, lint and formatting passed. Fresh managed review found no actionable issues. The inherited max-lines baseline failure was repaired separately in 292766c.
steipete added a commit that referenced this pull request Oct 11, 2026
Replace stale Lit-era fixture shapes with the contracts used by the Solid
pages. Activity fixtures implement ApplicationContext without unsafe partial
casts; Usage exposes its real container separately from its typed model
harness. Keep every behavioral assertion and use the full Usage filter type.
Update the coupled refetch-volume fixture to the Activity callback lifecycle.

Current-main diagnostics reproduced: Activity mount return type and seven
partial-context casts; Usage element cast and UTC-only signal inference;
refetch-volume constructor and removed hostDisconnected method (12 total).

Proof: all eight UI test-type graphs and production UI types pass; 119 tests
in 11 focused files pass (20.63s runner wall). UI build, typed lint, line-cap,
max-lines, assertion, timeout-race, and mock-export ratchets pass. Independent
review reports no actionable P0-P2 findings.

The separately reported Terminal repaint regression is already repaired by
345f400 (#169182). Its unchanged bundled E2E passes on current main
(15.45s); removing only prop:active={true} reproduces the exact line-83 hidden
560x312 canvas timeout (26.18s). No additional Terminal change is needed.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…9182)

eb52fe4 switched the terminal and browser wa-tab-panel viewports from
the `active` attribute to a bare `prop:active`. @solidjs/compiler
2.0.0-rc.13 compiles a valueless `prop:` attribute to nothing, so the
panels were never activated and their content (terminal canvas, browser
frame) stayed hidden. Use `prop:active={true}`, which emits the property
assignment the typed element contract expects.

Repro: ui/src/e2e/chat-panel-layout.e2e.test.ts fails on main waiting for
the terminal `.tp-host canvas` to become visible; passes with this change.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
Restore red-main UI coverage after the Solid migration: check actual Play focus, inject failure into the emitted terminal module, and retain unread accessible-name semantics. Cover the visible empty browser panel repaired in openclaw#169182.

Reproduced all three E2E failures, then passed all 31 whole-file cases in 64.970s. Browser-panel tests: 19/19 in 5.577s; registered Chromium/WebKit focus proof: 2/2 in 6.897s. Owning UI types, lint and formatting passed. Fresh managed review found no actionable issues. The inherited max-lines baseline failure was repaired separately in 3ad8058.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
Replace stale Lit-era fixture shapes with the contracts used by the Solid
pages. Activity fixtures implement ApplicationContext without unsafe partial
casts; Usage exposes its real container separately from its typed model
harness. Keep every behavioral assertion and use the full Usage filter type.
Update the coupled refetch-volume fixture to the Activity callback lifecycle.

Current-main diagnostics reproduced: Activity mount return type and seven
partial-context casts; Usage element cast and UTC-only signal inference;
refetch-volume constructor and removed hostDisconnected method (12 total).

Proof: all eight UI test-type graphs and production UI types pass; 119 tests
in 11 focused files pass (20.63s runner wall). UI build, typed lint, line-cap,
max-lines, assertion, timeout-race, and mock-export ratchets pass. Independent
review reports no actionable P0-P2 findings.

The separately reported Terminal repaint regression is already repaired by
4e11f69 (openclaw#169182). Its unchanged bundled E2E passes on current main
(15.45s); removing only prop:active={true} reproduces the exact line-83 hidden
560x312 canvas timeout (26.18s). No additional Terminal change is needed.
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 P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant