Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ func (s *Server) UpdateClients(cfg *config.Config) {
}

total := authEntries + geminiAPIKeyCount + claudeAPIKeyCount + codexAPIKeyCount + vertexAICompatCount + openAICompatCount
fmt.Printf("server clients and configuration updated: %d clients (%d auth entries + %d Gemini API keys + %d Claude API keys + %d Codex keys + %d Vertex-compat + %d OpenAI-compat)\n",
log.Debugf("server clients and configuration updated: %d clients (%d auth entries + %d Gemini API keys + %d Claude API keys + %d Codex keys + %d Vertex-compat + %d OpenAI-compat)",
total,
authEntries,
geminiAPIKeyCount,
Expand Down
7 changes: 6 additions & 1 deletion sdk/cliproxy/auth/conductor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2159,7 +2159,12 @@ func (m *Manager) refreshAuth(ctx context.Context, id string) {
updated.NextRefreshAfter = time.Time{}
updated.LastError = nil
updated.UpdatedAt = now
_, _ = m.Update(ctx, updated)
// Use WithSkipPersist to avoid writing the refreshed token back to disk.
// The in-memory state is already updated; persisting here would trigger
// the file watcher, which calls reloadCallback -> UpdateClients, creating
// a write-back feedback loop that spams the log with "configuration updated"
// messages every ~1 minute per token.
_, _ = m.Update(WithSkipPersist(ctx), updated)
}

func (m *Manager) executorFor(provider string) ProviderExecutor {
Expand Down