Repository navigation
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces tracking and handling of native path token expiration for local GGUF models across the chat interface, including automatic cleanup of expired tokens, validation during model loading/staging, and new contract tests. The review feedback suggests optimizing the token cleanup effect in chat-page.tsx by adding activeNativePathToken to the dependencies to prevent redundant timers and clamping the delay to avoid browser setTimeout overflow bugs.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b91f7e387b
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 840fa31a88
ℹ️ 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".
|
Ran a focused check here: https://github.com/Imagineer99/unsloth/actions/runs/28958822605 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e8f02b9b26
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if ( | ||
| isLoadedGguf && | ||
| state.activeGgufVariant == null && | ||
| !isDirectGguf && | ||
| !hasNativeToken |
There was a problem hiding this comment.
Gate native GGUF reloads on token even when a variant exists
When a picked/dropped native GGUF has a quantized filename, the backend can report a derived gguf_variant from the file path, so activeGgufVariant is non-null even though the durable identity is still only the native path token. Fresh evidence beyond the prior basename issue is that this new guard skips the reselect branch whenever activeGgufVariant is set; after the 15-minute token expires, Apply then calls selectModel with the native display basename and no token, so the reload still goes down the invalid/wrong-file path instead of asking the user to reselect the file.
Useful? React with 👍 / 👎.
Summary
Preserves local GGUF identity when Studio reloads model settings, especially after changing Context Length. Expired native path tokens now stop at the UI with a reselect prompt instead of being sent back through the reload path.
Motivation
Local
.ggufloads use short-lived native path tokens. The settings reload path treated those tokens like durable loaded-model identity, so Apply could try to reload with an expired token and lose the original GGUF source behavior.Fixes #6855.
Changes
activeNativePathTokenExpiresAtMsand shared GGUF/native-token helpers instudio/frontend/src/features/chat/stores/chat-runtime-store.ts.use-chat-model-runtime.tsand asks the user to pick or drop the.ggufagain.chat-page.tsxto use a shared loaded-GGUF classifier and only pass a native path token when it is still usable.chat-settings-sheet.tsxto use the same loaded-GGUF classifier as the reload path.tests/studio/test_chat_native_gguf_reload_contract.pyto lock the reload/token-expiry contract.