From 7a5cbf9e8f476213a5bb06e463ac10c83eb54a9f Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 22 Apr 2026 22:37:46 -0300 Subject: [PATCH] fix(botui): dynamic switchers styling and custom prompt injection --- botui/ui/suite/chat/chat.html | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/botui/ui/suite/chat/chat.html b/botui/ui/suite/chat/chat.html index d8938432..38930bfa 100644 --- a/botui/ui/suite/chat/chat.html +++ b/botui/ui/suite/chat/chat.html @@ -970,17 +970,8 @@ function hideThinkingIndicator() { } } - var chip = document.createElement("button"); - // More robust switcher detection: check action type or context/switcher fields - var isSwitcher = (suggestion.type === "switcher") || - (suggestion.text && suggestion.text.toLowerCase().includes("tabela")) || // Heuristic for current bot - (action && ( - action.type === "switch_context" || - action.type === "select_context" || - action.type === "switcher" || - action.switcher || - action.context - )); + var chip = document.createElement("button"); + chip.className = "suggestion-chip"; chip.className = isSwitcher ? "switcher-chip" : "suggestion-chip";