mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
Add support for specifying maxSessionTurns via the settings configuration (#3507)
This commit is contained in:
parent
0151a9e1a3
commit
c9e1e6d3bd
10 changed files with 231 additions and 15 deletions
|
|
@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue