fix(agent-task view): stop progress indicator before opening browser
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
b3b8697cf3
commit
88e2d0d7d9
1 changed files with 4 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue