feat(gui): add worker status indicators to tier stream panel

This commit is contained in:
2026-03-07 10:34:27 -05:00
parent 3b16c4bce8
commit 544a554100

View File

@@ -2062,9 +2062,18 @@ class App:
if not tier3_keys: if not tier3_keys:
imgui.text_disabled("No worker output yet.") imgui.text_disabled("No worker output yet.")
else: else:
worker_status = getattr(self, '_worker_status', {})
for key in tier3_keys: for key in tier3_keys:
ticket_id = key.split(": ", 1)[-1] if ": " in key else key ticket_id = key.split(": ", 1)[-1] if ": " in key else key
imgui.text(ticket_id) status = worker_status.get(key, "unknown")
if status == "running":
imgui.text_colored(imgui.ImVec4(1, 1, 0, 1), f"{ticket_id} [{status}]")
elif status == "completed":
imgui.text_colored(imgui.ImVec4(0, 1, 0, 1), f"{ticket_id} [{status}]")
elif status == "failed":
imgui.text_colored(imgui.ImVec4(1, 0, 0, 1), f"{ticket_id} [{status}]")
else:
imgui.text(f"{ticket_id} [{status}]")
imgui.begin_child(f"##tier3_{ticket_id}_scroll", imgui.ImVec2(-1, 150), True) imgui.begin_child(f"##tier3_{ticket_id}_scroll", imgui.ImVec2(-1, 150), True)
imgui.text_wrapped(self.mma_streams[key]) imgui.text_wrapped(self.mma_streams[key])
try: try: