Skip to content

Issue skill - Read the issue body and its comments in one call - #10553

Merged
potatoqualitee merged 1 commit into
developmentfrom
issue-skill-read-whole-issue
Aug 13, 2026
Merged

Issue skill - Read the issue body and its comments in one call#10553
potatoqualitee merged 1 commit into
developmentfrom
issue-skill-read-whole-issue

Conversation

@andreasjordan

Copy link
Copy Markdown
Collaborator

Step 1 of the issue skill told the agent to read the issue with:

gh issue view <number> --comments

That view is not additive. The two forms are disjoint:

Command Body Comments
gh issue view 10549 70 lines none
gh issue view 10549 --comments none 36 lines
gh issue view 10550 --comments none issue has no comments, so nothing at all

A fresh bug report normally has no comments yet, which is exactly when this skill runs. gh then prints nothing and exits 0. That looks like a broken gh rather than an empty comment list, and the natural reaction is to retry with --repo, then in another shell, then start ruling out pagers and encodings, none of which can matter. It cost a few minutes on #10550 before the --json fallback happened to work.

The fix is the --json form, which returns the body and the comments together in one call, plus a short note explaining the trap so nobody switches the command back:

gh issue view <number> --json number,title,state,author,body,labels,createdAt,comments

Verified against #10549 (has comments) and #10550 (has none). No command code is touched, so there is nothing for CI to test here.

馃 Generated with Claude Code

Step 1 told the agent to run "gh issue view <number> --comments". That view is
not additive: the plain view prints the body and no comments, and --comments
prints the comments and no body. A new report usually has no comments at all,
so the command printed nothing and exited 0, which reads like a broken gh and
sent the agent chasing --repo and shell variations that could not matter.

Use the --json form instead, which always returns both, and say why so the
next reader does not switch back.

(do Get-DbaDatabase)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@potatoqualitee

Copy link
Copy Markdown
Member

nice, thanks

@potatoqualitee
potatoqualitee merged commit bdffbf3 into development Aug 13, 2026
2 checks passed
@potatoqualitee
potatoqualitee deleted the issue-skill-read-whole-issue branch August 13, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants