diff --git a/gui/main.qml b/gui/main.qml index f22fe17..bf02f24 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -991,8 +991,8 @@ ApplicationWindow { if (cc === "red") return "#f44336" return "#9e9e9e" } - // Agent: use state from model (already updated via onAgentStateChanged) - var s = model.state || "idle" + // Agent: use state role from model + var s = state || "idle" if (s === "idle") return "#4caf50" if (s.startsWith("calling")) return "#ff9800" return "#2196f3"