feat: add opt-in multi-provider Conversations sidebar

Merged
TE
2mo ago
+11411-8714

What this does

Adds an opt-in Conversations view to the left sidebar picker. It lists running coding-agent sessions above paginated history, with transcript search and a provider filter. Clicking a running session focuses its pane, and clicking a past one reopens it through normal workspace routing. Nothing changes for anyone who hasn't turned it on.

  • Live rows come from the agent chat registry. History and search come from the Vault index (SessionIndexStore). The two are joined on agent and session identity, so a running session never also shows up in history.
  • The filter menu narrows the list to one provider. Its options come from the store's cached agent list plus live and paginated agents. That's #13355, folded in here.
  • The beta toggle is Settings > Beta Features > Conversation Sidebar, or sidebar.beta.conversations.enabled in cmux.json (schema, template and parser). It's localized in all 9 app locales and in the web locales.
  • The conversation-sidebar-release PostHog flag gates the feature, and the local toggle can't override it. When the flag is off or unavailable, the picker hides the entry and a saved Conversations selection falls back to the workspace sidebar.
  • The sidebar observes a typed revision stream from AgentChatTranscriptService, and activity-only record changes don't rebuild it. The phone descriptorChanged frames are the same as on main.
  • The body reads merged history from view state that's recomputed when its inputs change, and it doesn't schedule live-index refreshes. That follows the SwiftUI list-boundary rule.

Not included

These parts of the earlier fork experiment (#57/#68) aren't included: grouping and project folders, pins and shortcuts, New chat, drag and reorder, and Spaces/tile navigation.

Validation

At ef3e399f2bf, after merging main at 560664970a5 and aligning all submodules to that head.

  • python3 scripts/verify-local.py --all: all 15 repository checks passed.
  • git diff --check: passed.
  • ConversationSidebarRegressionTests covers Dock/live projection, alias revision changes, activity-only suppression, provider filtering, and refresh behavior. Native tests run in CI only.
  • CI: run 36769912988. The app-host compile reached the source build and stopped on current main's Sources/AppDelegate+WorkspaceActionSave.swift:126 (switch must be exhaustive), outside this PR's feature diff.
  • iOS: run 36769912309. Both attempts stopped before tests because the runner could not fetch refs/pull/13322/merge; no iOS test failure was reported.
  • Cloud VM guest-install is blocked by current main's CREATE INDEX CONCURRENTLY migration. CLA policy infrastructure has also been rate-limited. These are outside the feature diff.

The CI tour is conversations-sidebar-tour. Its media section will appear when an app-host build completes; the current app-host compile blocker prevents that tour from running.

Review: exact-head review receipt. The review found and the branch fixed the settings overload, hook-store alias revision, reload race, per-row target scan, release-gate observation, and Dock alias ownership issues.

🤖 Generated with Claude Code


Summary by cubic

Adds an opt-in, release-gated Conversations sidebar that unifies live coding-agent sessions with paginated history, transcript search, and provider filtering in the left sidebar. Live sessions are deduplicated from history so clicking one opens it in place; the default layout is unchanged.

  • Live sessions hosted in a window or workspace Dock resolve to the Dock instead of being dropped, with regression coverage pinning activation without duplicate launches. Clicking a live session focuses its owning panel; process-index fallback stays scoped to the Dock workspace's identity and returns canonical Dock panel IDs so an aliased surface focuses without relaunching.
  • The conversation-sidebar-release PostHog flag gates the feature; when off, the picker hides the entry and a saved selection falls back to the default workspace sidebar. Both sidebar routing paths observe the flag reactively.
  • Phones keep main's descriptor behavior; the sidebar uses its own predicate that ignores version bumps, and merged history is held in view state instead of being recomputed on every body pass.
  • Provider options are cached during pagination so the filter stays populated as history loads, pagination discovers new providers at each page, and paginated history is fenced against index reload races.
  • Adds the beta setting, cmux.json schema support and path registration, localization in all app and web locales, a CI dogfood tour for dock focus and provider filtering, and regression coverage.
  • Includes the reviewed main-branch merge fixes: settings-row anchoring, restored lazy-layout tests, phone descriptor parity, history projection moved out of body, paginated history invalidated on index reloads, and sidebar revisions advanced when hook-store aliases are backfilled; regenerated the embedded schema, merged string catalogs, and updated sidebar tests for the new session index store parameter.

Summary by CodeRabbit

  • New Features

    • Added an opt-in Conversation Sidebar beta feature.
    • View active coding-agent sessions and history together, with search, pagination, and resume/open actions.
    • Added sidebar provider selection and configuration-file support.
    • Added localized labels, descriptions, accessibility support, and controlled rollout.
    • Added configuration documentation for enabling the unified Conversations view.
  • Tests

    • Added coverage for session projection, refresh behavior, pagination, feature gating, and configuration parsing.