When selecting an agent from the chat page's agent selector dropdown, built-in agents other than `builtin-quick-answer` and `builtin-smart-reasoning` trigger the wrong toast. "Switched to Intelligent Reasoning" pops up regardless of which agent was actually picked — Wiki Questioner, Data Analyst, Wiki Fixer, etc. Root cause: the toast logic checks only `agent.is_builtin`, then branches on `agent_mode === 'smart-reasoning'` to pick between the "Switched to Intelligent Reasoning" / "Switched to Quick Q&A" strings. Those strings were designed for the two original built-ins (`builtin-quick-answer` and `builtin-smart-reasoning`), which the dropdown re-brands as "Normal Mode" / "Agent Mode". They don't make sense for any other built-in. Narrow the special-case branch to those two IDs. Other built-ins fall back to the generic `agentSelected` toast (the path custom agents already take), so they get a toast naming the agent that was actually selected. |
||
|---|---|---|
| .. | ||
| packages | ||
| public | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| docker-entrypoint.sh | ||
| env.d.ts | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| package.json.md5 | ||
| pnpm-workspace.yaml | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||