From 390d20ae441bd2e25da7b0edab208999bdf5f565 Mon Sep 17 00:00:00 2001 From: Will Chen Date: Tue, 7 Oct 2025 16:35:11 -0700 Subject: [PATCH] Max step count is 20 for toolcalls (#1464) getting user feedback that the max of 3 is not enough and it's ending abruptly --- src/ipc/handlers/chat_stream_handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc/handlers/chat_stream_handlers.ts b/src/ipc/handlers/chat_stream_handlers.ts index 11bc248..ec73303 100644 --- a/src/ipc/handlers/chat_stream_handlers.ts +++ b/src/ipc/handlers/chat_stream_handlers.ts @@ -777,7 +777,7 @@ This conversation includes one or more image attachments. When the user uploads temperature: await getTemperature(settings.selectedModel), maxRetries: 2, model: modelClient.model, - stopWhen: [stepCountIs(3), hasToolCall("edit-code")], + stopWhen: [stepCountIs(20), hasToolCall("edit-code")], providerOptions, system: systemPromptOverride, tools,