Skip to content

[DOCS] Document 'infer conversations show' subcommand #87

Closed

Description

@edenreich

Summary

The CLI added a new infer conversations show <session-id> subcommand (inference-gateway/cli#554, closes inference-gateway/cli#547). It prints a saved conversation's entries chronologically and works against every storage backend (jsonl, sqlite, postgres, redis, memory) by going through the storage layer rather than reading files directly.

The docs site does not document this command. The current "Conversation Management" section in cli.md is also out of date: it shows the command group as singular conversation and lists conversation list/show/export/delete, but the real command group is plural infer conversations, and the implemented subcommands today are list and the new show.

User-facing behavior to document:

  • infer conversations show <session-id> - prints entries chronologically with role, timestamp, content, and tool_call_id (for tool results).
  • --include-hidden (default off) - surfaces internally injected entries persisted as hidden: system reminders, plan-approval prompts, drained background-task results, and the synthetic verify message injected by infer agent.
  • --format text|json - text (default) is human readable; json emits one JSON object per line (NDJSON) for piping into jq, matching the infer agent stdout shape.
  • Session id resolution mirrors infer agent --session-id: a literal UUID is used as-is, while any other value is treated as a session group key and resolved to that group's current session id (registering the group if it is new). This means you can show by group name such as channel-telegram-12345.

Affected pages:

  • cli.md, the "Conversation Management" section (the "Commands" block). Correct the command group name to plural infer conversations, document the real subcommands, add the show flags, and align or remove references to subcommands that do not exist in the CLI today (for example export/delete).

Suggested examples to add:

# List conversations to find a session id
infer conversations list

# Show a conversation's entries (hidden entries omitted by default)
infer conversations show 12345678-1234-1234-1234-123456789abc

# Show by session group name (for example a channel group key)
infer conversations show channel-telegram-12345

# Include hidden entries such as system reminders
infer conversations show <session-id> --include-hidden

# One JSON object per line for piping into jq
infer conversations show <session-id> --format json | jq .

Source: inference-gateway/cli#547 and inference-gateway/cli#554. In-repo CLI docs were already updated in that PR (README.md and docs/commands-reference.md); this ticket tracks the docs site (inference-gateway/docs).

Acceptance Criteria

  • cli.md documents infer conversations show <session-id> with the --include-hidden and --format text|json flags.
  • The "Conversation Management" section uses the correct plural infer conversations command group and lists only subcommands that exist (list, show).
  • Session id resolution behavior (UUID passthrough plus session group key lookup) is documented.
  • Example commands render and are accurate.

Activity

  1. added
    documentation
    on May 29, 2026
  2. edenreich commented on May 29, 2026

    @edenreich
    ContributorAuthor

    @claude Can you document it? use /maintainer

  3. moved this to In progress in 2026on May 29, 2026
  4. added theissue type on May 29, 2026
  5. claude commented on May 29, 2026

    @claude
    Contributor

    Claude finished @edenreich's task in 4m 9s —— View job • claude/issue-87-20260529-1631 • Create PR ➔


    Documenting infer conversations show

    Done. Pushed commit c9c2888 to claude/issue-87-20260529-1631.

    • Read CLAUDE.md / maintainer guidance
    • Read current cli.md Conversation Management section
    • Cross-check command surface against CLI source (inference-gateway/cli PR docs(github-action): document the languages input for toolchain setup #554)
    • Update cli.md:
      • Use plural infer conversations command group
      • Document list and show subcommands
      • Document --include-hidden and --format text|json flags
      • Document session-id resolution (UUID passthrough + group key lookup)
      • Remove non-existent export/delete references (incl. cost-tracking example)
      • Add example commands aligned with the in-repo CLI docs
      • Fix command summary table row
    • npm run lint:md clean
    • npm run format:check clean
    • npm run build succeeds
    • Commit pushed

    Summary of changes (cli.md)

    Conversation Management section rewritten to match the actual CLI:

    • Added JSONL to the storage-backends list and noted backend-agnostic inspection via the storage layer.
    • Replaced the bogus conversation list/show/export/delete block with real infer conversations list and infer conversations show <session-id> examples, including --include-hidden, --format text|json, and resolution by session group name (e.g. channel-telegram-12345).
    • Removed the "Search across conversations" and "Export to JSON/Markdown" feature bullets since neither is implemented in the CLI today.

    Cost Tracking - View Costs example: swapped the stale infer conversation export <conversation-id> line for infer conversations show <session-id> (text and --format json | jq variants).

    Command summary table: infer conversation <subcommand> -> infer conversations <subcommand> with (list, show) callout. Prettier re-aligned the table widths.

    Acceptance criteria

    • cli.md documents infer conversations show <session-id> with --include-hidden and --format text|json.
    • The "Conversation Management" section uses the plural infer conversations group and lists only list and show.
    • Session id resolution behavior (UUID passthrough + session group key lookup) is documented.
    • Example commands render and are accurate (verified via npm run build).

    | Branch: claude/issue-87-20260529-1631

  6. added a commit that references this issue on May 29, 2026
    c9c2888
  7. added a commit that references this issue on May 29, 2026
    9f5f9ce
  8. moved this from In progress to Done in 2026on Jun 1, 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