♻️ refactor(hub): return empty string when no tools available

This commit is contained in:
Vaayne 2025-12-31 11:28:26 +08:00
parent 087f0ecfb1
commit 9af45a6689

View File

@ -600,7 +600,7 @@ interface ToolInfo {
export function getHubModeSystemPrompt(tools: ToolInfo[] = []): string {
if (tools.length === 0) {
return HUB_MODE_SYSTEM_PROMPT_BASE
return ''
}
const existingNames = new Set<string>()