feat: Add memory hovercards to consolidation view#22
Conversation
Greptile SummaryThis PR adds inline memory hovercards to the consolidation view by extracting memory IDs from the reasoning Confidence Score: 5/5Safe to merge — purely additive debug UI with no impact on production logic. No P0 or P1 findings. Hook ordering is correct, shared global regex is safe with .match()/.split(), the 100-ID cap is a sensible safeguard, and the mono CSS class is defined in styles.css. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant RS as ReasoningSection
participant MIF as memoryIdsFrom()
participant UQ as useQuery (Convex)
participant DB as memoryRecords DB
participant MT as MemoryText
participant MH as MemoryIdHover
RS->>MIF: JSON.stringify(details)
MIF-->>RS: string[] of unique memoryIds (≤100)
RS->>UQ: getByMemoryIds({ memoryIds })
UQ->>DB: index lookup by_memory_id × N
DB-->>UQ: MemoryRecord[]
UQ-->>RS: memoryRecords (or undefined while loading)
RS->>MT: renderMemoryText(text)
MT->>MT: text.split(MEMORY_ID_RE) + text.match(MEMORY_ID_RE)
MT->>MH: memoryId + memoryById.get(id)
MH-->>MT: hovercard span
MT-->>RS: React nodes with inline hovercards
Reviews (1): Last reviewed commit: "Add memory hovercards to consolidation v..." | Re-trigger Greptile |
Small PR just to add a hovercard to the memory id on the consolidation view for better understanding of the judgement
