Repository navigation
Studio: use the UI font scale tokens in the Agents settings tab - #7462
Conversation
The Agents tab landed with three raw px text utilities, so its avatar initials and the two status pills ignore the UI font size preference and stay fixed while the rest of the dialog scales. Swap them for the existing text-ui-11 / text-ui-10 tokens, which is what the rest of the frontend already uses (149 and 128 call sites respectively). This is what test_no_raw_pixel_text_utilities guards, so Repo tests (CPU) has been red on main since the tab was added, and every open PR inherits the failure.
|
Note on the red On this branch Those come from |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! 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". |
Resolve the agents-tab conflict from unslothai#7462 by keeping the model picker and adopting its UI font scale tokens, so the tab still honours the font size setting.
The Agents settings tab landed with three raw px text utilities, so its avatar initials and the two status pills ignore the UI font size preference: they stay fixed while the rest of the dialog scales.
This swaps them for the
text-ui-*tokens the rest of the frontend already uses.Those tokens are the established convention, with 149 and 128 existing call sites respectively.
Why this is worth landing on its own
tests/studio/test_ui_font_scale_contract.py::test_no_raw_pixel_text_utilitiesguards exactly this, soRepo tests (CPU)has been red on main since the tab was added, and every open PR inherits the failure regardless of what it touches.Verification
Run from the repo root against
tests/studio/, excludingtest_cli_repo_variant.pywhich fails to collect locally on an unrelatedtyperissue:Diffing the two failure sets, the only difference is
test_no_raw_pixel_text_utilitiesmoving to passing. Nothing else changes, in either direction.tests/studio/test_ui_font_scale_contract.pyon its own is 11 passed.