github / github/copilot-cli

subagent permission approval lacks context and is confusing

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

描述

### Describe the bug

Linux subagents can run commands that the permission pattern only captures "/" as the directory which is super dangerous, without giving me the exact command will be run and context around it like a regular agent.

### Affected version

_No response_

### Steps to reproduce the behavior

1. run copilot-cli
2. ask it to run a command in subagent that require additional permission
3. find that permission itself got prompted, but reasoning/context isn't

### Expected behavior

I should be able to see which agent and its full glory

### Additional context

_No response_

贡献指南

打开贡献指南

调研方向

首先按照列出的 copilot-cli 步骤复现权限提示,然后跟踪 subagent 的权限审批流程。完成的标准是:提示中显示完整命令、agent 身份、相关推理或上下文,以及实际的目录范围,而不是仅显示 "/"。

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

评估

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

把新 issue 发到你的邮箱

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