Skip to content

feat(ui): expand dashboard sessions from sidebar - #137687

Closed
Patrick-Erichsen wants to merge 3 commits into
codex/dashboard-side-panel-entryfrom
codex/expand-sidebar-dashboards
Closed

Patrick-Erichsen wants to merge 3 commits into
codex/dashboard-side-panel-entryfrom
codex/expand-sidebar-dashboards

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Selecting a dashboard-enabled thread from the main sidebar opens the dashboard namespace, but does not request the full-width dashboard presentation.

Why This Change Was Made

  • Adds the existing dashboard=expanded presentation hint to both sidebar link hrefs and in-app navigation options when boardFace is dashboard.
  • Verifies that the retained dashboard route expands the Side panel and activates the dashboard tab.
  • Documents the sidebar behavior alongside dashboard-gallery navigation.

User Impact

Dashboard-enabled threads now open directly into a focused, full-width dashboard when selected from the sidebar.

Evidence

  • pnpm exec vitest run --config test/vitest/vitest.ui.config.ts ui/src/components/app-sidebar.test.ts
  • pnpm exec vitest run --config test/vitest/vitest.ui-isolated.config.ts ui/src/pages/chat/chat-pane-board.test.ts
  • node scripts/check-changed.mjs
  • pnpm ui:build
  • Autoreview: scoped clean, no accepted/actionable findings.
  • Visual proof: pending because the required Codex in-app Browser backend is not currently registered; the local mock preview remains available at http://127.0.0.1:5187/chat/main.

Stack

  1. feat: add first-class dashboard command #137685
  2. This PR
  3. refactor(ui): simplify chat header actions #137688

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 3, 2026
@Patrick-Erichsen Patrick-Erichsen changed the title codex/expand sidebar dashboards feat(ui): expand dashboard sessions from sidebar Sep 4, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Behavior reference

The session already advertises its stored dashboard preference:

Dashboard-enabled session indicator

After proof of expanded, dashboard-focused navigation will be added once the Codex in-app Browser backend is registered.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 4:48 AM ET / 08:48 UTC.

ClawSweeper review

What this changes

Dashboard-preferred sidebar sessions request an expanded dashboard panel, with updated navigation tests and documentation.

Regression provenance

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

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: current main still lacks this sidebar behavior, and the previously reported Home native-link mismatch remains on the pinned head.

Priority: P2
Reviewed head: db41582bbda2bb40045a8ca9db486d1fd5cae8d1

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused implementation and positive browser evidence are held back by the unresolved Home activation mismatch.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied real isolated-Gateway browser assertions exercise sidebar selection through the route loader and dashboard panel, reporting the expanded URL, expanded region, and selected Dashboard tab. They support the session-row change; Home is not covered, and attachment bytes could not be inspected here.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The supplied real isolated-Gateway browser assertions exercise sidebar selection through the route loader and dashboard panel, reporting the expanded URL, expanded region, and selected Dashboard tab. They support the session-row change; Home is not covered, and attachment bytes could not be inspected here.
Evidence reviewed 9 items Verified introduced change: The complete pinned base-to-head diff adds dashboardExpanded to the sidebar row href and shared selectSession path; it does not change Home’s separately constructed href.
Home activation mismatch: Home’s href omits dashboardExpanded. Its ordinary click calls openMainSession, which delegates to the changed selectSession method. Modified clicks retain native link behavior through shouldHandleNavigationClick.
Existing presentation owner and implementation boundary: sessionNavigationTarget already emits the public dashboard=expanded hint in both href and navigation options. route-loader.ts reads it, and ChatPaneBoard applies it through showDashboard. This is OpenClaw UI logic; the PR’s Codex Browser reference describes capture tooling rather than a Codex runtime or protocol dependency.
Findings 1 actionable finding [P2] Carry the expansion hint through Home’s native link
Security None None.

How this fits together

The Control UI sidebar turns session preferences into navigation destinations. The session route loader passes the dashboard presentation hint to the chat pane, which expands the side panel and selects Dashboard.

flowchart LR
  A[Session preferences] --> B[Sidebar rows and Home]
  B --> C[Native link or in-app navigation]
  C --> D[Session route loader]
  D --> E[Chat pane layout]
  E --> F[Expanded dashboard tab]
  E --> G[Regular chat presentation]
Loading

Before merge

  • Carry the expansion hint through Home’s native link (P2) - With a cached main session whose boardFace is dashboard, this addition makes Home’s ordinary click expand the panel through openMainSession → selectSession. Home’s separate href in ui/src/components/app-sidebar-render.ts:233 still omits the hint, so Ctrl/Cmd-click, middle-click, and opening that link in a fresh tab show split presentation instead. Pass the same expansion decision into Home’s target and cover native activation. This remains the previously reported finding.
  • Resolve merge risk (P1) - The linked screenshots and recording could not be independently inspected in this environment; the supplied browser assertions were available and reviewed.
  • Complete next step (P2) - Make Home’s href carry the same dashboard expansion hint as its ordinary click, cover native activation, and verify the repaired Home flow.

Findings

  • [P2] Carry the expansion hint through Home’s native link — ui/src/components/app-sidebar-session-navigation.ts:338
Agent review details

Security

None.

PR surface

Source +3, Tests +27, Docs +3. Total +33 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 1 4 1 +3
Tests 4 29 2 +27
Docs 1 3 0 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 36 3 +33

Review metrics

Metric Value Why it matters
Production versus test growth Production net +3; tests and test support net +27; docs +3 Production growth reuses an existing presentation parameter without introducing another layout mechanism.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Use the existing expansion hint consistently for sidebar rows and Home while preserving chat-preferred sessions and manual collapse behavior.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Use the existing expansion hint consistently for sidebar rows and Home while preserving chat-preferred sessions and manual collapse behavior.

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

Yes, from source: with a cached dashboard-preferred main session, compare an ordinary Home click with opening its href in a fresh tab; only the ordinary click requests expansion. This review did not execute that scenario.

Is this the best way to solve the issue?

The existing presentation hint is the right mechanism, but the patch is incomplete until Home’s native link uses the same decision; changing the global helper default would unnecessarily affect other callers.

Full review comments:

  • [P2] Carry the expansion hint through Home’s native link — ui/src/components/app-sidebar-session-navigation.ts:338
    With a cached main session whose boardFace is dashboard, this addition makes Home’s ordinary click expand the panel through openMainSession → selectSession. Home’s separate href in ui/src/components/app-sidebar-render.ts:233 still omits the hint, so Ctrl/Cmd-click, middle-click, and opening that link in a fresh tab show split presentation instead. Pass the same expansion decision into Home’s target and cover native activation. This remains the previously reported finding.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9d2404a4538e.

Labels

Label justifications:

  • P2: This is a bounded dashboard navigation improvement with a reproducible native-link inconsistency.
  • 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 (live_output): The supplied real isolated-Gateway browser assertions exercise sidebar selection through the route loader and dashboard panel, reporting the expanded URL, expanded region, and selected Dashboard tab. They support the session-row change; Home is not covered, and attachment bytes could not be inspected here.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied real isolated-Gateway browser assertions exercise sidebar selection through the route loader and dashboard panel, reporting the expanded URL, expanded region, and selected Dashboard tab. They support the session-row change; Home is not covered, and attachment bytes could not be inspected here.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts ui/src/lib/sessions/route-navigation.test.ts.
  • [P1] node scripts/run-vitest.mjs ui/src/pages/chat/chat-pane-board.test.ts.
  • [P1] node scripts/check-changed.mjs.
  • [P1] git diff --check.
  • [P1] Verify ordinary and native Home activation with a cached dashboard-preferred main session in a real isolated Control UI.

What I checked:

  • Verified introduced change: The complete pinned base-to-head diff adds dashboardExpanded to the sidebar row href and shared selectSession path; it does not change Home’s separately constructed href. (ui/src/components/app-sidebar-session-navigation.ts:338, db41582bbda2)
  • Home activation mismatch: Home’s href omits dashboardExpanded. Its ordinary click calls openMainSession, which delegates to the changed selectSession method. Modified clicks retain native link behavior through shouldHandleNavigationClick. (ui/src/components/app-sidebar-render.ts:233, db41582bbda2)
  • Existing presentation owner and implementation boundary: sessionNavigationTarget already emits the public dashboard=expanded hint in both href and navigation options. route-loader.ts reads it, and ChatPaneBoard applies it through showDashboard. This is OpenClaw UI logic; the PR’s Codex Browser reference describes capture tooling rather than a Codex runtime or protocol dependency. (ui/src/lib/sessions/route-navigation.ts:178, db41582bbda2)
  • Tests and sibling paths: The added test covers an ordinary dashboard session row. Existing Home coverage uses a chat-only main session. Board tests distinguish expanded from split presentation and preserve manual collapse after initial navigation; gallery navigation already supplies the expansion hint. (ui/src/test-helpers/app-sidebar-cases/session-navigation.ts:7, db41582bbda2)
  • Current-main necessity: Fetched main still omits dashboardExpanded from both sidebar navigation producers. Its board owner continues to distinguish expanded and split routes. The supplied related PRs remain open and address adjacent work, not a merged replacement. The latest-release source blob was unavailable locally, so no shipped-version claim is made. (ui/src/components/app-sidebar-session-navigation.ts:306, 9d2404a4538e)
  • Supplied after-fix browser evidence: The captured discussion at feat(ui): expand dashboard sessions from sidebar #137687 (comment) reports a real isolated-Gateway click on Launch overview reaching /dashboard/dev/dashboard/proof?dashboard=expanded, an expanded side-panel region, and Dashboard aria-selected=true, with screenshot and recording links. This supersedes the body’s earlier pending-proof statement. Source revision: 9e3317f988978259190eb2a4073a37e2f9743c6f4ce061f8487d17499d7ea524. Attachment inspection was unavailable: GitHub network requests failed and the media tool returned route_not_found.

Likely related people:

  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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.

  • Make Home’s href match its expanded dashboard click target and cover modified or middle-click activation.
  • Extend the existing redacted browser evidence to the repaired Home flow.

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 (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-04T01:48:39.734Z sha 0df87e9 :: needs changes before merge. :: [P1] Carry the expansion hint through Home's native link
  • reviewed 2026-09-04T03:03:30.645Z sha 4c85c9a :: needs changes before merge. :: [P1] Carry the expansion hint through Home's native link
  • reviewed 2026-09-04T03:41:35.810Z sha e5026e4 :: needs changes before merge. :: [P1] Carry the expansion hint through Home’s native link
  • reviewed 2026-09-04T03:57:55.649Z sha 73370ce :: needs changes before merge. :: [P1] Carry the expansion hint through Home’s native link
  • reviewed 2026-09-04T05:04:24.330Z sha 4fe8d36ed37147b13da47925d57537e233eb2e59 :: needs changes before merge. :: [P1] Carry the expansion hint through Home’s native link
  • reviewed 2026-09-04T05:37:23.263Z sha b127196 :: needs changes before merge. :: [P1] Pass the expansion hint through Home’s native link
  • reviewed 2026-09-04T07:00:07.821Z sha a88c869 :: needs changes before merge. :: [P1] Carry the expansion hint through Home’s native link
  • reviewed 2026-09-04T08:12:12.274Z sha 3c5865a :: blocked before merge. :: [P2] Carry the expansion hint through Home’s native link

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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 4, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Before / after proof

Before: dashboard-session behavior before this PR

After — clicking the Launch overview dashboard session opens the full-width dashboard presentation and selects Dashboard:

After: expanded dashboard session

expanded-dashboard.mp4

Browser assertions from the real isolated gateway capture:

  • URL: /dashboard/dev/dashboard/proof?dashboard=expanded
  • .sidebar-region--expanded: present
  • Dashboard panel tab: aria-selected="true"

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review September 4, 2026 01:43
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/expand-sidebar-dashboards branch 2 times, most recently from 4c85c9a to e5026e4 Compare September 4, 2026 03:34
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. and removed proof: 🎥 video Contributor real behavior proof includes video or recording evidence. labels Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/expand-sidebar-dashboards branch from 73370ce to 4fe8d36 Compare September 4, 2026 04:56
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. labels Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/expand-sidebar-dashboards branch from 4fe8d36 to b127196 Compare September 4, 2026 05:29
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/expand-sidebar-dashboards branch from b127196 to a88c869 Compare September 4, 2026 06:24
@clawsweeper clawsweeper Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/expand-sidebar-dashboards branch from a88c869 to 3c5865a Compare September 4, 2026 07:48
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed P1 High-priority user-facing bug, regression, or broken workflow. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. labels Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/expand-sidebar-dashboards branch from 3c5865a to db41582 Compare September 4, 2026 08:28
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Superseded by the merged interchangeable-panel layout in #138077; closing this older dashboard-specific expansion approach in favor of preserving that shared layout.

@RomneyDa
RomneyDa deleted the codex/expand-sidebar-dashboards branch October 22, 2026 00:13
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: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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