anthropics / anthropics/claude-code
Permission dialog presents machine-composed commands as unreadable monochrome text
- 主要语言
- Python
- 星标
- 145k
- 派生
- 23.1k
- PR 合并指标
- PR 指标待抓取
描述
The bash-approval dialog renders dense compound commands in a small plain-text box: no syntax coloring, no structural line-breaking, no path/verb emphasis — inside VS Code, whose native TextMate/semantic highlighting the extension bypasses on exactly this surface. The result defeats the dialog's purpose: an unreadable consent prompt produces ratification-by-fatigue, not review — the final human safety check fires without any checking happening. The fix is available at composition time: the extension composed the command, so it knows the intent and structure. Render a one-line plain-language summary of what the command does above the raw text, break compound commands at pipes and && (one operation per line), highlight paths and write-verbs, and pass the raw text through the host's existing shell grammar. Summarize-then-show is already how Claude Code's own reports work; the approval dialog is the one surface that forgot the doctrine.
贡献指南
这个仓库没有索引到贡献指南
调研方向
No files, tests, or entry points are named in the issue. Start by locating the bash-approval dialog and how composed commands are passed into it, then trace whether VS Code shell highlighting can be reused there. Done means the dialog shows a plain-language summary, splits compound commands at pipes and &&, emphasizes paths/write verbs, and still displays the raw command.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- bash, python, vscode
- 领域
- developer-experience, frontend, security
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 32/100