fix(watcher): update Gemini provider name to "gemini-cli" in file synthesizer logic

This commit is contained in:
Luis Pater
2026-06-21 09:25:03 +08:00
parent 1f21f946ba
commit 31549af180

View File

@@ -78,7 +78,7 @@ func synthesizeFileAuths(ctx *SynthesisContext, fullPath string, data []byte) []
t, _ := metadata["type"].(string)
provider := strings.ToLower(strings.TrimSpace(t))
if provider == "gemini" {
return nil
provider = "gemini-cli"
}
if ctx.PluginAuthParser != nil {
auths, handled, errParse := parsePluginFileAuths(ctx.PluginAuthParser, pluginapi.AuthParseRequest{
@@ -115,7 +115,7 @@ func synthesizeFileAuths(ctx *SynthesisContext, fullPath string, data []byte) []
return auths
}
}
if provider == "" {
if provider == "" || provider == "gemini-cli" {
return nil
}
label := provider