Repository navigation
Fix the four Studio reds on main - #8072
danielhanchen merged 1 commit into
Conversation
Repo tests (CPU) is red on every open PR, and none of it is the PRs. - unslothai#8025 added Minus/Square/X to the titlebar's lucide-react import; the contract pinned the whole import line. Check the two icon names it actually cares about instead. - unslothai#8007 added mlxRuntimeStateFrom to chat-adapter.ts; the autoload harness has no stub for it, so 16 scenarios died as ReferenceErrors. Stub mirrors the real one: a non-MLX response retires the verdict but leaves mlxKvBits absent, and returning {} would keep a stale width alive and pass for the wrong reason. - model-config-page.tsx grew two raw text-[11px] utilities, which ignore the UI font size preference. Swapped for the text-ui-11 token.
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! 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". |
|
Cross-platform CI on a staging repo, so this does not sit in the org queue:
The Playwright job drives One job is red and it is not this branch: |
|
Added a fourth red, found when this branch's own CI came back with the four Python jobs failing on something it does not touch.
The computed value has to win rather than the attribute: the block just above it deliberately blanks Unsloth's auto-applied bundled family template so the frontend does not adopt it as editable state and re-send it as an explicit override for a later, unrelated model. So the helper's dict is hoisted to a local and that one key is overridden before the spread.
|
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 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". |
Repo tests (CPU)is currently red on every open PR, and none of it comes from those PRs. Three contracts on main are failing:test_desktop_reliability_frontend_contract.py::test_desktop_titlebar_separates_navigation_from_sidebar_brandtest_chat_autoload_failure_gate.pytest_ui_font_scale_contract.py::test_no_raw_pixel_text_utilitiesTitlebar import
#8025 added the window controls and widened the import to
The contract pinned the whole line as a literal, so it went red on a change that did exactly what it should. It now parses the import and asserts the two icon names it actually cares about are in it, so adding a sixth icon does not break it again.
Autoload harness
#8007 added
mlxRuntimeStateFromtochat-adapter.ts. The autoload harness slices that region and supplies its imports itself, so every one of its 16 scenarios died on a bareReferenceError, which the retry loop scores as a failed load. The test already names the missing symbol rather than reporting a wrong-model assertion, which is how this was quick to place.The stub mirrors
mlx-runtime-state.tsrather than returning{}. A non-MLX response retires the verdict but leavesmlxKvBitsabsent, because the width is dormant there rather than wrong, and a preset carrying it has to survive the round trip. An empty object would keep a stale width alive and let a scenario pass for the wrong reason.Raw pixel text
model-config-page.tsxgrew twotext-[11px]utilities. Those ignore the UI font size preference, which is the whole point of thetext-ui-*tokens inindex.css. Swapped fortext-ui-11, which is the same 11px at scale 1.Checks
tests/studio: 2668 passed, 3 skipped. Was 18 failed before.text-[Npx]utilities remain anywhere understudio/frontend/src, and no other harness that sliceschat-adapter.tsreachesmlxRuntimeStateFrom.test_compact_dropdown_submenus.py,test_usage_examples_agent_detection_contract.py,test_model_picker_contracts.py). They pass today and are single-symbol module imports, so they are much less likely to gain siblings the way the lucide icon set did. Left alone to keep this diff to the reds.