From f358a2beb6e36f7cb9e045363a07fa719c18a13b Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Sun, 15 Feb 2026 10:40:56 +0000 Subject: [PATCH] fix(app): refresh after suspend Fix the app display not refreshing after `action_suspend_process`. A similar issue was reported in https://github.com/Textualize/textual/issues/5528 but specifically when using the `App.suspend` context manager. This was fixed in 81392ff by adding `refresh(layout=True)`, however this doesn't cover when the app was suspended with `action_suspend_process`. This simply moves that call to `refresh` to account for both suspend methods. Related issue: https://github.com/Textualize/textual/issues/6298 --- src/textual/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/app.py b/src/textual/app.py index 744cee3b30..d35a8cf42d 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -4594,6 +4594,7 @@ def _suspend_signal(self) -> None: def _resume_signal(self) -> None: """Signal that the application is being resumed from a suspension.""" self.app_resume_signal.publish(self) + self.refresh(layout=True) @contextmanager def suspend(self) -> Iterator[None]: @@ -4642,7 +4643,6 @@ def suspend(self) -> Iterator[None]: self._driver.resume_application_mode() # ...and publish a resume signal. self._resume_signal() - self.refresh(layout=True) else: raise SuspendNotSupported( "App.suspend is not supported in this environment."