fix(cli): raise the VM's step budget for lex-code's own entry points - #137
Merged
Conversation
The lex VM's default step limit (10,000,000) is a DoS guard for untrusted sandboxed snippets (lex run --help). lex-code's own process -- the TUI, one-shot mode, the eval harness -- is trusted, long-running code, not that. Reproduced live: a real multi-file package build crashed outright with a step-limit-exceeded panic partway through, independent of the two other quadratic bugs fixed today (alpibrusl/lex-schema#36, this repo's own #136) -- an ordinary verbose turn from a thinking-mode model was enough on its own. `lex run --max-steps 20000000000` already exists for exactly this; `src/index_build.lex`'s README section already needed it for its own long-running batch job. bin/lex-code now sets the same value by default (overridable via LEX_CODE_MAX_STEPS, matching the existing LEX_CODE_EFFECTS pattern), scripts/eval.sh's harness invocation gets the same flag, and the README's literal lex run examples (the TUI entry point, the MCP/A2A/web servers, the ACP server) are updated to match -- bin/lex-code's own comment is where the full story lives, and the Quickstart section now points there. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
Test plan
🤖 Generated with Claude Code