From: Pascal Date: Mon, 20 Jul 2026 14:22:16 +0000 (+0200) Subject: ui: enable the agentic flow when only the JS sandbox is active (#25865) X-Git-Tag: upstream/0.0.10438~368 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=1521a9ac31601e914513314331635272ad07541b;p=pkg%2Fggml%2Fsources%2Fllama.cpp ui: enable the agentic flow when only the JS sandbox is active (#25865) The agentic gate counted MCP servers, builtin and custom tools but not frontend tools, so with the JS sandbox as the only tool source the agentic flow was skipped, no tools field reached the server and the chat template rendered without the tool system prompt. The sandbox is fully client-side: frontendTools derives from the Developer settings toggle alone, counting it in the gate restores that single source of truth. --- diff --git a/tools/ui/src/lib/stores/agentic.svelte.ts b/tools/ui/src/lib/stores/agentic.svelte.ts index 4ced749ea..3eef745ef 100644 --- a/tools/ui/src/lib/stores/agentic.svelte.ts +++ b/tools/ui/src/lib/stores/agentic.svelte.ts @@ -288,6 +288,7 @@ class AgenticStore { const hasTools = mcpStore.hasEnabledServers(perChatOverrides) || toolsStore.builtinTools.length > 0 || + toolsStore.frontendTools.length > 0 || toolsStore.customTools.length > 0; return { enabled: hasTools && DEFAULT_AGENTIC_CONFIG.enabled,