Skip to content

fix(ui): stop showing count errors on unloaded sidebar shortcuts - #169068

Merged
steipete merged 1 commit into
mainfrom
codex/qa1042-sidebar-pin-label
Oct 11, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa1042-sidebar-pin-label

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes misleading “Session counts unavailable” labels on saved sidebar shortcuts when switching agents or opening a session outside the loaded sidebar window.

User Impact

Unloaded session shortcuts now say Open session, and unavailable plugin shortcuts say Plugin. Opening a missing session reports Session not found; a failed lookup asks the user to try again.

Why This Change Was Made

The shortcut fallback reused the Online view's session-count error. This changes the label at its existing owner and preserves bounded sidebar loading, on-demand session lookup, and suppression of stale errors after newer navigation.

Evidence

The mounted sidebar regression failed on the original label. The full sidebar suite passes 21/21 (pnpm test ui/src/components/app-sidebar-rail.test.ts --maxWorkers=1, 5.226 seconds wall); existing dashboard navigation and stale-result coverage remain intact. A first green run exposed an invalid synthetic plugin key in the new test; correcting it to the documented plugin/id format resolved that fixture failure without changing production behavior.

The full app with an isolated mock Gateway reproduces the before state and verifies the after state through real hover and click actions. Both captures passed (8.967 seconds before, 8.224 seconds after). Inspected screenshots contain synthetic data only.

Keyless i18n baseline/verification, formatting, conflict-marker, assertion-safety, and diff checks passed. Fresh managed review is clean through P2. UI production types (46.162 seconds), owning UI-components test types (43.716 seconds), and targeted lint passed. Hosted CI run 38132857359 passed on fdc644664d355a690cafe46000e75dc2873fe4f3, including the CI gate. The three UI shard jobs took 262, 334, and 348 seconds end to end; these are shard costs, not the individual test runtime.

Before: unloaded session shortcut shows an unrelated count error

After: unloaded session shortcut offers Open session

Use Open session for a saved session outside the loaded sidebar window, and distinguish a missing session from a failed lookup. Preserve on-demand loading and stale-navigation guards.
@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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Oct 11, 2026
@steipete
steipete marked this pull request as ready for review October 11, 2026 10:41
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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 gives unloaded sidebar shortcuts accurate labels and distinguishes missing sessions from failed lookups.

Example: Hover a saved shortcut for agent:research:unloaded outside the loaded session window.

  • Before: The tooltip says “Session counts unavailable.”
  • After: The tooltip says “Open session.”

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-level correction with inspected visual proof, meaningful regression coverage, successful exact-head CI, and no identified defects.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after full-app screenshots show the changed rail tooltip through the Control UI with synthetic mock-Gateway data; the accompanying capture account describes real hover and click actions, supported by mounted missing/failed lookup regressions.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Saved shortcuts can report a session-count failure when their titles have not loaded, and failed navigation reports the same unrelated error.
Reason: The small correction makes existing functionality understandable without adding settings, APIs, or another state owner; the author also coauthored the original rail.

Merge readiness

✅ Ready for maintainer review

This PR fixes misleading sidebar feedback still present on main; no actionable correctness or security findings remain.

Priority: P3
Reviewed head: fdc644664d355a690cafe46000e75dc2873fe4f3

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI sidebar resolves saved shortcut references against loaded session and plugin catalogs, then renders labels and looks up unloaded sessions when selected.

flowchart LR
  A[Saved shortcuts] --> B[Sidebar catalog reconciliation]
  C[Loaded sessions and plugins] --> B
  B --> D[Rail labels and controls]
  D --> E[On demand session lookup]
  E --> F[Navigation or toast]
Loading

Technical review

Best possible solution:

Keep the focused correction in the existing sidebar owners while preserving bounded loading and navigation guards.

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

Current-main source deterministically uses the unrelated count-error label when a saved shortcut lacks a loaded row, matching the supplied before screenshot; no target code was executed during this review.

Is this the best way to solve the issue?

The patch corrects presentation at the existing owners, reuses established labels, and leaves lookup, authorization, loading bounds, and stale-navigation handling intact.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Unloaded rail labels and pinned-session lookup feedback changes intended behavior with a stated reason (fd01817: The original rail implementation retained saved references outside a bounded session window and resolved them on demand; its reused count-error copy did not describe those states.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 561d92d adds ui/src/components/app-sidebar-personal-navigation.ts:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 561d92da3a28; files: ui/src/components/app-sidebar-personal-navigation.ts)
  • RoboClaw: Raw commit fd01817 adds ui/src/components/app-sidebar-personal-navigation.ts:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fd018170c943; files: ui/src/components/app-sidebar-personal-navigation.ts)

PR surface

Source +4, Tests +46, Docs +2. Total +52 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 7 3 +4
Tests 1 46 0 +46
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 55 3 +52

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a focused feedback correction; session navigation remains available and the patch changes no access or persistence contract.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-11T10:47:37.400Z sha fdc6446 :: needs maintainer review before merge. :: none

Reviewed October 11, 2026, 6:57 AM ET / 10:57 UTC (Revision 2).

@steipete
steipete merged commit 2fd1e75 into main Oct 11, 2026
152 of 153 checks passed
@steipete
steipete deleted the codex/qa1042-sidebar-pin-label branch October 11, 2026 12:52
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
)

Use Open session for a saved session outside the loaded sidebar window, and distinguish a missing session from a failed lookup. Preserve on-demand loading and stale-navigation guards.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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