Repository navigation
feat(studio): show MLX versions in Settings - #15369
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. |
Settings > System listed llama.cpp, whisper.cpp and audio.cpp under Engines and torch / transformers under Environment, but nothing about the MLX stack that runs models on Apple Silicon. Engines now has a read-only MLX row with the core mlx version (from /api/system/hardware), and Environment lists mlx-lm and mlx-vlm next to Torch and Transformers (from /api/system ml_packages). All three show only where the package is installed, so other hosts are unchanged. The MLX row never offers an update since MLX is a Python dependency, not a managed engine binary.
65a71bb to
57b3af4
Compare
…n logout redirect aborts it (#15398) ## Problem `Chat UI Tests (extra)` fails intermittently in `tests/studio/playwright_multi_account.py`, always at the same step: the `/login` navigation right after the test logs the owner out. ``` File "tests/studio/playwright_multi_account.py", line 119, in run page.goto(f"{BASE_URL}/login") playwright._impl._errors.Error: Page.goto: net::ERR_ABORTED at http://127.0.0.1:18894/login ``` Seen on #15294 (job 121303172631) and #15369 (job 121656269753). Neither PR touches auth, and other runs of the same job pass. ## Why `log_out()` revokes the token and clears it from `localStorage` while the chat page is still open. The page's pending and polling requests then get 401, and `redirectToAuth` in `features/auth/api.ts` sends the page to `/login` itself, at the same moment the test starts its own `/login` navigation. Whichever navigation loses is aborted, so the test fails with `ERR_ABORTED` even though the page ends up on `/login`. A small local reproduction with independent timings did not hit the race, so I am not claiming the exact interleaving. The failing line and the error match this path. The product is right to redirect a logged-out page to `/login`. What the test needs is to be on the login page; how it gets there doesn't matter. ## Fix A small `open_login(page)` helper is used for the two `/login` navigations that follow a log-out: the one at line 119 and the one inside `login()`. - On `ERR_ABORTED` only, it waits for the page to settle and navigates once more. - Any other error, or a second abort, still fails. The assertions that follow (the username field, the setup code login and the account isolation checks) are unchanged, so this cannot pass a page that did not reach the login screen. ## Verification Against a local page with Playwright's own `route.abort("aborted")`, which produces exactly `net::ERR_ABORTED`: | | result | |---|---| | plain `page.goto`, 1 abort | raises `net::ERR_ABORTED` (the CI failure) | | `open_login`, 1 abort | reaches `/login` | | `open_login`, 2 aborts | raises `net::ERR_ABORTED` | | `open_login`, no abort | reaches `/login` | The Playwright driver guards (`test_playwright_suites_run_in_ci.py`, `test_playwright_server_lifecycle.py`, `test_click_forced.py`, `test_playwright_brand_labels.py`): 94 passed. ruff format and check are clean.
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ 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 review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ 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". |
[skip ci]
Summary
Settings > System lists llama.cpp, whisper.cpp and audio.cpp under Engines and Torch / Transformers under Environment, but says nothing about the MLX stack that runs models on Apple Silicon. When a model fails to load or behaves differently on a Mac, the MLX, mlx-lm and mlx-vlm versions are the first thing to check, and today they are only visible from a terminal.
This adds them where they belong:
mlxversion, next to the other runtimes.All three appear only where the package is installed, so Linux and Windows hosts look exactly as before.
Screenshots
Settings > System on an Apple Silicon Mac.
main)Changes
get_package_versions()also reportsmlx, soGET /api/system/hardwareversions.mlxcarries it.useHardwareInfoexposes it asmlx.GET /api/systemml_packagesalso readsmlx_lmandmlx_vlm. As with torch and transformers, a missing package is omitted rather than reported asnull.EngineVersionsSectionadds the MLX row and hides it whenmlxis absent. Older backends that do not send the key also hide it.EnvironmentSectionrenders the mlx-lm / mlx-vlm rows only when present, instead of the "Not installed" fallback Torch and Transformers use, so non-MLX hosts get no extra rows.settings.about.mlxVersion,settings.resources.environment.mlxLm/mlxVlm) in every locale. Package names stay untranslated, like "llama.cpp" and "Transformers".Design notes
/api/systempoll stays cheap.Validation
/api/systemdropping or misspellingmlx_lmormlx_vlm;mlx;MLX Version 0.32.4, and Environment showsmlx-lm 0.32.2andmlx-vlm 0.7.8(screenshots above).Before / after
Settings > About on Linux, merge base
2b1476fcbvs head90b3b3e52, with the samemlx0.32.4,mlx-lm0.32.2 andmlx-vlm0.7.10 installed in both Studios.Engines gains an "MLX Version" row:
Environment gains "mlx-lm" and "mlx-vlm" rows:
On a host without MLX installed none of these rows appear, so the page is unchanged there.