mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-21 00:21:25 +00:00
The maxReadFileLine setting existed as a type definition and in the webview default state but was never actually wired into the ReadFileTool or the tool description. The tool always used the hardcoded DEFAULT_LINE_LIMIT of 2000 lines regardless of the setting. This commit: - Adds maxReadFileLine to ClineProvider.getState() so it flows through the state pipeline - Passes maxReadFileLine through getNativeTools -> createReadFileTool so the tool description reflects the actual configured limit - Uses maxReadFileLine in ReadFileTool.processTextFile() to override DEFAULT_LINE_LIMIT at runtime - Adds resolveLineLimit() helper: -1 = default (2000), 0 = no limit (read entire file), positive = custom limit - Adds tests for resolveLineLimit and createReadFileTool options Fixes #11754 |
||
|---|---|---|
| .. | ||
| npm | ||
| scripts | ||
| src | ||
| .gitignore | ||
| eslint.config.mjs | ||
| package.json | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||