From 123c9eaba833934311c55da323d42ee7bad23c7b Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Thu, 18 Sep 2025 16:14:31 +0100 Subject: [PATCH] fix(agent-task view): improve session error Signed-off-by: Babak K. Shandiz --- pkg/cmd/agent-task/view/view.go | 4 +++- pkg/cmd/agent-task/view/view_test.go | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) 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: