refactor: update agent tree status indicators

This commit is contained in:
0xallam
2026-01-19 21:23:29 -08:00
parent 8413987fcd
commit 3d4b1bfb08

View File

@@ -914,13 +914,13 @@ class StrixTUIApp(App): # type: ignore[misc]
status = agent_data.get("status", "running") status = agent_data.get("status", "running")
status_indicators = { status_indicators = {
"running": "", "running": "",
"waiting": "", "waiting": "",
"completed": "", "completed": "🟢",
"failed": "", "failed": "🔴",
"stopped": "", "stopped": "",
"stopping": "", "stopping": "",
"llm_failed": "", "llm_failed": "🔴",
} }
status_icon = status_indicators.get(status, "") status_icon = status_indicators.get(status, "")
@@ -1469,12 +1469,13 @@ class StrixTUIApp(App): # type: ignore[misc]
agent_name_raw = agent_data.get("name", "Agent") agent_name_raw = agent_data.get("name", "Agent")
status_indicators = { status_indicators = {
"running": "", "running": "",
"waiting": "", "waiting": "",
"completed": "", "completed": "🟢",
"failed": "", "failed": "🔴",
"stopped": "", "stopped": "",
"stopping": "", "stopping": "",
"llm_failed": "🔴",
} }
status_icon = status_indicators.get(status, "") status_icon = status_indicators.get(status, "")
@@ -1543,12 +1544,13 @@ class StrixTUIApp(App): # type: ignore[misc]
status = agent_data.get("status", "running") status = agent_data.get("status", "running")
status_indicators = { status_indicators = {
"running": "", "running": "",
"waiting": "", "waiting": "",
"completed": "", "completed": "🟢",
"failed": "", "failed": "🔴",
"stopped": "", "stopped": "",
"stopping": "", "stopping": "",
"llm_failed": "🔴",
} }
status_icon = status_indicators.get(status, "") status_icon = status_indicators.get(status, "")