Fix sync loader spinner showing for initializing (non-running) agents

Initializing agents were mapped to the "running" bucket in both server
and client, causing the SyncedLoader spinner to appear in tabs and
sidebar workspace rows when opening an agent for the first time.
This commit is contained in:
Mohamed Boudra
2026-04-10 11:13:14 +07:00
parent 1d41a50e1f
commit 8a9d738438
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -5322,7 +5322,7 @@ export class Session {
if (agent.status === "error" || agent.attentionReason === "error") {
return "failed";
}
if (agent.status === "running" || agent.status === "initializing") {
if (agent.status === "running") {
return "running";
}
if (agent.requiresAttention) {