diff --git a/strix/interface/tui/app.py b/strix/interface/tui/app.py index aefd4b04..58b20925 100644 --- a/strix/interface/tui/app.py +++ b/strix/interface/tui/app.py @@ -1403,13 +1403,12 @@ class StrixTUIApp(App): # type: ignore[misc] self._scan_thread.start() def _notify_scan_error(self, exc: Exception) -> None: - """Dispatch a persistent error toast from any thread.""" + """Dispatch an error toast from any thread.""" with contextlib.suppress(Exception): self.call_from_thread( self.notify, f"Scan failed: {type(exc).__name__}: {exc}", severity="error", - timeout=0, ) def _capture_sdk_event(self, agent_id: str, event: Any) -> None: diff --git a/tests/interface/tui/test_app.py b/tests/interface/tui/test_app.py index b2789710..c7821d28 100644 --- a/tests/interface/tui/test_app.py +++ b/tests/interface/tui/test_app.py @@ -22,7 +22,6 @@ def test_notify_scan_error_dispatches_toast() -> None: app.notify, "Scan failed: RuntimeError: something went wrong", severity="error", - timeout=0, )