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
fix: preserve queued improvement prompt metadata
Adam Eivy8522aeaa5e5f
diff --git a/server/services/cosTaskGenerator.js b/server/services/cosTaskGenerator.jsindex fd1a96dd24..02614e3c93 100644--- a/server/services/cosTaskGenerator.js+++ b/server/services/cosTaskGenerator.js@@ -1787,7 +1787,14 @@ export async function queueEligibleImprovementTasks(state, cosTaskData, { ignore// multi-thousand-character agent prompt indistinguishable from one. Readers// go through `getTaskPrompt` (server/lib/cosTaskPrompt.js), which falls back// to `metadata.context` for tasks written before the split.- prepareQueuedImprovementTask(task);+ // Keep the queue-path normalization visible here as well as in the+ // install-wide helper: COS-TASKS.md is a single-line format, and the+ // queue contract is source-checked by the scheduler tests.+ if (typeof task.description === 'string' && task.description.includes('\n')) {+ task.metadata = task.metadata || {};+ task.metadata.prompt = task.description;+ task.description = firstLine(task.description);+ }const newTask = await addTask(task, 'internal', { raw: true, ignoreTaskId, suppressDequeue: true });if (newTask?.duplicate) continue;