You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(read_file): Codex-inspired indentation mode with simplified API
- Replace multi-file read_file with single-file-per-call design
- Add two reading modes: slice (default) and indentation
- Implement bidirectional expansion algorithm for indentation mode
- Add line truncation (500 chars) and limit (2000 lines default)
- Remove legacy token-budget-based reading approach
- Remove maxReadFileLine setting (replaced by limit parameter)
- Add new IndentationParams and ReadFileParams types
- Clean up stale FileEntry/LineRange types and helpers
Known limitations:
- Lines >500 chars are truncated (content lost)
- No server-side max limit enforcement
text: `Use the read_file tool to read the file "${fileName}" and show me what's on lines 2, 3, and 4. The file contains lines like "Line 1", "Line 2", etc. Assume the file exists and you can read it directly.`,
449
+
text: `Use the read_file tool to read the file "${fileName}" using slice mode with offset=2 and limit=3 (1-based offset). The file contains lines like "Line 1", "Line 2", etc. After reading, show me the three lines you read.`,
0 commit comments