Skip to content

Studio: use the UI font scale tokens in the Agents settings tab - #7462

Merged
danielhanchen merged 1 commit into
mainfrom
fix/agents-tab-font-scale-tokens
Jul 26, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/agents-tab-font-scale-tokens

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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.

studio/frontend/src/features/settings/tabs/agents-tab.tsx

  text-[11px]  ->  text-ui-11    avatar initials
  text-[10px]  ->  text-ui-10    "default" pill
  text-[10px]  ->  text-ui-10    "configured" pill

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_utilities guards exactly this, so Repo 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/, excluding test_cli_repo_variant.py which fails to collect locally on an unrelated typer issue:

  • without this change: 9 failed, 1729 passed
  • with this change: 8 failed, 1730 passed

Diffing the two failure sets, the only difference is test_no_raw_pixel_text_utilities moving to passing. Nothing else changes, in either direction. tests/studio/test_ui_font_scale_contract.py on its own is 11 passed.

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.
@danielhanchen

Copy link
Copy Markdown
Member Author

Note on the red Repo tests (CPU) here: this PR fixes the font-scale half of the breakage, and the remaining failures are the other half, which #7461 fixes.

On this branch test_no_raw_pixel_text_utilities passes and the only failures left are the twelve ROCm routing errors:

ERROR tests/studio/install/test_rocm_rdna_routing.py::test_detect_gpu_target[gfx1200] - AssertionError: child produced no result.
ERROR tests/studio/install/test_rocm_rdna_routing.py::test_device_type_is_hip     - AssertionError: child produced no result.

Those come from bitsandbytes picking a GPU backend at import time under the ROCm spoof and dying on a CPU-only runner, which #7461 fixes by pre-importing it while the device probes are still honest. So the two PRs are mutually blocking and neither can show a green job until one lands. I applied both on top of main locally and they compose.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: d7c6a3187d

ℹ️ 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".

@danielhanchen
danielhanchen merged commit e39cc5b into main Jul 26, 2026
39 of 42 checks passed
@danielhanchen
danielhanchen deleted the fix/agents-tab-font-scale-tokens branch July 26, 2026 11:54
danielhanchen added a commit to Imagineer99/unsloth that referenced this pull request Jul 26, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants