You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contexting search-hints --memory (default: true) tries to connect to a live watch server. When watch isn't running, it silently falls back to reading the snapshot from .ctx/ctx_index.json. No indication in the output that fallback happened.
This matters because:
Snapshot may be stale (hours/days old)
Agent thinks it's getting live data but it's not
No way to know if watch is running without separate check
Proposed Solution
Add "fallback": true to JSON output when memory search was requested but snapshot was used:
Problem
contexting search-hints --memory(default: true) tries to connect to a live watch server. When watch isn't running, it silently falls back to reading the snapshot from.ctx/ctx_index.json. No indication in the output that fallback happened.This matters because:
Proposed Solution
Add
"fallback": trueto JSON output when memory search was requested but snapshot was used:{ "source": "snapshot", "fallback": true, "results": [...] }When memory search succeeds:
"fallback": falseor field omitted.When
--memory=false:"fallback"field omitted entirely.Implementation Notes
usedMemorybool incommand_search.go:84usedMemory=true→"source": "memory",usedMemory=false→"source": "snapshot","fallback": trueQueryMemorySearchreturns error on connection failure — that's the fallback triggersourcefield), butfallbackis explicit signalAcceptance Criteria
"fallback": truepresent in JSON when memory search fails and snapshot used"fallback": falseor absent when memory search succeeds--memory-only(errors instead of fallback, nofallbackfield)[fallback]prefix or similar indicator