anthropics / anthropics/claude-code

Permission dialog presents machine-composed commands as unreadable monochrome text

Ouverte
#92,243 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area:permissions duplicate platform:vscode
Langage dominant
Python
Étoiles
145k
Forks
23.1k
Métriques de merge des PR
Métriques de PR en attente

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
bash, python, vscode
Domaine
developer-experience, frontend, security
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
32/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.