Repository navigation
Description
Outcome
Gemini-origin conversations should be more recognizable in result lists, especially when the imported title / displayName is empty, terse, id-like, or otherwise less human-meaningful than the conversation content.
Problem or opportunity
Gemini parsing in polylogue/sources/parsers/drive.py currently resolves the conversation title from top-level title or displayName, else falls back to the file/id. In observed payload shape, there does not appear to be a richer conversation-level title source analogous to Codex thread names.
However, the parsed conversation often still contains enough evidence to synthesize a better display label:
- first substantive user prompt text
- attachment names such as Drive documents
- message timing and branch context where useful
Codex already has explicit title enrichment and provenance in polylogue/sources/assembly_codex.py. Gemini has no comparable assembly/enrichment path today.
Expected scope
polylogue/sources/parsers/drive.py- provider assembly/enrichment layer under
polylogue/sources/assembly*.py - conversation display-label/runtime behavior if a derived label should remain distinct from raw imported title
- CLI and MCP surfaces that present titles/display labels
- parser and output tests
Constraints and invariants
- Preserve the raw imported title when present; do not silently destroy archive fidelity.
- If a synthesized label is introduced, record provenance such as
title_sourceor equivalent. - Avoid overly clever paraphrasing; use deterministic, inspectable heuristics.
- Keep behavior robust for empty/minimal Gemini payloads.
Acceptance criteria
- Gemini-origin conversations can present a more human-recognizable display label when the imported top-level title is weak.
- The heuristic and its provenance are explicit and test-covered.
- Search and summary surfaces use the improved display label where appropriate.
- Tests cover at least id-like/empty titles, first-user-message fallback, and attachment-name-informed cases.
Verification plan
- add parser/assembly tests for Gemini display-label resolution
- add CLI/MCP output tests where display labels appear
- run
devtools verify
Context and evidence
Relevant files:
polylogue/sources/parsers/drive.pypolylogue/sources/providers/gemini_message.pypolylogue/sources/assembly.pypolylogue/sources/assembly_codex.py
Non-goals or explicitly deferred work
- Inventing a fake canonical title when the archive has none; the goal is better display labeling, not rewriting source truth.
- Solving broader search-hit evidence or attachment indexing in the same issue.
Activity
Sinity commentedon Apr 22, 2026
Starting implementation on
feature/feat/gemini-display-labels.Initial scope from the issue:
I will keep the scratch log at
.agent/scratch/221-gemini-display-labels.mdand post the PR/verification record here before merge.Sinity commentedon Apr 22, 2026
Implementation PR: #362
Current result:
title_source.provider_meta.display_labelonly for weak imported titles, withdisplay_label_sourceexplaining whether the label came from the first user prompt, an attachment name, or both.Local verification:
devtools verifypassed on the final diff.devtools verify --quickpassed.feat: add Gemini display labels (#362)