Skip to content

[DOCS] Document GitHub issue references (#) autocomplete and inline expansion in chat #138

Closed

Description

@claude

Summary

The CLI chat interface now supports GitHub issue references. Typing # in the
chat input opens a dropdown of the current repository's open issues (resolved by
the gh CLI from the repo's git remote, newest first). Selecting an issue inserts
a highlighted #N token; on submit, the token is expanded inline into the
issue's title, body, and recent comments before the message is sent to the LLM,
so the agent works from full context without a redundant gh issue view lookup.
The feature gracefully no-ops when gh is not installed, the repo has no remote,
or auth has expired (the dropdown simply shows nothing).

Shipped in inference-gateway/cli PR #574 (closes issue #573); not yet reflected
on the docs site.

Affected pages:

  • cli.md -> "Core Commands" > "Chat Interface Features": add the # issue
    references capability (dropdown of open issues, selection/highlight, inline
    expansion on submit).
  • Note the gh CLI prerequisite and the graceful no-op behavior.

Acceptance Criteria

  • cli.md documents the # GitHub issue reference autocomplete (dropdown of
    open issues resolved via the gh CLI)
  • Behavior described: selecting inserts a highlighted #N token, expanded on
    submit into the issue title, body, and recent comments
  • Prerequisite (gh CLI installed and authenticated, repo has a remote) and
    graceful no-op behavior noted
  • Links back to source PR feat: add GitHub issue references autocomplete and inline expansion cli#574

Activity

  1. added
    documentation
    on Jun 1, 2026
  2. added theissue type on Jun 1, 2026
  3. edenreich commented on Jun 1, 2026

    @edenreich
    Contributor

    @claude Can you document it? use /maintainer

  4. claude commented on Jun 1, 2026

    @claude
    ContributorAuthor

    Claude finished @edenreich's task in 4m 25s —— View job • docs/issue-138-20260601-2327 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-138-20260601-2327?quick_pull=1&title=Issue%20%23138%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23138%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documenting GitHub issue references in CLI chat

    • Read cli.md and locate the "Chat Interface Features" section
    • Document the # issue reference autocomplete (dropdown of open issues via gh CLI)
    • Describe selection/highlight behavior and inline expansion on submit (title, body, recent comments)
    • Note the gh CLI prerequisite + graceful no-op behavior
    • Link back to source PR feat: add GitHub issue references autocomplete and inline expansion cli#574
    • Run lint/format checks (format:check + lint:md pass) and build (SSR output verified)
    • Commit changes and open a PR

    Summary

    Added a GitHub Issue References (#) subsection to cli.md under Core Commands -> Chat Interface Features, plus a one-line entry in the Capabilities list. The docs cover:

    • The # autocomplete dropdown of the current repo's open issues (number, title, state), resolved via the gh CLI from the git remote, newest first.
    • Selecting an issue inserts a highlighted #N token, expanded inline on submit into the issue title, body, and most recent comments (up to the latest 20) so the agent has full context without a redundant gh issue view.
    • The prerequisite (gh installed + authenticated, repo has a remote) and the graceful no-op when gh is missing, there is no git repo/remote, or auth has expired.
    • A backlink to source PR inference-gateway/cli#574.

    I verified the behavior against the merged upstream PR before writing (newest-first ordering, the 20-comment cap, and the no-op paths all come from the implementation, not just the issue text). npm run format:check, npm run lint:md, and npm run build all pass, and the new section is present in the server-rendered HTML.

    PR: #139
    | Branch: docs/issue-138-20260601-2327

  5. moved this to Done in 2026on Jun 2, 2026
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

    documentation

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions