Skip to content

Agent Zero AI framework

fix subordinate grouping, layout alignments

frdel52e1cce003fb
diff --git a/webui/components/chat/attachments/attachmentsStore.js b/webui/components/chat/attachments/attachmentsStore.js
index 08b7815fd..7ac7e59ab 100644
--- a/webui/components/chat/attachments/attachmentsStore.js
+++ b/webui/components/chat/attachments/attachmentsStore.js
@@ -128,7 +128,8 @@ const model = {
setupPasteHandler() {
console.log("Setting up paste handler...");
document.addEventListener("paste", (e) => {
- console.log("Paste event detected, target:", e.target.tagName);
+ // console.log("Paste event detected, target:", e.target.id);
+ if(e.target.id != "chat-input" && e.target.id != "full-screen-input") return;
const items = e.clipboardData.items;
let imageFound = false;
diff --git a/webui/components/messages/process-group/process-group.css b/webui/components/messages/process-group/process-group.css
index bef0a4145..3573f5b34 100644
--- a/webui/components/messages/process-group/process-group.css
+++ b/webui/components/messages/process-group/process-group.css
@@ -518,6 +518,8 @@
scrollbar-width: thin;
-ms-overflow-style: thin;
scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
+ padding-left: 17px;
+ padding-right: 1em;
/* overscroll-behavior: contain; */
}
diff --git a/webui/css/messages.css b/webui/css/messages.css
index 833936e9e..eb918ceb9 100644
--- a/webui/css/messages.css
+++ b/webui/css/messages.css
@@ -406,7 +406,7 @@
font-weight: 500;
font-size: var(--font-size-xs);
/* min-width: 7em; */
- width: 4em;
+ width: 5em;
text-align: right;
}
diff --git a/webui/js/messages.js b/webui/js/messages.js
index 144a237ca..60207a6a7 100644
--- a/webui/js/messages.js
+++ b/webui/js/messages.js
@@ -282,11 +282,14 @@ function drawProcessStep({
if (classes) step.classList.add(...classes);
let appendTarget = stepsContainer;
- const parentStep = findParentDelegationStep(group, log.agentno);
- if (parentStep) {
- appendTarget = getNestedContainer(parentStep);
- step.classList.add("nested-step");
- }
+
+ // grouping subordinate chain under the delegation call
+ // for now disabled, let's keep the UI simple and unified for now
+ // const parentStep = findParentDelegationStep(group, log.agentno);
+ // if (parentStep) {
+ // appendTarget = getNestedContainer(parentStep);
+ // step.classList.add("nested-step");
+ // }
// remove any existing shiny-text from group
group
@@ -1881,7 +1884,7 @@ function findParentDelegationStep(group, agentno) {
const stepAgent = Number(step.getAttribute("data-agent-number"));
if (
stepAgent === agentno - 1 &&
- step.getAttribute("data-log-type") === "tool" // map to the last tool call of superior agent
+ step.getAttribute("data-log-type") === "subagent" // map to the last tool call of superior agent
) {
return step;
}