mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-01 05:36:46 -07:00
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.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"model": {
|
||||
"maxSessionTurns": 30
|
||||
},
|
||||
"security": {
|
||||
"environmentVariableRedaction": {
|
||||
"allowed": ["GH_TOKEN", "GITHUB_TOKEN"]
|
||||
|
||||
Reference in New Issue
Block a user