mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +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 |
||
|---|---|---|
| .. | ||
| build | ||
| cloud | ||
| config-eslint | ||
| config-typescript | ||
| core | ||
| evals | ||
| ipc | ||
| telemetry | ||
| types | ||
| vscode-shim | ||