Repository navigation
Studio: drop a duplicate import that breaks the frontend build - #8553
Merged
Merged
Conversation
model-selector.tsx imports HubModelPicker and hasDownloadedModels twice from ./model-selector/pickers, so tsc fails with TS2300 Duplicate identifier and the vite build exits 2. That takes down the Tauri Linux debug build, and both the linux and mac install jobs, which run studio setup and hit the same npm run build. Introduced by #8470, which added the second copy above the pill-tabs import while the first was already sitting above the missing-external-model import. Keep the copy that sits in the existing alphabetical order inside the ./model-selector/ group and remove the stray one.
This was referenced Aug 12, 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
model-selector.tsximportsHubModelPickerandhasDownloadedModelsfrom./model-selector/pickerstwice, at line 46 and line 53.tscrejects that:The vite build exits 2, which currently fails three jobs on every PR:
Tauri Linux debug build (no codesign), at theFrontend build (npm ci, vite)steplinux ubuntu2404-arm-root, atInstall (root)mac macos-26 / mask / file, atInstallThe two install jobs run
studio setup, which runs the samenpm run build, so all three are the one error:Introduced by #8470, which added the second copy above the
pill-tabsimport while the first was already sitting above themissing-external-modelimport.Fix
Remove the stray copy at line 46 and keep the one at line 53, which is already in alphabetical order inside the
./model-selector/import group (audio-picker-policy,model-catalog,pickers,pill-tabs,source-tabs).One line deleted, no behavior change. Both symbols are still imported once and both call sites (
hasDownloadedModels()and<HubModelPicker>) resolve unchanged.