Skip to content

Add comment list to read issue comments #19

Closed

Description

@seraph-pixelperfect

Context

Comments are write-only today: comment <ref> --body creates via commentCreate (src/linear.ts), but there is no way to read a thread.

Scope

  • Add comment list <ref> subcommand (dispatch pattern from issueCommand's positional switch in src/commands/issue.ts).
  • Query the comments(issueId: $id) connection ordered newest-first; TOON list schema: author name, body truncated via truncateForDisplay, relative time.
  • Definitive empty state + count line per AXI conventions; hints point to comment <ref> --body to reply.

Acceptance

  • linear-axi comment list LIN-123 renders the thread; a --full-style escape hatch disables truncation.

Activity

  1. seraph-pixelperfect commented on Aug 19, 2026

    @seraph-pixelperfect
    CollaboratorAuthor

    Schema correction found while implementing (PR #42): the comments root connection has NO issueId argument in the current schema (QueryCommentsArgs is only after/before/filter/first/includeArchived/last/orderBy). The thread is scoped via filter: { issue: { id: { eq: } } } instead. Also relevant: Comment.user is nullable (integration/bot comments have no user — render falls back to externalUser.displayName), and connections expose no sort-direction arg, so newest-first relies on Linear's fixed descending order (orderBy: createdAt). Verified against the generated documents in @linear/sdk@90.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions