view tool rejects a normal 8.6 KB file as too large to read at once
Nessuno ha ancora preso questa issue.
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Individua l'implementazione integrata di view/Read e il controllo delle dimensioni dell'intero file, quindi riproduci il problema con un file Markdown multilinea di circa 8.6 KB nella configurazione Windows e VS Code descritta. Traccia il motivo per cui questo file normale viene rifiutato; il lavoro è completato quando il file viene letto per intero senza l'avviso di falso positivo, mentre gli input effettivamente troppo grandi o su una sola riga continuano a ricevere una gestione appropriata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- shell, vscode
- Ambito
- cli, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 52/100