Skip to content

feat(agent-core): suggest update-config command in max-steps error - #1099

Merged
liruifengv merged 3 commits into
mainfrom
feat/max-steps-update-config-hint
Jun 25, 2026
Merged

feat(agent-core): suggest update-config command in max-steps error#1099
liruifengv merged 3 commits into
mainfrom
feat/max-steps-update-config-hint

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

N/A — small follow-up to #1097.

Problem

The per-turn step limit error added in #1097 only points users to edit loop_control.max_steps_per_turn in config.toml by hand. Users who prefer the interactive config command get no hint that they can run /update-config and then /reload instead.

What changed

Extend the loop.max_steps_exceeded error message to also suggest running /update-config followed by /reload, next to the existing config.toml instruction.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3d36e36

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 25, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@3d36e36
npx https://pkg.pr.new/@moonshot-ai/kimi-code@3d36e36

commit: 3d36e36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f6ba085305

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/agent-core/src/loop/errors.ts
@liruifengv
liruifengv merged commit f059649 into main Jun 25, 2026
11 of 12 checks passed
@liruifengv
liruifengv deleted the feat/max-steps-update-config-hint branch June 25, 2026 10:19
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant