Fix tab overflow selection geometry

Merged
AU
5mo ago
+748-425

Summary

  • make the MainActor AppKit geometry registry the single owner of live tab frames, selected-tab reveal scrolling, and selection chrome geometry
  • define selection visibility against the unobscured viewport so the right action lane cannot hide the selected tab title or close button
  • restore the shared right-edge fade used by both tab content and the blue active indicator
  • remove the competing SwiftUI ScrollViewProxy, clip-view bridge, and queued correction path
  • preserve leading alignment and clamp offsets when content or the viewport shrinks
  • preserve programmatic reveal ownership through layout-driven clip-view bounds changes, while relinquishing it when live user scrolling begins

Regression coverage

  • 9da2852 adds the original overflow-selection regression before the geometry-authority fix
  • 3dcae1b adds a failing action-lane test proving a tab can be inside the raw clip view while its close affordance is hidden
  • 848bd04 adds a failing rendered-pixel test proving the indicator hard-stops before the tab-content fade
  • 033997e adds failing lifecycle tests for late scroll-view attachment and SwiftUI restoring a stale clip offset
  • f647ae3 preserves pending reveal intent through attachment/layout and makes the lifecycle regressions pass
  • verifies selected-tab growth, earlier-sibling growth, action-lane visibility, indicator fade alignment, resize clamping, fitting-content leading reset, and user-scroll ownership handoff

Verification

  • arch -arm64 swift test: 197 tests passed

Paired cmux PR: https://github.com/manaflow-ai/cmux/pull/8071

Related: manaflow-ai/cmux#8069