Skip to content

Agent Zero AI framework

limit :scope to messageResponse

3clyp508a782914c977
diff --git a/webui/js/messages.js b/webui/js/messages.js
index 348248fa6..767d93884 100644
--- a/webui/js/messages.js
+++ b/webui/js/messages.js
@@ -671,7 +671,7 @@ function drawStandaloneMessage({
// Render action buttons: get/create container, clear, append
const actionButtonsContainer = ensureChild(
messageDiv,
- ":scope > .step-action-buttons",
+ ".step-action-buttons",
"div",
"step-action-buttons",
);
@@ -1118,7 +1118,7 @@ export function drawMessageUser({
// Look for direct child only to avoid finding nested code block buttons
const actionButtonsContainer = ensureChild(
messageDiv,
- ":scope > .step-action-buttons",
+ ".step-action-buttons",
"div",
"step-action-buttons",
);