diff --git a/gui/main.qml b/gui/main.qml index 114e778..e0b99ab 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -1125,6 +1125,8 @@ ApplicationWindow { Layout.alignment: Qt.AlignVCenter radius: 4 visible: type !== "header" + property string agentState: (type === "agent") ? (state || "idle") : "" + property bool isPaused: (type === "agent") ? (parentPaused === true) : false color: { if (type === "session") { // Session: RPC connection health @@ -1135,11 +1137,10 @@ ApplicationWindow { return "#9e9e9e" } // Agent: gray if parent session is paused - if (parentPaused === true) return "#9e9e9e" + if (isPaused) return "#9e9e9e" // Agent: use state role from model - var s = state || "idle" - if (s === "idle") return "#4caf50" - if (s.startsWith("calling")) return "#ff9800" + if (agentState === "idle") return "#4caf50" + if (agentState.startsWith("calling")) return "#ff9800" return "#2196f3" } }