diff --git a/pkg/cmd/agent-task/list/list.go b/pkg/cmd/agent-task/list/list.go index 6add74df8..437767fe5 100644 --- a/pkg/cmd/agent-task/list/list.go +++ b/pkg/cmd/agent-task/list/list.go @@ -107,6 +107,8 @@ func listRun(opts *ListOptions) error { var repo ghrepo.Interface if opts.BaseRepo != nil { + // We swallow this error because when CWD is not a repo and + // the --repo flag is not set, we use the global/user session listing. repo, _ = opts.BaseRepo() }