Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix(input-field): wrong toast when selecting built-in agents other than quick-answer / smart-reasoning
jackson.jiadbdae65e9bef
diff --git a/frontend/src/components/Input-field.vue b/frontend/src/components/Input-field.vueindex 404e12b0b..fd6b5f476 100644--- a/frontend/src/components/Input-field.vue+++ b/frontend/src/components/Input-field.vue@@ -1810,7 +1810,15 @@ const handleSelectAgent = (agent: CustomAgent, sourceTenantId?: string) => {showAgentModeSelector.value = false;- const message = agent.is_builtin+ // Only the two "mode-entry" built-ins are re-branded as "Normal / Agent Mode"+ // in the dropdown — the switched-on/off toasts only make sense for them.+ // Other built-ins (wiki researcher, data analyst, etc.) share `is_builtin`+ // but should fall back to the generic agentSelected toast like custom agents,+ // otherwise selecting e.g. the Wiki Questioner incorrectly says+ // "Switched to Intelligent Reasoning".+ const isModeBuiltin =+ agent.id === BUILTIN_QUICK_ANSWER_ID || agent.id === BUILTIN_SMART_REASONING_ID;+ const message = isModeBuiltin? (isAgentType ? t('input.messages.agentSwitchedOn') : t('input.messages.agentSwitchedOff')): t('input.messages.agentSelected', { name: agent.name });MessagePlugin.success(message);