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 (claude): fall through a blank title to a real taskSummary
[._.]/ Adam Eivy5ecc2453d137
diff --git a/server/services/voice/proactiveTriggers.js b/server/services/voice/proactiveTriggers.jsindex ed7c4abce7..0363fefb6d 100644--- a/server/services/voice/proactiveTriggers.js+++ b/server/services/voice/proactiveTriggers.js@@ -90,8 +90,12 @@ const cleanTaskTopicLine = (line) => {// deriving one from the first meaningful, de-scaffolded line of the description.export const deriveTaskSpeechLabel = (task) => {if (!task) return '';- const explicit = task.title || task.metadata?.taskSummary;- if (explicit && explicit.toString().trim()) return clip(explicit, TASK_LABEL_CLIP_LEN);+ // Prefer the first NON-BLANK of title / summary — a whitespace-only title must+ // fall through to a real taskSummary, not short-circuit past it (`||` would+ // return the blank title and then trip the trim guard down to the description).+ for (const explicit of [task.title, task.metadata?.taskSummary]) {+ if (explicit && explicit.toString().trim()) return clip(explicit, TASK_LABEL_CLIP_LEN);+ }for (const raw of (task.description || '').toString().split('\n')) {const cleaned = cleanTaskTopicLine(raw);if (cleaned) return clip(cleaned, TASK_LABEL_CLIP_LEN);diff --git a/server/services/voice/proactiveTriggers.test.js b/server/services/voice/proactiveTriggers.test.jsindex e92d720c57..9743f04d18 100644--- a/server/services/voice/proactiveTriggers.test.js+++ b/server/services/voice/proactiveTriggers.test.js@@ -121,6 +121,14 @@ describe('deriveTaskSpeechLabel', () => {})).toBe('Fixed the flaky backup test');});+ it('falls through a blank title to a real post-run summary', () => {+ expect(deriveTaskSpeechLabel({+ title: ' ',+ metadata: { taskSummary: 'Fixed the flaky backup test' },+ description: SWARM_DESCRIPTION,+ })).toBe('Fixed the flaky backup test');+ });+it('skips scaffolding-only leading lines to the first real topic', () => {expect(deriveTaskSpeechLabel({ description: '#\n---\nRefactor the widget registry' })).toBe('Refactor the widget registry');