fix(tools): steer ReadRange away from empty-file read loops#560
Merged
dwash96 merged 1 commit intoJun 6, 2026
Merged
Conversation
Rebased onto v0.100.5 validation pipeline (cecli-dev#557). Route empty-file guidance through new_context_details so the model sees it. Hint EditText @000 or ContextManager instead of re-reading empty files. Co-authored-by: Cursor <cursoragent@cursor.com>
227b343 to
ef26a64
Compare
Open
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
@000or ContextManager) instead of a silent no-op.new_context_detailsso it appears in tool output (previously written toall_outputs, which was never returned).Base branch
Targets
v0.100.5(includes #557 validation pipeline) — notmain. Merge after #557 lands, or stack into v0.100.5 before release.Motivation
Local models on greenfield repos loop ReadRange on empty
pubspec.yaml/STEERING.mduntil repetition detection fires. BrightVision spec-focus implement sessions hit this in production dogfood.Test plan
python -m pytest cecli/tests/tools/test_get_lines.py -q