Skip to content

Fix desktop provider resolution across project configs#4516

Open
yuanyuanlove wants to merge 1 commit into
esengine:main-v2from
yuanyuanlove:bugfix-20260615-provider-merge-access
Open

Fix desktop provider resolution across project configs#4516
yuanyuanlove wants to merge 1 commit into
esengine:main-v2from
yuanyuanlove:bugfix-20260615-provider-merge-access

Conversation

@yuanyuanlove

Copy link
Copy Markdown

Summary

  • merge user and project [[providers]] by provider name so project configs do not drop global custom providers
  • canonicalize desktop provider_access handling across add/remove/settings display and fallback resolution
  • fail cleanly when no accessible model fallback exists instead of silently keeping a stale tab model

Testing

  • go test ./internal/config -run TestLoadForRootMergesProvidersAcrossUserAndProjectConfigs
  • go test -run 'TestBuildTabControllerErrorsWhenNoAccessibleFallbackExists|TestRebuildKeepsExistingControllerWhenNoAccessibleFallbackExists|TestSettingsTreatsLegacyExplicitProviderAccessAsAdded|TestBuildTabControllerFallsBackWhenSavedTabProviderAccessWasRemoved|TestSetTokenModeFallsBackWhenTabProviderAccessWasRemoved' ./... (from desktop/)

@github-actions github-actions Bot added desktop Wails desktop app (desktop/**) config Configuration & setup (internal/config) v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config Configuration & setup (internal/config) desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants