github / github/copilot-cli

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

Aberta
#4,633 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

triage
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Direção de pesquisa

Localize a implementação integrada de view/Read e a verificação do tamanho do arquivo inteiro, depois reproduza o problema com um arquivo Markdown multilinha de aproximadamente 8.6 KB na configuração descrita do Windows e do VS Code. Rastreie por que esse arquivo normal é rejeitado; considera-se concluído quando o arquivo é lido por inteiro sem o aviso de falso positivo, enquanto entradas realmente grandes demais ou de uma única linha continuam recebendo o tratamento apropriado.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
shell, vscode
Domínio
cli, tooling
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Ativa
Clareza
Razoavelmente clara
Facilidade para iniciantes
52/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.