ui: enable the agentic flow when only the JS sandbox is active#25865
Merged
allozaur merged 1 commit intoJul 20, 2026
Conversation
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.
taronaeo
approved these changes
Jul 19, 2026
Contributor
|
Testing has confirmed that the issue has been resolved. LGTM |
allozaur
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Enable the agentic infrastructure even when the browser-side JS sandbox is the only active tool source. The agentic gate counted MCP servers, builtin and custom tools but not frontend tools, so with the sandbox alone the flow was skipped, no tools field reached the server and the chat template rendered without the tool system prompt.
Additional information
Fixes #25856
Requirements