Publish the commits cmux main already pins (fork menu availability + divider drag sessions)

Merged
AZ
4mo ago
+743-41

cmux main has pinned vendor/bonsplit at 10563e2f since https://github.com/manaflow-ai/cmux/pull/8140 merged, but that commit was never pushed here — so every clean cmux checkout fails to build the Mac app (type 'Bool' has no member 'hidden' in Workspace.swift). This publishes the exact stack the pointer references: the tab context-menu fork-availability API (TabContextForkConversationAvailability) and the divider drag-session work. Fast-forward from current main, no rewrites.

šŸ¤– Generated with Claude Code


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Summary by cubic

Publishes the vendor bonsplit state pinned by cmux main so clean checkouts build, and adds divider drag-session support with safer imposed-extent behavior to stop divider fights and hangs.

  • New Features

    • Divider drag sessions tracked across the tree: BonsplitController.isDividerDragActive and noteDividerDragSession(_:).
    • Delegate hooks: splitTabBarDividerDragDidBegin and splitTabBarDividerDragDidEnd. Final geometry is delivered before drag-end and bypasses the external-update suppression window.
    • Debug logging sink: DebugEventLog.setExternalSink(_:) to route lines to a host writer; fallback keeps a single O_APPEND handle open.
  • Bug Fixes

    • Imposed extents never apply while a drag is active; they apply once when the session ends.
    • After a container resize, a parked imposed divider re-applies once (deferred) against the settled size to avoid recursive layout and keep exact extents.
    • Re-imposing the same extent re-arms one apply; retry APIs refuse during an active drag.
    • Nested imposed splits get a one-time renudge after a parent retry lands.

Summary by CodeRabbit

  • New Features
    • Added callbacks for divider drag start and end events.
    • Added optional routing of debug log messages to an external destination.
  • Bug Fixes
    • Improved divider behavior during and after resizing or dragging.
    • Deferred layout updates during active drags to prevent unwanted divider movement.
    • Improved recovery when divider positions drift after container resizing.
    • Ensured final geometry updates are delivered when dragging ends.
  • Tests
    • Added coverage for drag lifecycle events, deferred updates, resize recovery, and geometry notifications.