Feature request: syntax highlighting in permission approval prompts
Resolved 💬 2 comments Opened Jun 7, 2026 by azehnwirth Closed Jun 10, 2026
Summary
When Claude Code requests permission to run a tool (e.g. a Bash command), the approval prompt displays the command as plain unstyled text. It would be helpful to apply the same syntax highlighting that is already used for code blocks in Claude's responses.
Current behaviour
The permission prompt shows the command as a plain string, e.g.:
Allow Bash(find . -name "*.ts" -exec grep -l "TODO" {} \;)?
No syntax colouring is applied, making it harder to quickly read and review complex commands before approving.
Desired behaviour
The command in the approval prompt is rendered with syntax highlighting appropriate to the tool — e.g. shell/bash highlighting for Bash(...) calls, similar to how code blocks are rendered in the main conversation view.
Why it's useful
- Easier to visually parse complex commands at a glance (quoted strings, flags, pipes, substitutions all stand out)
- Reduces the chance of approving a command that is harder to read in plain text
- Consistent with the syntax highlighting already available in conversation code blocks (
syntaxHighlightingDisabledsetting)
Environment
- Claude Code version: latest (
latestauto-update channel) - Platform: macOS
- Terminal: Fish shell
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗