You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
P1: fetchMLXModels() doesn't pass API key to MLX /v1/models — returns empty on auth-enabled MLX #46
FusionCodeBridge.fetchMLXModels() makes a plain GET request to http://localhost:11434/v1/models without passing any Authorization header. When MLX has API key auth enabled (the default setup), this request returns 401 and the function returns an empty array.
Impact
Model list fallback to MLX always fails when auth is configured
Users see no models when fusion-code is offline
Evidence
privatefuncfetchMLXModels()async->[String]{guardleturl=URL(string:"http://localhost:11434/v1/models")else{return[]}do{let(data, _)=tryawaitURLSession.shared.data(from:url) // No auth!
Suggested Fix
Add Authorization header using FusionConfig.shared.mlxResolvedApiKey:
Activity
dahai80 commentedon Aug 3, 2026
Cross-filed to fusion-studio: dahai80/fusion-studio#106 — this is a Swift bug in FusionCodeBridge, not fixable from fusion-code.
refactor(screens): extract handleRemoteInit callback body (audit 1.1.…
refactor(screens): extract reset-loading-state callback (audit 1.1.1 …