Skip to content

Releases: huhu618835/cw-switch

Release list

v1.0.1

Choose a tag to compare

@huhu618835 huhu618835 released this 12 Jun 14:37

🐛 Bug Fix

修复 API Key 保存后 CodeWhale 仍报「API 错误」的问题。

问题

通过 cw-switch 保存 API Key 时,新密钥写入了 secrets.json
config.toml 中残留的旧 api_key 字段未被清理,
导致 CodeWhale 优先读取了旧 key,认证失败。

修复

  • 保存或删除 API Key 后,自动清空 config.toml 中的 api_keyproviders.{provider}.api_key
  • 确保 CodeWhale 正确回退到 secrets.json 读取最新密钥