github / github/copilot-cli

Title: /allow-all does not suppress bash tool execution prompts

未关闭
#2,955 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area:permissions
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

### Describe the bug
After running `/allow-all`, the CLI still shows a permission dialog
("Do you want to run this command?") for every bash/shell tool call.

### Steps to reproduce
1. Launch `copilot`
2. Run `/allow-all`
3. Ask Copilot anything that triggers a shell command
4. Permission dialog still appears for each command

### Expected behavior
No prompts after `/allow-all` — all tools, paths, and URLs should be
pre-approved for the session.

### Actual behavior
Every bash tool call still requires manual approval. `/reset-allowed-tools`
followed by `/allow-all` does not fix it.

### Workaround
Use native built-in tools (view, grep, glob) instead of bash where possible.

### Environment
- OS: macOS

### Affected version

GitHub Copilot CLI 1.0.35.

### Steps to reproduce the behavior

1. Launch `copilot`
2. Run `/allow-all`
3. Ask Copilot anything that triggers a shell command
4. Permission dialog still appears for each command

### Expected behavior

No prompts after `/allow-all` — all tools, paths, and URLs should be
pre-approved for the session.

### Additional context

### Actual behavior
Every bash tool call still requires manual approval. `/reset-allowed-tools`
followed by `/allow-all` does not fix it.

### Workaround
Use native built-in tools (view, grep, glob) instead of bash where possible.

### Environment
- OS: macOS

贡献指南

打开贡献指南

调研方向

Start by reproducing the behavior in the copilot CLI on macOS with version 1.0.35: run /allow-all, then trigger a bash or shell tool call. Trace the permission handling for shell tools and verify that /reset-allowed-tools followed by /allow-all is covered. Done means shell tool calls no longer show approval prompts during the session.

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli, security
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
62/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。