Skip to content

feat(ui): surface @mux tool optimization on FeatureSets + approval opt-out link - #168

Closed
its-mash wants to merge 2 commits into
mainfrom
feat/featureset-mux-hint-and-approval-settings-link
Closed

feat(ui): surface @mux tool optimization on FeatureSets + approval opt-out link#168
its-mash wants to merge 2 commits into
mainfrom
feat/featureset-mux-hint-and-approval-settings-link

Conversation

@its-mash

Copy link
Copy Markdown
Member

What

Two small discoverability nudges around tool optimization — making it obvious that the AI can curate its own toolset, and giving users a one-tap escape hatch from the approval prompt.

1. FeatureSets tab — "Let your AI build these for you" hint

A branded violet callout above the list shows the @mux optimize chat affordance: in any connected client the assistant can discover the available tools, compose a FeatureSet, and pin it to the current folder — every change gated behind a one-click approval, so the user stays in control.

2. Approval dialog — "Manage approval prompts" opt-out link

The meta-tool approval dialog now has a subtle footer link: "Prefer not to be asked? Manage approval prompts →". Clicking it:

  • denies the current request first (fail-closed — so the calling client isn't left hanging for the full 60s broker timeout), then
  • routes to the Built-in tab, where the existing "Require approval for tool changes" switch can turn these prompts off entirely (covers self-binding writes like mcpmux_bind_current_workspace).

Why

The @mux self-optimization flow is McpMux's standout feature but was previously undiscoverable from the FeatureSets surface, and there was no in-context path from the approval prompt to the toggle that disables it.

Tests

  • New MetaToolApprovalDialog test: clicking the manage link denies the request (decision: 'deny') and calls navigateTo('builtin-servers').
  • Full TS suite green (198 tests), tsc --noEmit clean, ESLint clean (only pre-existing warnings), clippy/fmt clean via pre-commit.

Scope

UI-only; no Rust, schema, or gateway behavior changes. Existing approval testids (-deny, -allow-once, -always) are untouched.

its-mash added 2 commits June 15, 2026 17:05
Two small discoverability nudges around tool optimization:

- FeatureSets tab: add a branded "Let your AI build these for you"
  hint showing the `@mux optimize` chat affordance — the assistant can
  discover tools, compose a FeatureSet, and pin it to the current
  folder, each gated behind a one-click approval.

- Meta-tool approval dialog: add a "Prefer not to be asked? Manage
  approval prompts" link that denies the current request (fail-closed,
  so the client is not left hanging for the 60s broker timeout) and
  routes to the Built-in tab, where the "Require approval for tool
  changes" switch can turn these prompts off.

Covered by a new MetaToolApprovalDialog test asserting the link denies
and navigates to builtin-servers.

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
@its-mash

Copy link
Copy Markdown
Member Author

Consolidated into #171 per request (single branch, trimmed descriptions).

@its-mash its-mash closed this Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant