Repository navigation
Studio: make the rule closing a thinking trace readable - #11424
Merged
Merged
Conversation
The line between the last trace and the answer was --border at 60%, which lands 14/255 off the dark background and 19/255 off the light one. It reads as an artefact rather than a divider, in both modes. Full --border in both places that draw it: 24/255 in dark and 31/255 in light, about 1.7x the separation, and the same token every other border in the app uses.
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. |
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
) The line between the last trace and the answer was --border at 60%, which lands 14/255 off the dark background and 19/255 off the light one. It reads as an artefact rather than a divider, in both modes. Full --border in both places that draw it: 24/255 in dark and 31/255 in light, about 1.7x the separation, and the same token every other border in the app uses. Co-authored-by: Unsloth <[email protected]>
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.
The rule closing a thinking trace, just above the answer, was
border-border/60. Measured against the real backgrounds by compositing it and reading the pixels back:rgb(24,24,24)rgb(254,254,253)/60(before)rgb(38,38,38), 14/255rgb(235,240,237), 19/255rgb(48,48,48), 24/255rgb(223,231,227), 31/25514 and 19 steps out of 255 is close enough to the background to read as an artefact rather than a divider, which is the whole job of the line.
Changes
Both places that draw it take the full token:
ReasoningEndRuleinreasoning.tsx, and the copy intool-group.tsxthat draws the same rule when tool calls are folded into Thinking. About 1.7x the separation in both modes, and the same--borderevery other border in the app already uses, so nothing new is introduced to keep in sync./80was the other candidate and sits between the two, but it keeps the line off the token for no gain.Testing
Compared
/60,/80and the full token side by side onbg-backgroundin both themes against the built stylesheet, and the contrast figures above are read off a canvas rather than computed by hand. Typecheck clean,thinking-foldpasses (22 tests). The stylesheet is byte-identical, since both utilities already existed; only the two class strings changed.