Skip to content

[bug] show action fails to resolve fully-qualified provider:id identifiers (returns 'No conversations matched' after ~60-90s) #422

Closed

Description

@Sinity

Actual behavior

polylogue <provider:id> show does not resolve to a conversation, despite that conversation being present in the archive and visible via list. After 54-95 seconds wall-clock the command exits with:

Query still running after 2.0s (route: show; retrieval: auto).
No conversations matched filters:
  search: codex:019dbae3-699e-7d42 show
Hint: try broadening your filters or use `list` to browse
Why this may have missed:
  - The archive is reachable, but no materialized conversation matched this selection.

The same conversation IS resolvable via list (so it's in the archive and FTS-indexed) but show cannot reach it.

Expected behavior

polylogue <provider:id-prefix> show resolves the conversation and prints its messages, or — if the prefix is genuinely ambiguous — disambiguates with a list of candidates. The fully-qualified provider:id-prefix form shown by list --fields id should round-trip cleanly into show.

Reproduction or trigger

# Setup: archive with materialized conversations, FTS index repaired.
polylogue doctor --repair --target dangling_fts

# 1) Confirm the conversation IS in the archive:
polylogue --provider codex --since 2026-04-23 --until 2026-04-24 list --limit 5 --fields id,title,messages
#  → codex:019dbae3-699e-7d42  2026-04-23  codex  019dbae3-699e-7d42-a938-... (247 msgs)

# 2) Try show on the exact id from list:
time polylogue codex:019dbae3-699e-7d42 show
#  → ~95s, then "No conversations matched filters: search: codex:019dbae3-699e-7d42 show"

# Same shape with claude-code IDs:
time polylogue claude-code:b78f986e-995 show
#  → ~54s, identical "No conversations matched filters" error

Also note the error message says search: codex:019dbae3-699e-7d42 show — show is being included as part of the search string, suggesting CLI argument parsing also routes the verb-token into the query.

Suspected scope

CLI argument parsing for the show action when a positional provider:id is the conversation selector. Two distinct issues likely:

  1. Slow failure (~60-90s) for what should be a near-instant lookup-by-id.
  2. No-match failure despite the same id resolving via list.

Possible causes:

  • show routes through the search path instead of a direct id lookup; the search index doesn't return the id back as a hit (because it's not a content match).
  • The verb token (show) is being concatenated into the search query rather than dispatched as a verb.
  • provider:id-prefix form expects the full ID, but list returns a truncated 24-char prefix (e.g. 019dbae3-699e-7d42) — round-trip mismatch between list output and show input.

Severity

Moderate — show is the canonical way to read individual session content. Workarounds via list --format json exist but are clunky.

Environment

  • polylogue 0.1.0+c97b6099
  • Archive: ~10,610 conversations, FTS up-to-date (recently repaired via doctor --repair --target dangling_fts).

Activity

  1. added a commit that references this issue on Apr 26, 2026
    68e88f2
  2. added a commit that references this issue on May 7, 2026
    cce1932
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

    type:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions