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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user