feat: add native discovery for configured actions
Reviewer summary
Shows configured actions in the existing discovery surfaces, with stable identity and the right global-versus-project scope. The change reuses the current action and settings owners.
What changed
Adds the smallest native discovery/management surface for the existing cmux.json action system.
- adds an Actions · cmux.json… entry beside Settings/Open cmux.json in the app menu
- adds the same entry to the new-workspace (+) menu management tail
- shows the live resolved custom action registry, including inherited/project-local actions and overridden built-ins
- shows effective placements using the existing config vocabulary:
palette,ui.newWorkspace.action,ui.newWorkspace.contextMenu,ui.surfaceTabBar.buttons, andshortcut - exposes the existing in-cmux config edit path and the existing custom-commands docs
- keeps execution on the existing action/config paths; this adds no action registry, workflow format, or editor
The discovery model filters shipped built-ins unless they have a config source path, so the panel focuses on user/project customization while still surfacing built-in overrides.
Lane K / #79
Implements Lane K from https://github.com/teamleaderleo/Tact/issues/79.
Lane J uses workflows / saved layouts for reusable layout discovery. This PR keeps that vocabulary intact and scopes its UI to resolved cmux.json actions and their launcher placements; it does not touch Lane J's workflow catalog/docs files.
Tests
Focused coverage:
CmuxConfigWorkspaceActionTests.actionsAndLaunchersDiscoveryReportsEffectivePlacementscovers agent/workspace kinds, palette/default/+ menu/tab-bar/shortcut placement, and hiding unconfigured shipped built-ins.- existing new-workspace rendering tests now assert the shared Actions entry in the management tail.
- the added Swift source parses cleanly with
swiftc -frontend -parse.
Localization audit
No new prose localization keys were introduced. The new native UI reuses existing localized strings for Actions, Open cmux.json, Open Docs, and OK. Placement/type rows intentionally display invariant cmux.json identifiers and schema enum values so users can map the discovery view directly back to config.
Replaces https://github.com/manaflow-ai/cmux/pull/13045 (same commits, head branch moved into the org so it gets the build cache and can be kept current with main).
🤖 Generated with Claude Code
Summary by cubic
Implements Lane K from #79 by adding a native discovery surface for configured cmux.json actions. Previously only saved layouts were manageable from native UI; now custom actions and their launcher placements are visible without changing how they execute.
New Features
- Adds an Actions · cmux.json… entry to the app menu and the new-workspace (+) menu.
- Shows resolved actions with their source paths and effective placements:
palette,ui.newWorkspace.action,ui.newWorkspace.contextMenu,ui.surfaceTabBar.buttons, andshortcut. - Includes project-local/global actions and overridden built-ins; unconfigured built-ins stay hidden, and references for hidden surface buttons are dropped.
- Preserves surface tab bar action identity by resolved reference ID, so equal command payloads aren't mistaken for the same action.
- Uses dedicated localized strings for the menu/dialog titles, empty state, and metadata labels; reuses the existing config edit path, the Open cmux.json button, and custom-commands docs without adding an action editor or workflow format.
Summary by CodeRabbit
-
New Features
- Added an Actions & Launchers option to new-workspace menus for quick access to customization.
- Added an Actions & Launchers entry to App Settings.
- Improved action and launcher discovery across menus, command palette, workspace defaults, and the surface toolbar.
- Added localized empty-state messaging for action discovery in English and 17 additional languages.
-
Bug Fixes
- Prevented unavailable workspace actions from appearing as toolbar buttons.