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

fix: preserve manual claim prompts in task metadata

[._.]/ Adam Eivy64cd3cb9ca7b
diff --git a/server/routes/cos.test.js b/server/routes/cos.test.js
index 94a2b59176..0b277961ab 100644
--- a/server/routes/cos.test.js
+++ b/server/routes/cos.test.js
@@ -1473,6 +1473,7 @@ describe('CoS Routes', () => {
expect(taskData.model).toBe('claude-opus-5');
expect(taskData.effort).toBe('high');
expect(taskData.claimTarget).toBe('412');
+ expect(taskData.metadata).toEqual({ prompt: 'CLAIM ISSUE PROMPT' });
expect(taskData.simplify).toBe(true);
// The claim prompt owns its own review sequence — no CoS loop on top.
expect(taskData.reviewLoop).toBe(false);
diff --git a/server/routes/cosTaskRoutes.js b/server/routes/cosTaskRoutes.js
index ef2de93e08..6f60231024 100644
--- a/server/routes/cosTaskRoutes.js
+++ b/server/routes/cosTaskRoutes.js
@@ -375,6 +375,9 @@ router.post('/tasks/slashdo', asyncHandler(async (req, res) => {
description: shape.description,
app,
prompt: shape.prompt,
+ // Preserve the assembled claim body in the explicit durable slot too.
+ // This keeps issue-page guidance attached if intake mapping changes.
+ ...(shape.prompt ? { metadata: { prompt: shape.prompt } } : {}),
slashdoCommand: shape.slashdoCommand,
...shape.taskMetadata,
provider, model, effort,