fix: disambiguate notification cleanup inference
Merged
AU
3mo ago+32+32+01234567890123456789-6-6-0123456789
Summary
Follow-up to merged PR #10820. That PR removed the original Cursor/CLI compiler blockers and merged at head 3704118e5f. Its branch-only nightly run 3957 then exposed three additional Xcode 26.5 type-inference failures in notification cleanup:
Sources/TerminalNotificationPolicyInFlightStore.swift:149Sources/TerminalNotificationStore.swift:1976Sources/TerminalNotificationStore.swift:1988
This follow-up adds explicit [UUID] / UUID? result types to the two compactMap expressions and replaces the UUID key-path map with an explicit closure. It does not change notification ownership, rollback behavior, runtime flow, or Swift file lengths.
Verification
- The original Cursor/CLI diagnostics are absent from nightly run 3957.
- Exact Release-lane rerun 3959 is in progress at https://github.com/manaflow-ai/cmux/actions/runs/32945527541.
- The focused E2E run was blocked before the selected test by the separate pre-existing iOS
MobileWorkspaceAggregation.swiftcompile error tracked by #10813; it did not report an error in these changed files. - No local Xcode build or XCUITest was run.
Do not merge until the Release-lane rerun proves the compiler fix.
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by CodeRabbit
-
Improvements
- Enhanced persistence for pending command approvals by retaining command size information without storing the full command text.
- Improved command-line project discovery, including fallback to the current directory when no Git root is found.
-
Tests
- Added coverage to verify approval data is persisted with the expected information and privacy safeguards.