view tool rejects a normal 8.6 KB file as too large to read at once
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
組み込みの view/Read 実装とファイル全体のサイズチェックを特定し、説明されている Windows と VS Code のセットアップで、約 8.6 KB の複数行 Markdown ファイルを使って再現します。この正常なファイルが拒否される理由を追跡します。完了条件は、誤検知の警告なしにファイル全体を読み取れることと、実際にサイズが大きすぎる入力や単一行の入力については適切な処理が引き続き行われることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell, vscode
- 領域
- cli, tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100