Skip to content

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

update: generator test now expects unfolded description (#6838)

[._.]/ Adam Eivy734c60a88849
diff --git a/server/services/cosTaskGenerator.test.js b/server/services/cosTaskGenerator.test.js
index cece2955e7..5b06eafa71 100644
--- a/server/services/cosTaskGenerator.test.js
+++ b/server/services/cosTaskGenerator.test.js
@@ -1391,10 +1391,12 @@ describe('buildImprovementDedupSets (#2614 — failure-blocked tasks occupy thei
expect(queued).toBe(1);
expect(generateTask).toHaveBeenCalledTimes(1);
expect(persistTask).toHaveBeenCalledTimes(1);
+ // Generator passes the full multi-line description to the store; the store
+ // folds it into description: firstLine + metadata.prompt: full body (#6838).
expect(persistTask.mock.calls[0][0]).toMatchObject({
id: expect.stringMatching(/^sys-install-user-action-review-/),
- description: 'Global task',
- metadata: { prompt: 'Global task\nwith full prompt' }
+ description: 'Global task\nwith full prompt',
+ metadata: {}
});
expect(recordExecution).toHaveBeenCalledTimes(1);
expect(recordExecution).toHaveBeenCalledWith('task:user-action-review');