@@ -215,6 +233,7 @@ interface Turn {
const turns = ref([])
const draft = ref('')
const suggestedSources = ref([])
+const untrackedNames = ref([])
const excludedSources = ref(new Set())
const activeTurn = ref(null)
const scrollEl = ref(null)
@@ -237,6 +256,7 @@ function onInput() {
suggestTimer = setTimeout(fetchSuggestions, 400)
} else {
suggestedSources.value = []
+ untrackedNames.value = []
}
}
@@ -250,6 +270,7 @@ async function fetchSuggestions() {
if (!res.ok) return
const data = await res.json()
suggestedSources.value = (data.suggested ?? []).slice(0, 6)
+ untrackedNames.value = data.untracked_names ?? []
// Reset exclusions when suggestions change
excludedSources.value = new Set()
} catch { /* non-critical */ }