diff --git a/pkg/cmd/agent-task/view/view.go b/pkg/cmd/agent-task/view/view.go index 279b980d2..b002c2a3d 100644 --- a/pkg/cmd/agent-task/view/view.go +++ b/pkg/cmd/agent-task/view/view.go @@ -333,7 +333,9 @@ func printSession(opts *ViewOptions, session *capi.Session) { fmt.Fprintf(opts.IO.Out, "%s %s\n", cs.FailureIconWithColor(cs.Red), message) if workflowRunURL != "" { - fmt.Fprintf(opts.IO.Out, "See the detailed logs in GitHub Actions:\n%s\n", workflowRunURL) + // We don't need to prefix the link with any text (e.g. "checkout the logs here") + // because the error message already contains all the information. + fmt.Fprintf(opts.IO.Out, "%s\n", workflowRunURL) } } diff --git a/pkg/cmd/agent-task/view/view_test.go b/pkg/cmd/agent-task/view/view_test.go index 689fd5f35..69802effe 100644 --- a/pkg/cmd/agent-task/view/view_test.go +++ b/pkg/cmd/agent-task/view/view_test.go @@ -513,7 +513,6 @@ func Test_viewRun(t *testing.T) { Used 1.5 premium request(s) X blah blah - See the detailed logs in GitHub Actions: https://github.com/OWNER/REPO/actions/runs/9999 For detailed session logs, try: