From 506184d739be13297de3576f6cbce92523ace612 Mon Sep 17 00:00:00 2001 From: Christian Gunderman Date: Wed, 13 May 2026 17:59:25 -0700 Subject: [PATCH] fix(bot): cap reasoning loops to 30 turns The non-interactive CLI defaults to infinite `maxSessionTurns`. This causes the bot to get stuck in infinite trial-and-error loops when it struggles to fix a failing test suite, only stopping when the 60-minute GitHub Actions timeout kills the runner. By setting `maxSessionTurns: 30` in the bot's configuration, the LLM session will gracefully abort with an error if it cannot find a solution within a reasonable number of attempts. --- tools/gemini-cli-bot/.gemini/settings.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/gemini-cli-bot/.gemini/settings.json b/tools/gemini-cli-bot/.gemini/settings.json index 44378ccae3..2ea20236f3 100644 --- a/tools/gemini-cli-bot/.gemini/settings.json +++ b/tools/gemini-cli-bot/.gemini/settings.json @@ -1,4 +1,7 @@ { + "model": { + "maxSessionTurns": 30 + }, "security": { "environmentVariableRedaction": { "allowed": ["GH_TOKEN", "GITHUB_TOKEN"]