Color terminal-command prompt input like a running tool#471
Merged
Conversation
When the prompt starts with ! or !!, style the entire input (not just the prefix) with the theme's running-tool accent color so it is obvious the submission will execute a shell command.
Match the new terminal-command input coloring: the prompt's left border in shell mode now uses the theme's running-tool accent color instead of the theme accent, via a new tau-tool-running CSS variable.
Swap the tau prompt prefix for a dollar sign, tinted with the theme's running-tool accent color, whenever the input is a terminal command. The running animation still takes precedence while the agent works.
alejandro-ao
marked this pull request as ready for review
July 24, 2026 16:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When the prompt input starts with
!(or!!) — meaning submitting will run a shell command instead of messaging the model — the entire input text and the prompt's left border are now rendered in the theme's running-tool accent color, and theτprompt prefix becomes a matching$(roles.tool.border: amber#8a7a52in tau-dark,#a16207in tau-light,#ffd000in high-contrast). Previously only the!/!!prefix itself was tinted with the theme accent color.How it improves user experience
The
!prefix is easy to type accidentally or forget about while composing a longer command. Coloring the whole input, its left border, and a$prompt prefix the same orange/amber as a tool while it is running gives an immediate, glanceable signal that the submission will execute in the shell, consistent with colors the user already associates with tool execution. Multi-line commands are fully colored too, and the color is derived from the active theme so custom themes stay consistent.Issues
No tracking issue — small UX polish.
Manual validation
uv run tau(orpython main.pyequivalent /tau) and focus the prompt.!pwd— the whole input and its left border turn amber/orange, and theτprefix becomes a$as soon as!is the first character.!echo athen newline +echo b) — both lines stay colored.!or type a normal message — input returns to the default prompt color.$when idle in shell mode.tau-dark,tau-light,high-contrast) and repeat — the input follows each theme's running-tool color.Checks
uv run pytest— 1145 passeduv run ruff check .— passeduv run ruff format --check .— passeduv run mypy— no issues