anthropics / anthropics/claude-code

Permission dialog presents machine-composed commands as unreadable monochrome text

Đang mở
#92,243 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:permissions duplicate platform:vscode
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
bash, python, vscode
Lĩnh vực
developer-experience, frontend, security
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
32/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.