Repository navigation
fix(runtime): remove the default step limit - #763
Merged
Merged
Conversation
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.
Summary
maxStepslimits for CLI, programmatic, Harbor, and benchmark callers.Why
A live CLI turn stopped after exactly 50 tool calls while the model was still working. The runtime treated the hidden default as a normal end of turn, leaving the task incomplete.
Normal turns should continue until the model stops or the user interrupts them. Callers that need a fixed budget can still configure one.
Closes #760. Refs #759.
Scope
This PR does not add the
step_limitterminal reason or change TUI/Desktop rendering. That work remains in #761.Verification
npm test -w @maka/runtime1304 passed, 2 skipped.
npm run typecheckPassed across all workspaces.
maxSteps: 3still stops after three model steps.Impact
Interactive and other unconfigured product turns no longer stop after 50 steps. Existing explicit limits remain compatible.
Reviewer notes
Vercel AI SDK defaults
streamTextto one step whenstopWhenis omitted. The unlimited path therefore uses its exportedisLoopFinished()non-stopping condition. Explicit limits continue to usestepCountIs(maxSteps).Codex max-effort review passed with no P0/P1/P2 findings. Its only P3, stale default-50 contract comments, was fixed in
f7334b2d.Ready for review
Verificationexplains why it is not applicable