From cecb55b83a0bc38dd088d2d448281d253948cba1 Mon Sep 17 00:00:00 2001 From: Samarth Verma Date: Thu, 12 Mar 2026 15:55:50 -0400 Subject: [PATCH] Fix TTY timer alignment leaving stale suffix Signed-off-by: Samarth Verma --- cmd/display/tty.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmd/display/tty.go b/cmd/display/tty.go index 0726ce27049..4f437e22d2a 100644 --- a/cmd/display/tty.go +++ b/cmd/display/tty.go @@ -339,6 +339,18 @@ func (w *ttyWriter) printWithDimensions(terminalWidth, terminalHeight int) { } } + // pad timers so they all have the same visible width + for i := range lines { + l := &lines[i] + if l.timer == "" { + continue + } + timerWidth := utf8.RuneCountInString(l.timer) + if timerWidth < timerLen { + l.timer = l.timer + strings.Repeat(" ", timerLen-timerWidth) + } + } + // shorten details/taskID to fit terminal width w.adjustLineWidth(lines, timerLen, terminalWidth)