Skip to content

[FEATURE] Add 'infer conversations show <id>' subcommand #547

Description

@edenreich

Summary

Currently infer conversations exposes only list. To inspect the contents of a saved conversation — including hidden messages like the system_reminder entries persisted with Hidden: true — users have to drop down to the raw storage backend (e.g. grep '\"hidden\":true' .infer/conversations/<uuid>.jsonl | jq .). This is undiscoverable and only works for the jsonl backend; users on sqlite, postgres, or redis have no in-CLI way to view a session at all.

A show <id> subcommand would make conversation inspection first-class and storage-backend-agnostic by going through domain.ConversationRepository rather than touching files directly.

Proposed behavior

  • infer conversations show <session-id> — prints conversation entries chronologically with role, timestamp, and content.
  • --include-hidden flag (default off) to surface internally-injected messages like system_reminder, plan-approval prompts, drained background-task results, and the synthetic verifyMsg from infer agent.
  • --format json|text flag — text is human-friendly default; json emits one entry per line for piping into jq / log scrapers (parity with the infer agent stdout shape).
  • Resolve the id through the same path infer agent --session-id uses (literal UUIDs pass through, non-UUID inputs hit the rollover manager / group keys) so users can show by group name too.

Why now

The feat/add-system-reminders-to-agent-mode branch makes hidden system_reminder injections a routine occurrence; without show, there is no first-class way to verify reminders are firing on non-jsonl backends. Also unblocks debugging plan-mode persistence and channel-routed approval flows, which both rely on hidden entries.

Acceptance Criteria

  • infer conversations show <session-id> prints entries chronologically (role, timestamp, content, tool_call_id when present).
  • Works against every configured storage backend (jsonl, sqlite, postgres, redis, memory) via domain.ConversationRepository, not by reading files directly.
  • --include-hidden flag controls whether Hidden: true entries are emitted (default: off).
  • --format json emits one JSON object per line; --format text (default) is human-readable.
  • Subcommand registered in cmd/conversations.go alongside conversationsListCmd.
  • Session id resolution mirrors infer agent --session-id (UUID passthrough + rollover-manager group key lookup).
  • Tests cover hidden-vs-shown filtering and the json/text format split.

Activity

  1. added
    enhancement
    on May 29, 2026
  2. moved this to Todo in 2026on May 29, 2026
  3. inference-gateway-releaser commented on May 29, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.115.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  4. moved this from Todo 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

    enhancementreleased

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions