From d5512fd5c9eb7700c1ad43d80b1a06d97a543b87 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 8 Jun 2025 15:46:16 +0100 Subject: [PATCH 1/2] crop description --- CHANGELOG.md | 1 + src/textual/worker.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5972216d52..4cdc73a76d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Fixed issues with initial flicker in `TextArea` rendering https://github.com/Textualize/textual/issues/5841 +- Fixed issue with workers that have large parameter lists breaking dev tools ## Unreleased diff --git a/src/textual/worker.py b/src/textual/worker.py index 582b242ced..db50ecd3df 100644 --- a/src/textual/worker.py +++ b/src/textual/worker.py @@ -164,7 +164,9 @@ def __init__( self._work = work self.name = name self.group = group - self.description = description + self.description = ( + description if len(description) <= 1000 else description[:1000] + "..." + ) self.exit_on_error = exit_on_error self.cancelled_event: Event = Event() """A threading event set when the worker is cancelled.""" From b4b912d77cf6290d1dad6632d07b231d66cda16b Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 8 Jun 2025 15:46:34 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cdc73a76d..3698fc2221 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed issues with initial flicker in `TextArea` rendering https://github.com/Textualize/textual/issues/5841 - Fixed issue with workers that have large parameter lists breaking dev tools -## Unreleased - ### Added - Added experimental opt-in support for https://github.com/willmcgugan/textual-speedups