github / github/copilot-cli

view tool rejects a normal 8.6 KB file as too large to read at once

Offen
#4,633 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

triage
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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
  1. Use the Copilot CLI runtime in VS Code on Windows.
  2. Ask the agent to read a normal multiline Markdown file of approximately 8.6 KB.
  3. Allow the built-in view/Read tool to read the file without specifying a range.
  4. 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 view tool's full-file size handling, not Azure DevOps or the repository being inspected.
Image

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Lokalisieren Sie die integrierte view/Read-Implementierung und die Prüfung der vollständigen Dateigröße und reproduzieren Sie das Verhalten mit einer mehrzeiligen Markdown-Datei von ungefähr 8.6 KB in dem beschriebenen Windows- und VS Code-Setup. Verfolgen Sie, warum diese normale Datei abgelehnt wird; als erledigt gilt, dass die Datei vollständig gelesen wird, ohne die falsch-positive Warnung, während tatsächlich übergroße oder einzeilige Eingaben weiterhin angemessen behandelt werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell, vscode
Bereich
cli, tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
52/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.