Skip to content

Commit 48b150b

Browse files
committed
fix: prevent flickering prompt when pulling same image from N services
Signed-off-by: Maxime CLEMENT <[email protected]>
1 parent 7e3564b commit 48b150b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/progress/tty.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ func (w *ttyWriter) Event(e Event) {
8383
last.Status = e.Status
8484
last.Text = e.Text
8585
last.StatusText = e.StatusText
86-
last.ParentID = e.ParentID
86+
// allow set/unset of parent, but not swapping otherwise prompt is flickering
87+
if last.ParentID == "" || e.ParentID == "" {
88+
last.ParentID = e.ParentID
89+
}
8790
w.events[e.ID] = last
8891
} else {
8992
e.startTime = time.Now()

0 commit comments

Comments
 (0)