Repository navigation
Sonny: one visual system across every terminal theme - #405
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4ca8407cc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Color repeats what a mark already says, and each of the 16 colors keeps one meaning: yellow is only what needs you (needs you is a yellow ● in /status too; queued, notices, note marks and ask numbers lose it), green only what worked (no green quote bar, "recommended" or "Why N:"), magenta only you, blue only agents (no blue git rename). Failures keep a red mark and their words in the text color. The welcome's commands are cyan instead of a fixed amber that read at 1.7:1 on white. Dim text is a gray worked out from the theme's own foreground and background (OSC 10 and 11, asked at start), 4.5:1 where the theme allows, as Codex draws its secondary text; a terminal that does not say keeps SGR dim. Diffs carry a - or + beside the bar and tint from the theme's background and its own red and green (OSC 4). NO_COLOR is honored: no color, attributes kept, the find highlight reversed and the portrait left out. Markdown is prose: headings bold with their # marks dim, no hue. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGoDWwmZ3vbZxuMGcn
…_COLOR Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGoDWwmZ3vbZxuMGcn
…d picture keeps its id Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGoDWwmZ3vbZxuMGcn
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGoDWwmZ3vbZxuMGcn
5fe12f6 to
15e059d
Compare
Applies the visual system George approved on 30 Oct: the 16 colors still carry one meaning each, color repeats what a mark already says, and what Sonny computes for itself starts from the terminal's own theme colors. Sonny only; the daemon is untouched.
What changes
Rule fixes (one meaning per hue)
●in/statustoo (was magenta◐); waiting, queued and rate-limited◌are dim, not yellow./backgroundnotices, margin✎marks, ask option numbers, the pane's jumped-to line number (now reversed).◎; cyan leaves the picker›(bold, as other pickers) and the trigger↻; blue leaves the git rename letter./configand MCP errors (✗ …).Muted text from the theme (
look.rs,term.rs)secondary_text_style. A terminal that does not answer keeps SGR dim, and so does a theme that switched since start.Diffs
-or+beside the bar, so a diff reads without color and with red-green color blindness.NO_COLOR (no-color.org)
Markdown is prose
#marks dim, so the level shows (Codex keeps the marks too). They have no hue: blue is for agents. HTML<h1>–<h6>match.Screenshots
Real Sonny from this branch running a scripted model, replayed into xterm.js with each theme. Each "after" was recorded with Sonny reading that theme's own colors.
Not changed
/usagechart keeps magenta, cyan and blue for its three stacked series. A stacked bar needs three fills, and there are no three neutral shades that read in every theme. The legend names each series.ansitheme), git status letters and the black-on-yellow find highlight follow their own conventions.Tests
cargo test -p sonnypasses 472 tests, andcargo clippy -p sonny --all-targets -D warningsandcargo fmt --checkare clean. New tests cover:Diff, heading and status tests are updated for the
-/+column, the#marks and●.