github / github/copilot-cli

Provide copilot with a safe temp area that is automatically cleaned up on close.

未關閉
#1,203 1 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
area:permissions area:sessions
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

Copilot sometimes create some temp files and then ask for confirmation to clean up, this should be automatic.

### Proposed solution

For obvious reasons one don't like to approve `rm` for the whole session, but when copilot creates own temp files it ask to remove them what has several drawbacks:

1. It interrupts the flow
2. The user has to carefully review what is done and identify these files a temporary ones created by copilot

Instead, copilot should get an own temp area it can use (maybe in the session store?) and where it is allowed to remove such files on its own distinction without needing the user to ask.

### Example prompts or workflows

Some examples would be something like e.g. analyze some files in a zip file, then copilot usually extract the content somewhere grep through files and then need to cleanup.

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。