Skip to content

Output produced exceeding its own read limits #3008

@mcodilla

Description

@mcodilla

Describe the bug

Copilot generated python commands that printed >150 items from a json with a bunch of fields. This caused output to be redirected to a temp file which then required 5 additional read calls to fully consume.

Affected version

GitHub Copilot CLI 1.0.36

Steps to reproduce the behavior

  1. Open Copilot CLI with a JSON file containing 100+ records.
  2. Ask Copilot to extract and display a summary of all records.
  3. Observe the Python command Copilot generates.
  4. Check whether the output exceeds the tool's display limit.

Expected behavior

Copilot should estimate the output size before generating the command. For numerous (150+ json objects) copilot should have the brains to paginate

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions