Repository navigation
feat(macos): show plugin session catalogs in the native sidebar - #164436
Conversation
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.
|
🦞👀 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. Reviewed October 3, 2026, 2:27 PM ET / 18:27 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds 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 Review scores
Verification
How this fits togetherPlugins 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs +27, Other +2460. Total +2487 across 14 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
CI disposition for The macOS package job failed only The same test passed on recent main in 0.292s, with 2225 package tests passing. Its test file and all 19 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. |
|
Merged and verified on 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 |
…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.
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, withCLAUDE_CONFIG_DIRpointing 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.listand refused to capture unless every returnedthreadIdbelonged 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
firstPromptandsummary. 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
stringsconfirms--no-activateBefore 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-changedwrapper could not start against the shared local dependency installation becausetypescript/unstable/syncwas 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.
Hosted CI disposition
Exact-head CI run 37142334524 ended canceled; its macOS package job failed on the unchanged
ChatViewModelTestscase live chat delta owns run while bootstrap history is pending atChatViewModelTests.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
ChatViewModelruntime 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.