Skip to content

feat(macos): show plugin session catalogs in the native sidebar - #164436

Merged
steipete merged 1 commit into
mainfrom
steipete/mac-sidebar-catalogs-ui
Oct 3, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/mac-sidebar-catalogs-ui

Conversation

@steipete

@steipete steipete commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Plugin session catalogs were available in the web sidebar but absent from the native macOS sidebar. Operators could not browse those source sessions alongside their OpenClaw threads.

Why This Change Was Made

Load and render plugin catalogs through the native window's current Gateway connection. Catalogs have independent paging and errors, retained page windows, profile-scoped visibility and grouping, and refreshes that stop when the sidebar is hidden or disconnected. Grouped source sessions support Open in OpenClaw, capability-gated deletion, owner filtering, and recovery of hidden catalogs through View options.

Adopted sessions reuse the canonical roster's ownership and archive/snooze facts. Catalog placement preserves folded runs, child hydration, empty groups, and ranked search results. Catalog rows participate in native navigation while remaining outside ordinary batch and drag operations. Refreshes overlapping pagination retain one follow-up request, and source retry is separate from loading more pages.

Production size: +1309/-34 (net +1275); tests: +1164/-0; docs: +27; generated localization inventory: +21. The production growth implements the new native catalog data and presentation owners; existing roster, selection, permission, and Gateway lease contracts are reused.

User Impact

Native Mac users can browse plugin sessions by project, person, or without grouping; open a source conversation; and delete a source when the catalog capability and Gateway grant allow it. Adopted conversations avoid duplicate ordinary rows and remain discoverable in search. iOS behavior is unchanged.

Session sources opens the same Gateway's Appearance settings, without scrolling to the Session sources fragment. Open in Terminal is intentionally absent because the native catalog has no terminal action. The newer web import action remains a separate parity follow-up.

Documentation: https://docs.openclaw.ai/platforms/mac/webchat#session-catalogs

Evidence

Validated head: f0a53b029d66cd1d603a580e25fa87c0d693a384.

Approved live macOS proof

The exact-head debug binary was launched with --chat --no-activate. The run used the operator's real HOME, with CLAUDE_CONFIG_DIR pointing to a synthetic Claude Code folder containing exactly three fixture sessions. The Mac node honors this override following #163787. The Anthropic session catalog was enabled only on the rig Gateway for each run and disabled afterward. No Keychain prompts appeared.

Before capture, an automated guard called sessions.catalog.list and refused to capture unless every returned threadId belonged to the three fixture IDs. It reported “3 catalog sessions, 0 non-synthetic.” The run used background Accessibility only; the user's frontmost app never changed.

The sidebar rendered Claude Code → host → rig-demo → three fixture sessions. The fixtures appear by ID because their index omitted firstPrompt and summary. The staged images were inspected, and the host row is blurred to redact the machine name. The before image uses light appearance; the after image uses dark appearance. Visible rig data is synthetic.

Live proof covers catalog discovery, grouping, and display. The focused tests cover paging, errors, retained windows, profile preferences, navigation, mutation fences, and refresh ordering.

Local validation

Check Result Wall time
Native debug build after final commit Pass; binary newer than commit; strings confirms --no-activate 32.47s
Plain macOS product build Pass 18.96s
Native macOS test compilation Pass 20.35s
Shared-kit iOS simulator compile Pass 11.51s
Catalog data/presentation + ChatSessionSidebarModelTests 85 tests passed in 3 suites, under an OS sandbox 1.72s
Explicit changed-file SwiftLint, strict Pass 0.99s
Explicit changed-file SwiftFormat, including shared sources Pass 0.41s
Native i18n baseline + verification Regenerated; verification passed 3.35s verification
Docs formatting and diff whitespace Pass
Final independent Codex autoreview through P2 Scoped-clean; no remaining findings 533.91s

Before repair, regressions reproduced loss of tree metadata/empty groups and archive/snooze visibility (10 failed assertions), catalog selection/read-only deletion failures (5), and healthy-host discovery stopping on a peer's cursor error (2). Both pagination/refresh completion orders also failed before the final owner repair because the follow-up refresh never resumed; both now pass without advancing the safety timer. The original lane additionally recorded failures for discovery, ownership retirement, retained windows, stale hosts, archive resurrection, and event-burst ordering.

The extra check-changed wrapper could not start against the shared local dependency installation because typescript/unstable/sync was missing. The native, lint, formatting, localization, and documentation checks above ran directly; the hosted CI disposition is recorded below.

Separate follow-up: audit equivalent web catalog refresh invalidation when pagination changes its revision. No web code or unrelated sidebar lane is included here.

Before: main in light appearance, without a catalog group

After: synthetic Claude Code catalog in dark appearance, with the host row redacted

Hosted CI disposition

Exact-head CI run 37142334524 ended canceled; its macOS package job failed on the unchanged ChatViewModelTests case live chat delta owns run while bootstrap history is pending at ChatViewModelTests.swift:4038 (streamingAssistantText == "live partial"). Both new catalog suites passed in that job, including both refresh/pagination completion orders. The native app test, Android Access, and some iOS jobs were canceled, so those canceled jobs are not claimed as passing.

The same bootstrap/streaming test passed on recent main in 0.292 seconds; that macOS package run passed all 2225 tests. The failing test file and all 19 ChatViewModel runtime modules have identical Git blobs on that main head and this PR head. This is an unrelated intermittent result, not a catalog failure.

Under the explicit maintainer CI policy for this landing, no rerun, re-push, or unrelated test change was made. Landing is pinned to f0a53b029d66cd1d603a580e25fa87c0d693a384; this exception does not characterize CI as green.

ClawSweeper's latest exact-head review reports no actionable or security findings, no before-merge requirements, and sufficient inspected screenshot proof. It has no Rank-up moves to apply.

Load plugin catalogs through the current Gateway lease, preserving independent
paging, retained windows, profile-scoped preferences, and visible refreshes.
Render grouped source and adopted sessions with native selection, owner filters,
capability-gated deletion, and same-Gateway settings navigation.

Integrate catalog deduplication with the current tree, batch selection, and
archive/snooze owners. Preserve child hydration and folded runs, and keep
catalog rows out of ordinary batch and drag operations. iOS is unchanged.
@clawsweeper

clawsweeper Bot commented Oct 3, 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: macos App: macos size: XL labels Oct 3, 2026
@steipete steipete self-assigned this Oct 3, 2026
@steipete
steipete marked this pull request as ready for review October 3, 2026 17:56
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 2:27 PM ET / 18:27 UTC (Revision 3).

ClawSweeper review

What this changes

Adds plugin session catalogs to the macOS sidebar with grouping, pagination, navigation, source deletion, and profile-specific visibility preferences.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: fetched main lacks native catalog presentation. The pinned patch has no actionable correctness or security findings, and the inspected screenshots support its central visible behavior.

Priority: P2
Reviewed head: f0a53b029d66cd1d603a580e25fa87c0d693a384

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, coherent implementation with direct visual proof and focused regression coverage; CI disposition is accurately recorded separately.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after macOS screenshots and the captured exact-head execution account connect the new Gateway adapter and catalog presentation to three synthetic source sessions grouped by host and project. Paging and deletion have supplemental regression coverage. New profile-scoped preference keys preserve existing settings and require no migration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after macOS screenshots and the captured exact-head execution account connect the new Gateway adapter and catalog presentation to three synthetic source sessions grouped by host and project. Paging and deletion have supplemental regression coverage. New profile-scoped preference keys preserve existing settings and require no migration.
Evidence reviewed 10 items Pinned introduction: Reviewed the merge-base-to-head delta and corresponding source modules. The verified test merge has the pinned base followed by the exact PR head; unrelated endpoint drift was excluded.
Still necessary: Fetched main's sidebar renders ordinary roster sections without the catalog section or lifecycle modifier. Tree inspection also found neither new catalog owner on fetched main or the latest release v2026.9.8. No merged replacement is established by the supplied related context.
Connection and permission boundary: The adapter requires advertised catalog methods and operator read/write/admin scope, binds requests to the current server lease, and gates deletion on write/admin scope. Existing GatewayConnection revalidates the lease and dispatches on its bound socket generation; the server retains catalog mutation authorization.
Findings None None.
Security None None.

How this fits together

Plugins expose source conversations through the Gateway's session catalog API. The native sidebar presents those conversations alongside OpenClaw threads and sends navigation or deletion requests through its current Gateway connection.

flowchart LR
  A[Plugin source conversations] --> B[Gateway catalog API]
  B --> C[Current Mac connection]
  C --> D[Catalog pages and refreshes]
  D --> E[Grouping and visibility]
  E --> F[Native sidebar]
  F --> G[Open conversation]
  F --> H[Authorized source deletion]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Docs +27, Other +2460. Total +2487 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 27 0 +27
Config 0 0 0 0
Generated 0 0 0 0
Other 13 2494 34 +2460
Total 14 2521 34 +2487

Review metrics

Metric Value Why it matters
Local preference additions 2 profile-scoped preferences Visibility and grouping use new keys without rewriting existing sidebar settings.

Technical review

Best possible solution:

Keep native catalog presentation on the existing Gateway API and canonical roster lifecycle, with Dashboard owning source configuration.

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

Not applicable as a feature proposal; fetched-main source establishes the missing native presentation, and inspected after-change screenshots show catalog rows.

Is this the best way to solve the issue?

Yes. The patch adapts existing Gateway catalog contracts and reuses canonical roster facts rather than adding a competing catalog API or session owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded native browsing improvement with no demonstrated urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after macOS screenshots and the captured exact-head execution account connect the new Gateway adapter and catalog presentation to three synthetic source sessions grouped by host and project. Paging and deletion have supplemental regression coverage. New profile-scoped preference keys preserve existing settings and require no migration.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after macOS screenshots and the captured exact-head execution account connect the new Gateway adapter and catalog presentation to three synthetic source sessions grouped by host and project. Paging and deletion have supplemental regression coverage. New profile-scoped preference keys preserve existing settings and require no migration.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after macOS screenshots and the captured exact-head execution account connect the new Gateway adapter and catalog presentation to three synthetic source sessions grouped by host and project. Paging and deletion have supplemental regression coverage. New profile-scoped preference keys preserve existing settings and require no migration.

Evidence

What I checked:

  • Pinned introduction: Reviewed the merge-base-to-head delta and corresponding source modules. The verified test merge has the pinned base followed by the exact PR head; unrelated endpoint drift was excluded. (f0a53b029d66)
  • Still necessary: Fetched main's sidebar renders ordinary roster sections without the catalog section or lifecycle modifier. Tree inspection also found neither new catalog owner on fetched main or the latest release v2026.9.8. No merged replacement is established by the supplied related context. (apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatSessionSidebar.swift:98, f79dac86bd4a)
  • Connection and permission boundary: The adapter requires advertised catalog methods and operator read/write/admin scope, binds requests to the current server lease, and gates deletion on write/admin scope. Existing GatewayConnection revalidates the lease and dispatches on its bound socket generation; the server retains catalog mutation authorization. (apps/macos/Sources/OpenClaw/MacGatewaySidebarCatalogs.swift:24, f0a53b029d66)
  • Inspected visual proof: Opened both prepared PNGs from the media manifest. Before shows ordinary threads; after visibly shows Claude Code, a redacted host, the rig-demo project, and three fixture session rows. The captured PR body identifies exact-head macOS execution and a guard reporting three synthetic sessions and zero non-synthetic sessions. This proves discovery, grouping, and display; it does not independently demonstrate deletion or pagination. (f0a53b029d66)
  • Preference compatibility: Catalog visibility and grouping use new profile-qualified UserDefaults keys. Existing sidebar preference keys remain unchanged, and the focused test exercises profile switching, retained choices, and returning adopted rows to the ordinary roster when hidden. (apps/shared/OpenClawKit/Tests/OpenClawKitTests/ChatSessionSidebarCatalogsTests.swift:610, f0a53b029d66)
  • Behavioral regression coverage: Read both new test suites. They exercise retained page windows, independent host failures, both refresh/page completion orders, reconnect invalidation, archive settlement, read-only rejection before RPC, native selection, tree metadata, and canonical archive/snooze facts. Tests were inspected, not executed during this read-only review. (apps/shared/OpenClawKit/Tests/OpenClawKitTests/ChatSessionSidebarCatalogsTests.swift:436, f0a53b029d66)

Likely related people:

  • Peter Steinberger: Raw commit 99c8908 adds apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatSessionSidebar.swift:60 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 99c890869433; files: apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatSessionSidebar.swift)

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 (2 earlier review cycles)
  • reviewed 2026-10-03T18:01:49.873Z sha f0a53b0 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-03T18:08:17.109Z sha f0a53b0 :: needs maintainer review before merge. :: none

@steipete

steipete commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

CI disposition for f0a53b029d66cd1d603a580e25fa87c0d693a384:

The macOS package job failed only ChatViewModelTests → live chat delta owns run while bootstrap history is pending at line 4038. Both catalog suites passed, including the paging/refresh race cases. The overall run ended canceled; canceled platform jobs are not passing evidence.

The same test passed on recent main in 0.292s, with 2225 package tests passing. Its test file and all 19 ChatViewModel runtime module blobs are identical between that main head and this PR. The PR does not modify that bootstrap/streaming owner.

Applying the explicit maintainer policy for unrelated intermittent CI failures: no rerun or extra push; use the pinned-SHA merge path. The PR body now records the complete evidence and limitation. ClawSweeper's latest review has no findings or Rank-up moves, and the approved live catalog proof and published screenshots cover this exact head.

@steipete
steipete merged commit 3a46908 into main Oct 3, 2026
144 of 153 checks passed
@steipete
steipete deleted the steipete/mac-sidebar-catalogs-ui branch October 3, 2026 18:29
@steipete

steipete commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged and verified on origin/main: 3a46908ea8d7d2eda0c636575ab3f38f8a0ffd05.

All 14 changed-file blobs match the reviewed head f0a53b029d66cd1d603a580e25fa87c0d693a384. The pinned squash used the documented unrelated-intermittent CI exception, with no CI rerun or additional code push. Both published screenshot assets return 200 image/png and match the inspected staged images.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
…claw#164436)

Add grouped plugin session catalogs to the native macOS sidebar using the existing Gateway catalog, canonical roster, and connection lease owners. Preserve independent paging, source recovery, profile preferences, native navigation, and refresh invalidations while keeping catalog rows outside ordinary batch and drag operations. Verified focused tests, native and iOS builds, independent review, and approved synthetic catalog display; the unrelated unchanged bootstrap/streaming CI failure is documented on the PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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