diff --git a/CHANGELOG.md b/CHANGELOG.md index 5972216d52..3698fc2221 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,8 +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 - -## Unreleased +- Fixed issue with workers that have large parameter lists breaking dev tools ### Added 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."""