Skip to content

fix(tools): ReadRange resilience for weak model inputs#567

Open
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:pr/readrange-resilience
Open

fix(tools): ReadRange resilience for weak model inputs#567
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:pr/readrange-resilience

Conversation

@JessicaMulein

Copy link
Copy Markdown

Summary

  • is_provided() now rejects common junk values ('N/A', 'null', 'none') that small quantized models pass instead of real text markers
  • ReadRange auto-fallback: when start_text/end_text are missing or junk but the file is already in editable or read-only context, show the whole file (@000000@) instead of erroring. Files not in context still get the strict error.

Reduces wasted turns on quantized local models (e.g. qwen3.6:27b-q4_K_M) that struggle with ReadRange's start_text/end_text contract.

Test plan

  • python -m pytest tests/ -x -q (414 passed)

@JessicaMulein JessicaMulein force-pushed the pr/readrange-resilience branch from f8ea0d4 to 590d9aa Compare June 11, 2026 04:10
- is_provided() now rejects common junk values ('N/A', 'null', 'none')
  that small models pass instead of real text markers

- ReadRange auto-fallback: when start_text/end_text are missing or junk
  but the file is already in editable or read-only context, show the
  whole file (@000 → 000@) instead of erroring. Files not in context
  still get the strict error.

Reduces wasted turns on quantized local models (qwen3.6:27b-q4_K_M)
that struggle with ReadRange's start_text/end_text contract.
@JessicaMulein JessicaMulein force-pushed the pr/readrange-resilience branch from 590d9aa to d97608e Compare June 11, 2026 04:19
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