Repository navigation
fix(ui): terminal and browser panels render with hidden content - #169182
Conversation
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.
|
🦞👀 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. What this changesThis PR explicitly sets the terminal and browser viewport elements’ active property to true. Example: Open Terminal in the Control UI chat side panel.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0. Total 0 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 11, 2026, 11:23 AM ET / 15:23 UTC. |
|
Merged via squash.
|
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.
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.
…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.
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.
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.
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 turnschecks-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-panelviewports from theactiveattribute to a bareprop:active.@solidjs/compiler2.0.0-rc.13 compiles a valuelessprop:attribute to nothing, so the panel never becomes active and Web Awesome keeps it hidden. Writingprop:active={true}emits the property assignment the typed element contract (ui/src/types/solid-elements.d.ts) already requires. These were the only two bareprop:attributes inui/src. The browser viewport had the same dropped binding; its covered flows (browser-stream-startupe2e) still pass onmain, so the visible break is the terminal. The browser line is corrected for the same contract.Compiler proof (
node -eagainstui/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/main5f93ba3): the viewport stays hidden and the panel is blank.After (this PR): the terminal canvas renders the mock session.
git bisectoverui/from89564fa3a10^(good) toorigin/main5f93ba3, usingchat-panel-layout.e2e.test.ts: first bad commit is 2899226.origin/main5f93ba3 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.ui-e2econfig passes forchat-panel-layout,browser-stream-startup,terminal-runtime, andterminal-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 --stagedpasses; the dead-export scan was skipped. Autoreview is clean.prop:attribute. That is worth a guard or an upstream report, and it is not part of this PR.