summaryrefslogtreecommitdiff
path: root/docs/cli
diff options
context:
space:
mode:
authoranj-s <[email protected]>2025-07-11 07:55:03 -0700
committerGitHub <[email protected]>2025-07-11 14:55:03 +0000
commitc9e1e6d3bdfe1fa1582f278d6f1a606353313642 (patch)
treec6a78c450431d5fca390b1448d0f12e99da13ccc /docs/cli
parent0151a9e1a3451221faf52e883b2c9d6a49eb1b5c (diff)
Add support for specifying maxSessionTurns via the settings configuration (#3507)
Diffstat (limited to 'docs/cli')
-rw-r--r--docs/cli/configuration.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/cli/configuration.md b/docs/cli/configuration.md
index 79a2ffc3..d175aa4f 100644
--- a/docs/cli/configuration.md
+++ b/docs/cli/configuration.md
@@ -189,6 +189,14 @@ In addition to a project settings file, a project's `.gemini` directory can cont
"hideTips": true
```
+- **`maxSessionTurns`** (number):
+ - **Description:** Sets the maximum number of turns for a session. If the session exceeds this limit, the CLI will stop processing and start a new chat.
+ - **Default:** `-1` (unlimited)
+ - **Example:**
+ ```json
+ "maxSessionTurns": 10
+ ```
+
### Example `settings.json`:
```json
@@ -213,7 +221,8 @@ In addition to a project settings file, a project's `.gemini` directory can cont
"logPrompts": true
},
"usageStatisticsEnabled": true,
- "hideTips": false
+ "hideTips": false,
+ "maxSessionTurns": 10
}
```