chore(config): raise default max_steps_per_turn from 500 to 1000#2088
Merged
Conversation
Long-running agent turns were occasionally hitting the 500-step cap. Bump the default to 1000 so they have more headroom; users who need a tighter or looser limit can still override via config or `--max-steps-per-turn`.
Contributor
There was a problem hiding this comment.
Pull request overview
Raises the default agent loop cap so long-running turns are less likely to stop due to the per-turn step limit, and updates the repository’s tests and documentation to reflect the new default.
Changes:
- Increase
LoopControl.max_steps_per_turndefault from 500 → 1000. - Update default-config snapshot test expectations.
- Update config documentation examples/tables and add release-note entries (root + docs changelogs).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/kimi_cli/config.py |
Bumps LoopControl.max_steps_per_turn default to 1000. |
tests/core/test_config.py |
Updates default config dump snapshot value for max_steps_per_turn. |
docs/en/configuration/config-files.md |
Updates example config and default-value table to 1000. |
docs/zh/configuration/config-files.md |
Updates example config and default-value table to 1000. |
CHANGELOG.md |
Adds Unreleased entry documenting the default increase. |
docs/en/release-notes/changelog.md |
Includes the synced Unreleased entry in the English docs changelog. |
docs/zh/release-notes/changelog.md |
Adds the corresponding Chinese Unreleased entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Apr 28, 2026
This was referenced Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
N/A — internal request to give long agent runs more headroom before the per-turn cap.
Description
Bumps the default
LoopControl.max_steps_per_turnfrom 500 to 1000 so multi-step agent turns are less likely to abort withMaxStepsReached. Users who want a tighter or looser limit can still override via:loop_control.max_steps_per_turnfield in~/.kimi/config.toml, or--max-steps-per-turn NCLI flag.Files touched:
src/kimi_cli/config.py—LoopControl.max_steps_per_turnField(default=500) → Field(default=1000)tests/core/test_config.py—test_default_config_dumpsnapshot synced to1000docs/en/configuration/config-files.mdanddocs/zh/configuration/config-files.md— TOML example and field-reference table updatedCHANGELOG.md,docs/en/release-notes/changelog.md,docs/zh/release-notes/changelog.md— one UnreleasedCoreentry eachChecklist
tests/core/test_config.py::test_default_config_dumpsnapshot covers the new default)make gen-changelogto update the changelog. (Unreleased entries added by hand inCHANGELOG.mdanddocs/zh/release-notes/changelog.md;docs/en/release-notes/changelog.mdsynced)I have runN/A — config-files reference docs are authored directly; updated alongside the code change inmake gen-docsto update the user documentation.docs/{en,zh}/configuration/config-files.md.