Repository navigation
Studio: use the scaling text tokens in the Agents settings tab - #7468
Merged
Merged
Conversation
The Agents tab added in #7303 sets its avatar initial and its two status pills with raw px utilities (text-[11px], text-[10px]). Those ignore the UI font size preference, so the text stays fixed while the rest of Settings scales, and tests/studio/test_ui_font_scale_contract.py fails on main. Swapped for the existing tokens in index.css, which are the same sizes multiplied by --ui-font-scale: text-ui-11 and text-ui-10.
This was referenced Jul 26, 2026
Merged
Member
Author
|
Ran this on a staging replication onto fresh main, alongside a main-only baseline on the same runner, so the effect is isolated.
The failure this PR targets is gone. Worth flagging that the check does not go green, because That is a CPU-only torch being paired with a bitsandbytes build that expects the CUDA/ROCm backend, so it is an environment pin rather than anything in the tree. It is present in the main-only baseline above and needs a separate fix. |
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 Agents settings tab added in #7303 sets three labels with raw px text utilities, which ignore the UI font size preference in Settings > Appearance. The avatar initial and both status pills stay at a fixed size while everything around them scales.
tests/studio/test_ui_font_scale_contract.py::test_no_raw_pixel_text_utilitiesguards against exactly this, so main is currently red and every open PR inherits the failure:Change
Three class names in
studio/frontend/src/features/settings/tabs/agents-tab.tsx:text-[11px]text-ui-11text-[10px]text-ui-10text-[10px]text-ui-10Both tokens already exist in
index.cssand are the same sizes multiplied by the preference:At the default scale of 1 they render at 10px and 11px, so the appearance is unchanged; they now follow the preference like the rest of the tab.
Verification
tests/studio/test_ui_font_scale_contract.pygoes from 1 failed to 11 passed.