From b38a2ec034829969903b2e6a54c857723025d3d8 Mon Sep 17 00:00:00 2001 From: Lukas May Date: Tue, 3 Mar 2026 14:13:45 +0100 Subject: [PATCH] fix: Pass task with description to auto-spawned discuss agent The discuss agent spawned on initiative creation received only the initiative in its inputContext, missing the task that carries the user's description. The agent started without knowing what to discuss. --- apps/server/trpc/routers/initiative.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/trpc/routers/initiative.ts b/apps/server/trpc/routers/initiative.ts index c7c121f..1718f5e 100644 --- a/apps/server/trpc/routers/initiative.ts +++ b/apps/server/trpc/routers/initiative.ts @@ -78,7 +78,7 @@ export function initiativeProcedures(publicProcedure: ProcedureBuilder) { prompt, mode: 'discuss', initiativeId: initiative.id, - inputContext: { initiative }, + inputContext: { initiative, task }, }); } catch { // Fire-and-forget — don't fail initiative creation if agent spawn fails