Repository navigation
Studio: put the Context slider on its own row in the Run settings sidebar - #18235
Merged
danielhanchen merged 2 commits intoNov 18, 2026
Merged
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
Member
Author
|
@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". |
This was referenced Nov 18, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 18, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 18, 2026
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.
Problem
Since #17840, the Context control in the Run settings sidebar is squeezed into one row with its label and value. The sidebar is too narrow for that, so the slider shrinks to its thumb (16 px wide at a 1440 px window). When a number is set, the reset icon and the thumb share the same small gap.
Cause
The model picker's Run settings and the chat sidebar both render
GgufContextLengthSettinginmodel-config-page.tsx. #17840 changed that component to one row: label, slider with fixedml-12 mr-7margins, then the value field. The layout was made for the wider model picker, and the component did not know which surface it was in.Fix
GgufContextLengthSettingtakes astackedprop.ModelConfigPagepassesstacked={variant === "sidebar"}.context-mode-ux.test.tsis updated for the new structure, with a test that the sidebar uses the stacked layout.Before and after
At Auto, the sidebar slider goes from 16 px to the full panel width (225 px):
With a number set (16,384), the reset icon stays next to the label and the thumb shows where the value sits:
The model picker's Run settings are unchanged (same row and slider position on both sides):
Verification
npm run typecheckandnpm run buildpass.tests/context-mode-ux.test.tspasses (8/8). The new sidebar test fails against main's source.Independent before/after check
Two isolated Studio installs (merge base 7c40c0a vs head 4d0a994), Qwen3-0.6B Q4_K_M GGUF loaded on CPU, 1440x900 window. The Context slider measures 16 px wide on the merge base and 225 px on this branch, both at Auto and at a custom value (40,576 tokens).
At Auto:
With a custom context set, reset icon beside the label: