fix(agent-task view): improve session error

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-09-18 16:14:31 +01:00
parent beba8f6387
commit 123c9eaba8
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E
2 changed files with 3 additions and 2 deletions

View file

@ -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)
}
}

View file

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