From 88e2d0d7d9343ef4491a84c5eded2827cd19b727 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Wed, 10 Sep 2025 11:41:49 +0100 Subject: [PATCH] fix(agent-task view): stop progress indicator before opening browser Signed-off-by: Babak K. Shandiz --- pkg/cmd/agent-task/view/view.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/agent-task/view/view.go b/pkg/cmd/agent-task/view/view.go index d02b8e710..b592af7cf 100644 --- a/pkg/cmd/agent-task/view/view.go +++ b/pkg/cmd/agent-task/view/view.go @@ -113,6 +113,8 @@ func viewRun(opts *ViewOptions) error { return err } + opts.IO.StopProgressIndicator() + if opts.Web { var webURL string if sess.PullRequest != nil { @@ -196,6 +198,8 @@ func viewRun(opts *ViewOptions) error { return cmdutil.SilentError } + opts.IO.StopProgressIndicator() + if opts.Web { // Note that, we needed to make sure the PR exists and it has at least one session // associated with it, other wise the `/agent-sessions` page would display the 404 @@ -224,7 +228,6 @@ func viewRun(opts *ViewOptions) error { )) } - opts.IO.StopProgressIndicator() selected, err := opts.Prompter.Select("Select a session", "", options) if err != nil { return err @@ -234,8 +237,6 @@ func viewRun(opts *ViewOptions) error { } } - opts.IO.StopProgressIndicator() - out := opts.IO.Out if session.PullRequest != nil {