From 1d79d0ee89f1f65e3a07a49b570e7935e4c6a012 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Tue, 4 Aug 2026 16:19:33 +0200 Subject: [PATCH] gui: agent tree dot uses ollie.activeState directly for active agent --- gui/main.qml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gui/main.qml b/gui/main.qml index c923d7b..37454b7 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -1133,12 +1133,16 @@ ApplicationWindow { if (cc === "red") return "#f44336" return "#9e9e9e" } - // Agent: use same logic as top indicator + // Agent: match top indicator exactly when this is the active agent + if (agentId === ollie.activeAgentId && parentId === ollie.activeSessionId) { + if (ollie.isSessionPaused(ollie.activeSessionId)) return "#9e9e9e" + if (ollie.activeState === "idle") return "#4caf50" + if (ollie.activeState.startsWith("calling")) return "#ff9800" + return "#2196f3" + } + // Non-active agent: gray if paused, green otherwise if (ollie.isSessionPaused(parentId)) return "#9e9e9e" - var s = ollie.agentState(parentId, agentId) - if (s === "idle") return "#4caf50" - if (s.startsWith("calling")) return "#ff9800" - return "#2196f3" + return "#4caf50" } } }