fix(agent-task view): stop progress indicator before opening browser

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-09-10 11:41:49 +01:00
parent b3b8697cf3
commit 88e2d0d7d9
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -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 {