DashboardCoderecall.ts: unescaped quotes/ellipsis in…

recall.ts: unescaped quotes/ellipsis in marker strings cause store miss and raw marker leak

Category: gotcha
Confidence: 1.00
ID: 019e6950-8200-7473-87a5-45a861bb84af
Project ID: ffa98226-3908-4f0c-936b-969018c62abf
Cross-project: No
Recalled in other projects: 2
Source session: (none)
Created: 2026-06-11 23:54:05
Updated: 2026-06-11 23:54:05

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 8 2h ago
opencode 1 9d ago

Content

Trap: buildRecallMarker() embeds raw query between double-quotes and raw id before … β€” looks safe because queries are usually plain text. But if query contains ", MARKER_REGEX (/πŸ“š Searching (.+?) for "(.+?)"…/) truncates the captured group at the first inner quote; recallStoreKey() produces a mismatched key; store.get(key) returns undefined; the marker is left as raw text in the conversation visible to the upstream LLM. Same issue for id containing …. Fix: escape " β†’ \" in buildRecallMarker() and unescape in parseRecallMarker(); for IDs, percent-encode or strip … before embedding.

Move to: