Repository navigation
Studio: remember thinking Off after eject - #15093
Conversation
Fixes unslothai#14743 Eject resets the composer toggle to the family default, so loading the same checkpoint turned thinking back on. Pin the user's on/off choice per model (not the session-only persist:false path) and reuse it on load unless the model cannot turn thinking off.
|
The This PR adds about 0.4 KB transfer to the startup chunks, through the chat runtime store and the model picker files it touches. If that code really is needed on the first screen, raise |
The zustand store is only for tests and cross-tab sync. Chat load/save now uses a small localStorage helper so CI stays inside the startup bundle budget.
CI measured +135 B on the eager path for per-checkpoint thinking Off/On localStorage (unslothai#15093). Sync budget limits from main, then bump transfer with the measured growth.
Resolve bundle budget conflict for unslothai#15084 and unslothai#15093.
|
@danielhanchen Thanks for flagging the startup budget — agreed the thinking-pin helpers belong on the eager load path. Raised Latest push should be ready for Frontend build + bundle sanity when CI finishes. |
|
The latest merge of main into this branch ( Taking main's version of everything under |
The last merge of main left older copies of .github/workflows on this branch, including push and pull_request triggers on codeql.yml. Take main's .github tree so workflow-trigger lint matches main. The thinking Off/On pin stays on the eager chat path. It fits inside main's current startup bundle budget (6791.3 KB raw, 2046.4 KB transfer, 99 chunks), so that budget is left as main set it.
…ds fresh loads [skip ci]
[skip ci]
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. |
|
pre-commit.ci run |
…hinking [skip ci]
|
Codex Review: Didn't find any major issues. Bravo. 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". |
# Conflicts: # studio/frontend/src/features/chat/lib/apply-inference-status-to-store.ts
Summary
Fixes #14743
Loading a model, turning thinking off in the composer, ejecting, then loading the same checkpoint turned thinking back on. Eject resets the store to the family default, and a fresh load ignored the last user choice.
This keeps a per-model on/off pin (separate from reasoning effort pins). Reloading that checkpoint reuses Off or On. Temporary
persist: falsetoggles (Kimi search) do not write the pin. Models that cannot disable thinking (reasoning_always_on/reasoning_effort) still stay on.Test plan
node --experimental-strip-types --test tests/model-reasoning-preferences.test.ts tests/qwen-defaults-migration-safety.test.ts tests/chat-tool-selection-lifecycle.test.ts(115 passed)Before / after
Real Studio, two isolated installs (merge base
be64e0d78vs this branch),unsloth/Qwen3-0.6B-GGUFQ4_K_M on CPU, driven through the picker: load, turn Thinking off, eject, load the same model again.unsloth/Qwen3-0.6B-GGUF=falseA same-model reload (for example after changing context) keeps the value currently shown; the pin only seeds fresh loads, since switching chats restores a chat's own value without writing the pin.