Studio: make tab navigation feel immediate - #7271
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d4c9fd5d3
ℹ️ 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".
There was a problem hiding this comment.
Code Review
This pull request introduces performance optimizations and caching mechanisms across several frontend features, including auth guards, sidebar navigation preloading, chat projects, data recipes, export checkpoints, and hub feed results. Specifically, it implements request deduplication and in-memory caching to reduce redundant API and database calls. The review feedback suggests guarding the sidebar's route preloading (onIntent) so it does not trigger when a navigation item is disabled, and avoiding setting the loading state during background refreshes in useChatProjects to prevent UI flickering.
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.
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
|
Pushed a small follow-up to the assets mount.
In practice browsers do not range request the hashed JS and CSS assets, so this is hardening rather than a user facing bug, but it keeps the mount spec correct. |
for more information, see https://pre-commit.ci
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! 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". |
Resolves the hub-page.tsx import conflict from unslothai#7271 (immediate tab navigation). Keeps the PR's chat + hf-token-store imports and adds main's new hub-feed-store import (isChannelEntryFresh, useHubFeedStore, used by the merged tab-navigation body); drops main's duplicate hf-token-store import since the PR already imports hfApiToken/useHfTokenStore from ./stores.
Switching tabs in Unsloth Studio can feel slow, especially when Studio runs on one computer and the browser is on another. Opening Projects from Hub or Chat can take a couple of seconds before the cards appear. Hub, Recipes, and Export can also look like they reload or resize whenever they are reopened.
What changed
First visits now start sooner:
Returning to a page is also faster:
Authentication is still reconciled periodically, protected API requests remain authenticated, and cached Hub results stay scoped to the channel and token that produced them.
Verification
index.html, and a healthy backend.