Restore profile menu opening animation
Summary
Closes #13294
Restore AppKit's native opening transition for the profile/account menu. #13051 disabled animation for grouped popovers to avoid empty parent windows during nested dismissal; that also removed the root menu's opening transition. Its author and merger were @austinywang (2026-09-20 UTC; source commit 9c1858a44e, merged as 57939a8197).
Opening and dismissal now have separate policies: the root opens with the native transition, hover submenus remain immediate, and grouped closes disable animation before tearing down children and parents. Each presentation samples Reduce Motion. Closing popovers are retained by object identity until their delayed callbacks arrive, so rapid close–reopen–close cycles cannot drop an earlier window or let stale callbacks dismiss the current menu. Representable teardown closes without synchronously publishing binding state; overlapping delayed closes are retained independently.
Impact map:
| Surface | Effect |
|---|---|
| Profile/account | Native opening restored; application-defined group dismissal retained |
| Team picker | Immediate hover submenu opening/closing and existing shared dismissal retained |
| Help menu | Existing semitransient animation retained, now explicitly honoring Reduce Motion; stale callbacks ignored |
| Other popover presenters | Unchanged |
Testing
- Test-only commit adds runtime policy coverage before the fix. Its focused dispatch was canceled after the headless XCTest harness stalled; the required final CI suite independently compiled and passed the wired tests.
- Final required CI for HEAD
f10ca3664e: CI run is green, including macOS compile admission and thetestsjob. Workflow guards, source lints, web validation, security checks, CLA, Greptile and CodeRabbit are green or intentionally skipped. - Final autoreview command:
/Users/austinwang/manaflow/cmuxterm-hq/skills/autoreview/scripts/autoreview --mode branch --base origin/main --stream-engine-output— clean; merge-conflict gate clean, no accepted/actionable findings, and cmux policy check clean. The review loop fixed and resolved the production test-seam finding, the implicit MainActor helper finding, the delayed close callback lifecycle finding, and the overlapping-close retention finding. - Local checks passed:
python3 scripts/swift_file_length_budget.py,./scripts/lint-pbxproj-test-wiring.sh,git diff --check,./scripts/localize-changes, andpython3 scripts/localization_catalog.py check(six catalogs, nine locales). No user-facing copy or budget TSV changed.
Demo Video
Pending. The user explicitly deferred developer builds until Austin requests tag issue-13294-profile-menu-animation; no developer build was submitted. First/repeated opening smoothness, keyboard activation, Escape, outside click, nested team selection, menu actions/placement and Reduce Motion off/on still need an isolated UI recording. AppKit documents animates as a hint, so automated policy/lifecycle tests and static screenshots do not prove the visible transition. The documented controller recipes do not provide a general GUI-verification lane; legacy maclease provisioning is retired.
Checklist
- Added focused runtime regression coverage in the already-wired Swift Testing suite
- Local non-build checks and localization audit passed
- Required CI green and final structured autoreview clean
- Review findings addressed or resolved
- Tagged build and isolated visual verification after Austin's build request
- User dogfood approval before merge