Skip to content
Source
Sign inSign up
TanStack/source

src issue view --comments prints nothing without a terminal when there are no comments #103

Closedfuko opened this issue 1 comment
fukocommented

Without a terminal, src issue view <n> --comments prints only the comments (as gh does, packages/cli/src/commands/issue/view.ts:362). An issue with no comments prints nothing, and exits 0. Agents have no terminal, yet the source skill tells them to run src issue view 12 --comments.

Steps to reproduce:

  1. Open an issue with no comments.
  2. Run src issue view <n> --comments | cat.
  3. Nothing is printed. src issue view <n> | cat prints the title and body.

Fix: change the skill's example to src issue view <n> plus --json title,body,comments, or print the preview before the comments when there is no terminal.

  1. tanstack-source added labelsbug

  2. Fixed by #147 (merged): without a terminal, src issue view --comments prints the preview before the comments.

  3. AlemTuzlak closed this

Sign in to join this conversation.