Repository navigation
fix(ui): make empty session panels consistent on desktop and mobile - #181892
Conversation
|
🦞👀 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 changes before merge. What this changesThis PR reuses the shared empty-state presenter across desktop session panels and mobile Details pages. Example: Open Subagents in a conversation with no child sessions.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the visual consolidation is useful, but it introduces a focused cold-open test failure that needs repair. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherControl UI presenters consume existing session-owner results and render empty panels, retaining the owners’ loading, error, navigation, and action behavior. flowchart TD
A[Session data owners] --> B[Panel state branches]
B --> C[Loading and error presenters]
B --> D[Populated panel content]
B --> E[PanelEmptyState]
E --> F[Desktop presentation]
E --> G[Mobile presentation]
Technical reviewBest possible solution: Keep the shared presentation owner and update the cold-open test to accept the explicitly explained, actionless Subagents state. Do we have a high-confidence way to reproduce the issue? Current-main source retains the inconsistent Subagents presentation, and the inspected before captures show it; no target code was executed during this review. Is this the best way to solve the issue? Reusing the existing presenter is the smallest complete presentation fix, with one omitted consumer-test update. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a8aee07e3870. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -28. Total -28 across 22 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 23, 2026, 4:25 PM ET / 20:25 UTC. |
|
Merged via squash.
|
…penclaw#181892) * fix(ui): align empty states across session panels * test(ui): find browser start action by accessible name
What Problem This Solves
Empty session panels start at inconsistent heights, use different typography, and show mismatched action buttons. Some mobile panels move their content vertically when a description or action is absent.
User Impact
Full-page empty states now begin consistently below each panel's controls, with the same messages and necessary actions. Mobile content starts 64 px below those controls; desktop content starts 140 px below them, including the existing 12 px host inset. Browser and Terminal use the same existing button appearance.
Why This Change Was Made
Reuse PanelEmptyState across the session panels and full-page mobile Details views. Group only the content that is present, remove duplicate wrapper spacing, and keep compact notices, loading, errors, permission restrictions, and unavailable content distinct. Consumers without an explicit session presentation retain their previous layout.
Evidence
295e42935b658ef9e6df6ef6e0a4a190911a1b6a: completed run 40024356071.295e42935b658ef9e6df6ef6e0a4a190911a1b6a: run 40022142962 exposed a stale.bp-btnselector in the stopped-browser routing test. The unchanged Start button now uses the shared.btnstyle. Replaced that selector with the button's accessible role/name, retaining the click-to-start, screenshot recovery, and no-historical-focus assertions. Reproduced the original failure locally; all 13 routing tests and 6 startup/recovery sibling tests pass. The changed file took 4.57 seconds wall time (1.10 seconds reported by Vitest); the corrected case passed in 0.213 seconds in CI (run 40024356071). No new test cases or production changes.Risk and coverage: this changes presentation, not available capabilities. Targeted oxlint still reports the inherited max-lines error in chat-sidebar-region.runtime.tsx (713 counted lines on the pinned main, 712 here; limit 700) and the existing props.createStop reactivity warning outside this diff. These are not claimed as passing lint.
Before screenshots use pinned main a8aee07. After screenshots use production head 3f00998 on the same main. Production files are byte-identical at test-only follow-up
295e42935b658ef9e6df6ef6e0a4a190911a1b6a, so the existing visual and asset-budget evidence remains applicable. All fixture content is synthetic. Contact sheets use crops from the native screenshot frames; full frames were also retained.Desktop panels
Before:

After:

Mobile panels
Before:

After:

Mobile Details — real component comparison
Before:

After:

Light theme
Before:

After:

Other panel states
Before:

After:
