fix: pass the action reference for untrusted setting tab-bar buttons
Main does not compile at 8aa9b5c9: Sources/CmuxConfig.swift:2816: error: missing argument for parameter 'actionReferenceID' in call (https://github.com/manaflow-ai/cmux/actions/runs/36774105779).
https://github.com/manaflow-ai/cmux/pull/14868 added a branch in resolveSurfaceTabBarButton for a project tab-bar button that references a global setting action: it shows the action with its own title and confirm. https://github.com/manaflow-ai/cmux/pull/13232 made ResolvedSurfaceTabBarButtonEntry require actionReferenceID, which Actions discovery uses to list the actions placed in the tab bar. The two landed separately and the new branch never got the argument.
That branch still places a button that runs the registered action, so it now passes actionReferenceID: resolvedIdentifier, the same value the trusted branch passes. Discovery therefore lists the action as present in the tab bar, which matches what the user sees.
Verification: this is a compile fix. The full app cannot be built on the local Mac under repo policy, so CI's build is the check.
Changelog
- No user-facing change. Fixes the macOS app build.
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Fixes the macOS app build by passing actionReferenceID: resolvedIdentifier for untrusted setting tab-bar buttons in resolveSurfaceTabBarButton.
That branch was added before ResolvedSurfaceTabBarButtonEntry began requiring actionReferenceID, so main failed to compile. The branch runs the registered action, and now reports its id the same way the trusted branch does, keeping Actions discovery accurate.
Summary by CodeRabbit
- Bug Fixes
- Project buttons referencing setting actions now consistently preserve the referenced action when its label or behavior cannot be changed. This keeps the button associated with the intended action in cases where those changes are unavailable.