[PATCH 04/26] lucid: freeze dynamic display on unreachable tasks

Daniel Gomez <[email protected]> Tue, 19 May 2026 15:28:01 +0200
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
From: Daniel Gomez <[email protected]>

An unreachable host is a real failure from the user's perspective but
the dynamic-mode branch of _handle_result only froze the live display
on status failed. When a host dropped off the network mid-play the
spinner kept spinning and the TUI kept refreshing, quietly hiding the
fact that one or more targets had just gone silent.

Expand the dynamic-mode freeze condition to cover both failed and
unreachable outcomes so the display stops updating and the relevant
output is surfaced the moment the situation is detected, matching the
behaviour users already get for regular task failures.

Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>
---
 callback_plugins/lucid.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/callback_plugins/lucid.py b/callback_plugins/lucid.py
index 0aa28eba..58d85391 100644
--- a/callback_plugins/lucid.py
+++ b/callback_plugins/lucid.py
@@ -558,8 +558,8 @@ class CallbackModule(CallbackBase):
         # Display based on mode
         if self.dynamic_mode:
             # Dynamic mode will update on next refresh
-            # Freeze display and show output for failed tasks (not ignored)
-            if status == "failed" and not ignore_errors:
+            # Freeze display and show output for failed/unreachable tasks (not ignored)
+            if status in ("failed", "unreachable") and not ignore_errors:
                 self._freeze_and_show_output(result_data)
         else:
             # Static mode - display immediately

-- 
2.53.0