github / github/copilot-sdk

SDK Prompting for permissions to read an output file created by CLI for large outputs

Open
#1,077 0 comments 0 reactions 0 assignees View on GitHub
vs-code
Dominant language
Java
Stars
10.5k
Forks
1.5k
Avg merge
1d 11h
Merged PRs (30d)
128

Description

Image

```
{"type":"tool.execution_complete","data":{"toolCallId":"call_Gy2uDhKI9qIX2yMRS5USIm3C","....,"result":{"content":"Output too large to read at once (74.5 KB). Saved to: /var/folders/tk/xz6l8fxs0cxgphyh0xy2n4hh0000gn/T/copilot-tool-output-1776206629188-gotvti.txt\nConsider using tools like grep (for [\"ts\",\"js\",\"json\"]","matches_found":"true","large_output":"true","large_output_file":"/var/folders/tk/xz6l8fxs0cxgphyh0xy2n4hh0000gn/T/copilot-tool-output-1776206629188-gotvti.txt"},"
```

& then SDK passes permission request onto client to read this file.
CLI should auto approve such reads.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the CLI large-output handling from the point where the output is saved to a temporary file and the SDK forwards a read permission request to the client. Done means reads of these CLI-created output files are automatically approved without an additional client permission prompt.

Written by the indexing model from the issue text.

Assessment

Domain
authorization, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.