Fix: Reset suggestions cache on user message to re-enable tool buttons after chat
All checks were successful
BotUI CI/CD / build (push) Successful in 38s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-14 18:44:21 -03:00
parent 53e5170564
commit 3966cbd647

View file

@ -1084,6 +1084,8 @@ function sendMessage(messageContent) {
currentStreamingContent = "";
// Also reset thinking state when user sends a new message
isThinking = false;
// Reset suggestions cache so tool buttons are re-rendered after conversation
lastRenderedSuggestions = null;
// Inject active switchers into content
var activeKeys = Object.keys(activeSwitchers).filter(function(k) { return activeSwitchers[k]; });