Skip to content

Commit 3f4e6fb

Browse files
committed
refactor: remove task status details truncation
Task failure analysis was truncated at 50 characters in the history view. Remove both the column width constraint and truncation logic to display full status details. Let Rich table handle text wrapping naturally.
1 parent 7357941 commit 3f4e6fb

File tree

1 file changed

+1
-5
lines changed
  • src/lazy_ecs/features/task

1 file changed

+1
-5
lines changed

src/lazy_ecs/features/task/ui.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
# Constants
2121
MAX_RECENT_TASKS = 10
22-
MAX_STATUS_DETAILS_LENGTH = 50
2322
SEPARATOR_WIDTH = 80
2423

2524
_CHANGE_TYPE_DISPLAY = {
@@ -203,7 +202,7 @@ def _create_history_table(self) -> Table:
203202
table.add_column("Task ID", style="yellow", width=12)
204203
table.add_column("Revision", style="green", width=8)
205204
table.add_column("Created", style="blue", width=16)
206-
table.add_column("Status Details", width=40)
205+
table.add_column("Status Details")
207206
return table
208207

209208
def _format_task_row(self, task: TaskHistoryDetails) -> tuple[str, str, str, str, str]:
@@ -226,9 +225,6 @@ def _format_task_row(self, task: TaskHistoryDetails) -> tuple[str, str, str, str
226225
else:
227226
status_details = f"[yellow]{status_details}[/yellow]"
228227

229-
if len(status_details) > MAX_STATUS_DETAILS_LENGTH:
230-
status_details = status_details[:47] + "..."
231-
232228
return status_display, task_id, revision, created_time, status_details
233229

234230
def _display_history_summary(self, recent_tasks: list[TaskHistoryDetails]) -> None:

0 commit comments

Comments
 (0)