Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (round 22): snippet carries body, not title (which is already shown)
Adam Eivy1e6069efa38d
diff --git a/server/services/askService.js b/server/services/askService.jsindex deef677dbe..0b9a8a8ecb 100644--- a/server/services/askService.js+++ b/server/services/askService.js@@ -158,13 +158,18 @@ async function retrieveBrainNotes(question, queryTokens) {// chips land on the section page; the record id rides in `meta` for a// future record-level deep-link to consume without touching the source// shape. (Same pattern as memory/calendar after round 18.)+ // The title is already shown on the chip and prompt source line, so the+ // snippet should carry the body (description) rather than restate the+ // title. Fall back to the title only when the description is missing+ // entirely. Lexical scoring downstream still includes the title via the+ // `${c.title} ${c.snippet}` join, so ranking quality is unchanged.for (const idea of ideasArr || []) {- const text = `${idea.title || ''} ${idea.description || ''}`.trim();- candidates.push({ kind: 'brain-note', subkind: 'idea', recordId: idea.id, title: idea.title || '(idea)', snippet: normalizeSnippet(text), href: '/brain/memory', updatedAt: idea.updatedAt || idea.createdAt });+ const body = (idea.description || '').trim();+ candidates.push({ kind: 'brain-note', subkind: 'idea', recordId: idea.id, title: idea.title || '(idea)', snippet: normalizeSnippet(body || idea.title || ''), href: '/brain/memory', updatedAt: idea.updatedAt || idea.createdAt });}for (const proj of projectsArr || []) {- const text = `${proj.title || ''} ${proj.description || ''}`.trim();- candidates.push({ kind: 'brain-note', subkind: 'project', recordId: proj.id, title: proj.title || '(project)', snippet: normalizeSnippet(text), href: '/brain/memory', updatedAt: proj.updatedAt || proj.createdAt });+ const body = (proj.description || '').trim();+ candidates.push({ kind: 'brain-note', subkind: 'project', recordId: proj.id, title: proj.title || '(project)', snippet: normalizeSnippet(body || proj.title || ''), href: '/brain/memory', updatedAt: proj.updatedAt || proj.createdAt });}for (const entry of inbox || []) {// Brain inbox records use `capturedText` / `capturedAt` (see