Promote the unified conversation sidebar with native workspace tiling

Closed
TE
2mo ago
+7186-409

Promote the unified Claude, Codex, and OpenCode conversation sidebar into the native cmux window. Open tabs sit above searchable history, while Open now switches between existing groups. Bare terminals and other native views use the same open-tab list. Pins retain inherited order and matching folders merge across providers.

A collapsible right-hand Spaces navigator groups live tabs by their actual tile. It switches spaces, focuses existing surfaces, moves them through the row menu, and creates terminals, native browsers, and horizontal/vertical terminal splits through the existing host actions. It consumes immutable layout snapshots and starts no providers merely to render navigation. Direct row dragging is implemented but remains unverified: native drag automation did not move either the new rows or the existing pane splitter. The explicit move menu was verified with unchanged surface identities.

Provider icons now load their 1x, 2x, and 3x representations at one logical size, preserving monochrome contrast without scaling the 14-pixel bitmap. Normal application quit now saves resume metadata and scrollback before retiring terminal runtimes, then joins their teardown tickets. The deadline accounts for the existing bounded cleanup queue and provider session-end grace. Pending tickets survive a cancelled quit attempt; no background process scanner was added. Restored terminal runtimes wait for first presentation or explicit input, so hidden workspaces do not eagerly launch provider sessions. Already-started sessions can continue when their workspace is hidden.

Opening history targets the active tile and reuses an existing live panel when possible. New history tabs and history edge splits run their restore command directly in a login shell instead of queuing it into an unready PTY, eliminating the early double echo. The real terminal remains visible throughout startup. There is no synthetic transcript screen, preview database/file read, or polling delay before handing over to the terminal.

The sidebar initially mounts 24 rows; scrolling adds 24 more and search filters cached metadata before paging. Atomic filter updates, cached provider artwork, and a shared active-only 30-second metadata refresh avoid repeated fan-out. Filtering launches no providers. Selection follows native focus, command hints do not resize rows, and hover recovers after scrolling.

Tab closing supports a suppression checkbox saved only after confirming Close. Close-button visibility is independent of closing permission, preserving middle-click when the X is hidden. Launch reservations belong to their panel and are released on close; restore identities are available before provider hooks. Chat tabs use provider artwork from their existing session identity, with a monochrome Claude mark; bare shells retain the terminal icon. The sidebar provider artwork is monochrome by default. Existing status and unread indicators are preserved. The sidebar header has an eight-point top inset shared by its search state. The main header uses a compact folder label and outline folder icon. The Bonsplit change is pinned to 075cc0d on the user-owned teamleaderleo/bonsplit fork. The previous cmux fork remains on codex/glaeda-apple-build.

Validation:

  • Managed tagged application build passed using the tiles-cleanup generation. Live checks verified Retina provider icons, space creation/switching, tile creation, exact surface focus and menu moves, native browser creation, close, and navigator collapse. A lightweight process that ignored HUP/TERM was reaped both on tab close and on app quit; the app exited only after cleanup. Relaunch restored the saved layout. Temporary test spaces were removed and All providers restored.
  • All 18 focused startup-restore policy and teardown lifetime tests executed and passed, including hidden-pane suppression, presentation/explicit-input activation, and teardown-ticket assertions. After relaunch the selected Codex chat restored and the process inventory contained zero OpenCode processes, including after opening All providers. SwiftPM nevertheless returned exit 1 for its existing ghostty-internal.a binary-name diagnostic; this is not claimed as an entirely green package command.
  • The standalone Swift harness executes the production launcher: one command execution, no command echo, normal return-shell completion, and self-deletion of its launcher. Production launch-guard and JavaScript sidebar regression harnesses pass.
  • Previously completed checks: 44 sidebar package tests; four close-warning preference tests; native hover, top-tab selection, middle-click closing, warning cancellation, group switching, and history pagination/search checks.
  • Localization audit: six catalogs, nine locales, zero errors.
  • A native Swift test case was added for the direct launch plan. The full application test host and previously added native drag suites have not been executed locally.

Limits: this does not change a provider CLI's internal full-history replay. Restores triggered by reopening the entire app use the existing startup pipeline after first presentation or explicit input. Reusing the actual last terminal viewport for a closed history session is not implemented; no reconstructed transcript substitutes for it. Metadata history remains bounded to recent records plus pins. Provider-specific context actions and saved layout presets are not included. Reuse is within this cmux process; separate provider apps may hold their own session locks. No automatic merge or upstream submission.