Skip to content

fix(tools): coerce ReadRange start_text/end_text to str#561

Open
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:pr/read-range-int-markers
Open

fix(tools): coerce ReadRange start_text/end_text to str#561
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:pr/read-range-int-markers

Conversation

@JessicaMulein
Copy link
Copy Markdown

Summary

Models sometimes pass line numbers as int for start_text / end_text in ReadRange tool calls. Coerce to str before strip/count operations in execute(), format_output(), and format_error() to avoid AttributeError crashes.

Test plan

  • python -m pytest cecli/tests/tools/test_get_lines.py -q

Models sometimes pass line numbers as int; str() before strip/count ops
avoids AttributeError in execute, format_output, and format_error.

Co-authored-by: Cursor <cursoragent@cursor.com>
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