Skip to content

🤖 refactor: remove ask agent#3047

Merged
ammario merged 1 commit intomainfrom
refactor/remove-ask-agent
Mar 23, 2026
Merged

🤖 refactor: remove ask agent#3047
ammario merged 1 commit intomainfrom
refactor/remove-ask-agent

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Mar 23, 2026

Summary

Remove the built-in Ask agent from Mux and migrate legacy persisted Ask selections to the default Auto router.

Background

Ask overlapped with the existing Auto/Explore flow and added extra built-in surface area to maintain. This change removes the built-in agent while keeping old saved preferences from breaking by remapping persisted ask selections to auto.

Implementation

  • deleted the built-in ask.md definition and regenerated the embedded built-in agent/docs artifacts
  • removed Ask from built-in agent ordering, fallback/selectable agent lists, ACP config options, and Storybook fixtures
  • added a shared agent-id normalization helper so legacy saved ask values now resolve to auto across browser and node codepaths
  • updated tests that covered built-in agent lists and persisted agent preferences to assert the migration behavior

Validation

  • make static-check
  • bun test tests/ipc/acp.configOptions.test.ts tests/ipc/acp.resolveAgentAiSettings.test.ts src/browser/contexts/AgentContext.test.tsx src/browser/hooks/useDraftWorkspaceSettings.test.tsx src/browser/features/ChatInput/useCreationWorkspace.test.tsx src/node/services/agentDefinitions/resolveToolPolicy.test.ts

Risks

Low-to-moderate risk in agent selection and persisted preference migration paths. The main regression risk is old saved Ask preferences resolving incorrectly, which is covered by targeted browser/node tests and the shared normalization helper.


Generated with mux • Model: openai:gpt-5.4 • Thinking: high • Cost: $9.45

@ammar-agent
Copy link
Collaborator Author

@codex review

@mintlify
Copy link

mintlify bot commented Mar 23, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Mux 🟢 Ready View Preview Mar 23, 2026, 2:59 PM

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 13fe8f4a57

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammar-agent ammar-agent force-pushed the refactor/remove-ask-agent branch from 13fe8f4 to ddf337c Compare March 23, 2026 15:25
@ammar-agent
Copy link
Collaborator Author

@codex review

Please take another look.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ddf337cabf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammar-agent
Copy link
Collaborator Author

@codex review

Please take another look.

@ammar-agent
Copy link
Collaborator Author

@codex review

Please take another look.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 28d514256d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammar-agent ammar-agent force-pushed the refactor/remove-ask-agent branch from 28d5142 to 2525e49 Compare March 23, 2026 15:54
@ammar-agent
Copy link
Collaborator Author

@codex review

Please take another look.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2525e49d1b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammar-agent
Copy link
Collaborator Author

@codex review

Please take another look.

@ammar-agent
Copy link
Collaborator Author

@codex review

Please take another look.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 44e6ceccd5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammar-agent
Copy link
Collaborator Author

@codex review

Please take another look.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c13a63782b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammar-agent ammar-agent force-pushed the refactor/remove-ask-agent branch from c13a637 to 7241d94 Compare March 23, 2026 16:42
@ammar-agent
Copy link
Collaborator Author

@codex review

Follow-up simplification per explicit user direction:

  • legacy built-in ask mode still remaps to auto
  • ACP no longer carries aiSettingsByAgent.ask forward after that remap
  • workspace AI-setting persistence no longer remaps explicit ask writes into Auto's settings bucket

That keeps Ask removal focused on agent selection migration while avoiding any further Ask-vs-Auto settings compatibility logic.

Remove the last Ask-specific compatibility path that carried legacy Ask model
settings forward after remapping persisted Ask mode selections to Auto. ACP now
remaps legacy Ask mode to Auto without resurrecting aiSettingsByAgent.ask, and
workspace AI-setting persistence keeps explicit ask writes separate from Auto so
custom or legacy Ask state does not get mixed into Auto's bucket.

---

_Generated with `mux` • Model: `openai:gpt-5.4` • Thinking: `xhigh` • Cost: `$122.62`_

<!-- mux-attribution: model=openai:gpt-5.4 thinking=xhigh costs=122.62 -->
@ammar-agent ammar-agent force-pushed the refactor/remove-ask-agent branch from 6774efa to 0ff122c Compare March 23, 2026 16:48
@ammar-agent
Copy link
Collaborator Author

@codex review

Latest push includes the staged ACP + workspace AI-settings simplification:

  • legacy built-in ask mode still remaps to auto
  • ACP no longer carries aiSettingsByAgent.ask forward after that remap
  • workspace AI-setting persistence keeps explicit ask writes separate from Auto

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammario ammario merged commit 395e956 into main Mar 23, 2026
24 checks passed
@ammario ammario deleted the refactor/remove-ask-agent branch March 23, 2026 17:03
@mux-bot mux-bot bot mentioned this pull request Mar 24, 2026
github-merge-queue bot pushed a commit that referenced this pull request Mar 24, 2026
## Summary

Periodic auto-cleanup PR. Each commit is an independent,
behavior-preserving refactor found by scanning recent `main` commits.

## Current cleanup

**Remove dead ask-agent fallback from agentResolution** — The ask agent
was removed in 395e956 (#3047). The special-case fallback path (`ask →
auto → exec`) in the agent definition loader's catch block is now dead
code, since the migration in that same PR already remaps persisted `ask`
selections to `auto` before this code path is reached. Simplified the
catch block to always fall back to `exec` directly (−8 lines).

## Validation

- `make static-check` passes (ESLint, TypeScript, Prettier)

Auto-cleanup checkpoint: fda7812

---

_Generated with `mux` • Model: `anthropic:claude-opus-4-6` • Thinking:
`xhigh` • Cost: `N/A`_

<!-- mux-attribution: model=anthropic:claude-opus-4-6 thinking=xhigh
costs=N/A -->

---------

Co-authored-by: mux-bot[bot] <264182336+mux-bot[bot]@users.noreply.github.com>
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.

2 participants