From 353b662226a4026e430d69b86fe13076b256ca55 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 14 Aug 2026 11:59:32 -0700 Subject: [PATCH] [eric] apps: runtime/status carries the boot narration tail so a wedged boot names itself (ENG-305) --- backend/apps/outputs/outputs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/apps/outputs/outputs.py b/backend/apps/outputs/outputs.py index 76a49ad5..a5c71936 100644 --- a/backend/apps/outputs/outputs.py +++ b/backend/apps/outputs/outputs.py @@ -478,6 +478,8 @@ def runtime_status_payload(workspace_id: str, instance: int = 1) -> dict: "frontend_port": rt.frontend_port, "frontend_url": rt.frontend_url if rt.running else None, "is_new_mode": rt.is_new_mode, + # The boot narration used to be WS-only, so a wedged boot left no queryable trace and one 120s field wedge stayed a shrug (ENG-305); the tail makes any status poll name what the boot is doing. + "recent_log": [getattr(line, "text", str(line))[-200:] for line in list(rt.log_buffer)[-12:]], }