view tool rejects a normal 8.6 KB file as too large to read at once
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
Describe the bug
The built-in view tool (shown as Read in the VS Code UI) reports File too large to read at once (8.6 KB) when asked to read a small, ordinary multiline Markdown file. This appears to be a false-positive size warning and makes normal full-file inspection unnecessarily cumbersome.
This is not the large single-line JSON or custom-tool-output case. The file is a regular Markdown document and is approximately 8.6 KB.
Affected version
Unknown - encountered in the Copilot CLI runtime integrated with VS Code.
Steps to reproduce the behavior
- Use the Copilot CLI runtime in VS Code on Windows.
- Ask the agent to read a normal multiline Markdown file of approximately 8.6 KB.
- Allow the built-in
view/Readtool to read the file without specifying a range. - Observe the
File too large to read at once (8.6 KB)warning instead of the file contents.
Expected behavior
A normal file of this size should be read successfully in full. If a size threshold is required, the threshold should be consistent, documented, and should not report ordinary small files as too large without a clear reason.
Additional context
- OS: Windows 11
- Host: Visual Studio Code
- Tool: built-in
view/Read - File type: regular Markdown, approximately 8.6 KB
- The warning recommends using
view_range, even though the file is small enough that a full read would normally be expected. - This report is about the
viewtool's full-file size handling, not Azure DevOps or the repository being inspected.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Localiza la implementación integrada de view/Read y la comprobación del tamaño del archivo completo, y reproduce el problema con un archivo Markdown multilínea de aproximadamente 8.6 KB en la configuración de Windows y VS Code descrita. Rastrea por qué se rechaza este archivo normal; se considera terminado cuando el archivo se lee por completo sin la advertencia de falso positivo, mientras que las entradas realmente demasiado grandes o de una sola línea siguen recibiendo un tratamiento adecuado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- shell, vscode
- Área
- cli, tooling
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 52/100