From a0bb7e64040ed05c7b0344066f24cdbab8fe269c Mon Sep 17 00:00:00 2001 From: arkml Date: Thu, 14 Aug 2025 20:29:35 +0530 Subject: [PATCH] fix bug that was causing circular handoffs between conv and task agents and a minor copilot change --- apps/rowboat/app/lib/agents.ts | 2 +- apps/rowboat/app/lib/copilot/copilot.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/rowboat/app/lib/agents.ts b/apps/rowboat/app/lib/agents.ts index a1f78049..fafcd588 100644 --- a/apps/rowboat/app/lib/agents.ts +++ b/apps/rowboat/app/lib/agents.ts @@ -1100,7 +1100,7 @@ async function* handleMessageOutput( nextAgentName = workflow.startAgent; loopLogger.log(`-- using start agent: ${nextAgentName} || reason: ${current} is a pipeline, no parent agent`); } - } else if (currentAgentConfig?.controlType === 'relinquish_to_parent' || currentAgentConfig?.controlType === 'retain') { + } else if (currentAgentConfig?.controlType === 'relinquish_to_parent') { if (stack.length > 0) { nextAgentName = stack.pop()!; loopLogger.log(`-- popped agent from stack: ${nextAgentName} || reason: ${current} is an internal agent, it put out a message and it has a control type of ${currentAgentConfig?.controlType}, hence the flow of control needs to return to the previous agent`); diff --git a/apps/rowboat/app/lib/copilot/copilot.ts b/apps/rowboat/app/lib/copilot/copilot.ts index 19e201dd..80984874 100644 --- a/apps/rowboat/app/lib/copilot/copilot.ts +++ b/apps/rowboat/app/lib/copilot/copilot.ts @@ -301,7 +301,7 @@ export async function* streamMultiAgentResponse( // call model console.log("🤖 AI MODEL CALL STARTED", { model: COPILOT_MODEL, - maxSteps: 5, + maxSteps: 20, availableTools: ["search_relevant_tools"] });