Files
mystuff/devel/crush/patches/patch-internal_config_load_go
2026-07-08 18:38:17 +02:00

20 lines
861 B
Plaintext

Index: internal/config/load.go
--- internal/config/load.go.orig
+++ internal/config/load.go
@@ -287,14 +287,7 @@ func (c *Config) configureProviders(ctx context.Contex
switch {
case p.ID == catwalk.InferenceProviderAnthropic && config.OAuthToken != nil:
- // Claude Code subscription is not supported anymore. Remove to show onboarding.
- // RemoveConfigField persists the deletion to disk. The in-memory
- // state is kept consistent by the Providers.Del call below; any
- // concurrent reload that races with this write will also see the
- // removal because it re-reads from disk.
- store.RemoveConfigField(ScopeGlobal, "providers.anthropic")
- c.Providers.Del(string(p.ID))
- continue
+ prepared.SetupClaudeCode()
case p.ID == catwalk.InferenceProviderCopilot && config.OAuthToken != nil:
prepared.SetupGitHubCopilot()
}