From 48b150beff0e25f3565d51b630cf4349e6ad4ec4 Mon Sep 17 00:00:00 2001 From: Maxime CLEMENT Date: Wed, 18 May 2022 08:54:25 +0200 Subject: [PATCH] fix: prevent flickering prompt when pulling same image from N services Signed-off-by: Maxime CLEMENT --- pkg/progress/tty.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/progress/tty.go b/pkg/progress/tty.go index 25cb7c78..a94d659d 100644 --- a/pkg/progress/tty.go +++ b/pkg/progress/tty.go @@ -83,7 +83,10 @@ func (w *ttyWriter) Event(e Event) { last.Status = e.Status last.Text = e.Text last.StatusText = e.StatusText - last.ParentID = e.ParentID + // allow set/unset of parent, but not swapping otherwise prompt is flickering + if last.ParentID == "" || e.ParentID == "" { + last.ParentID = e.ParentID + } w.events[e.ID] = last } else { e.startTime = time.Now()