From afa58a3610a305cc878cc715be48a7bd4410c1bf Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 22 Apr 2026 19:24:14 +0800 Subject: [PATCH] feat: Update built-in agent display order and clarify internal agent usage - Added comments to clarify the purpose of the `builtinAgentIDsOrdered` list, specifically noting the exclusion of `BuiltinWikiFixerID` to prevent clutter in the user-facing agent list. - This change enhances the understanding of the built-in agent configuration and maintains a cleaner user interface for agent selection. --- internal/types/custom_agent.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/types/custom_agent.go b/internal/types/custom_agent.go index 7732831d..d4a4ecc1 100644 --- a/internal/types/custom_agent.go +++ b/internal/types/custom_agent.go @@ -319,11 +319,17 @@ type SuggestedQuestion struct { var BuiltinAgentRegistry = map[string]func(uint64) *CustomAgent{} // builtinAgentIDsOrdered defines the fixed display order of built-in agents +// that are exposed in the user-facing agent list (ListAgents). +// +// NOTE: BuiltinWikiFixerID is intentionally excluded here. The wiki fixer is +// an internal agent invoked programmatically from the Wiki editor +// (see frontend WikiBrowser.vue) and should not clutter the tenant's agent +// picker. It remains fully usable via GetAgentByID because the YAML entry +// still registers it in BuiltinAgentRegistry. var builtinAgentIDsOrdered = []string{ BuiltinQuickAnswerID, BuiltinSmartReasoningID, BuiltinWikiResearcherID, - BuiltinWikiFixerID, BuiltinDeepResearcherID, BuiltinDataAnalystID, BuiltinKnowledgeGraphExpertID,