mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
When deleteConfig was called, the auth profile written to auth-profiles.json during addConfig was never cleaned up, leaving orphaned credentials on disk indefinitely. Add onApiKeyDeleted callback to LLMConfigStoreDeps and call it in deleteConfig with the removed config so callers can clean up the corresponding auth profile. Wire up deleteAuthProfile in both the CLI HTTP server and the Desktop internal API. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>