mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-11-23 13:41:41 +08:00
docs(release): add v4.0.39 release notes
This commit is contained in:
1 parent
87c39ee1a6
commit
768eec9ca9
4 files changed
+183
No files matched your search
@@ -0,0 +1,50 @@
|
||||
# CC Switch v4.0.39
|
||||
|
||||
This release is mostly fixes. The **API key input** gets a copy button; **backups** can now have a total size limit, with the oldest removed first once it is exceeded; and when Claude Code uses **GPT-6.2 Sol / Astra** through Codex OAuth, the system prompt's cache hit rate is much higher.
|
||||
|
||||
Fixes also cover Claude Code and Claude Desktop native providers waiting up to 600 seconds before failover when the upstream stalls without output; memory used by usage and log collection growing without limit on very long streaming responses; the deep link import confirmation dialog still opening after merging its config failed; the Plugins page saying Codex isn't installed when only the Codex desktop app is present; the Plugins page creating empty config folders for apps that aren't installed; OpenCode Go's DeepSeek V4.1 Flash missing the `max` reasoning effort; popovers and dropdown menus flickering on rapid clicks; and more.
|
||||
|
||||
---
|
||||
|
||||
## New
|
||||
|
||||
### Copy the API key in one click
|
||||
|
||||
The API key input in the provider form now has a copy button ([#9232](https://github.com/farion1231/cc-switch/pull/9232)). It copies the key with leading and trailing spaces removed and shows a notice whether it succeeds or fails. It is hidden while the input is empty or can't be edited.
|
||||
|
||||
### Backup size limit
|
||||
|
||||
The backup settings have a new "Backup Size Limit" ([#9011](https://github.com/farion1231/cc-switch/pull/9011), related [#6706](https://github.com/farion1231/cc-switch/issues/6706)). The default is "No limit", so upgrading deletes no backups.
|
||||
|
||||
- With a limit set, once the backups folder grows past it, backups are deleted starting from the oldest.
|
||||
- The newest backup and any backup in use by a restore are always kept, so the folder can still exceed the limit when a single backup is larger than it.
|
||||
- The limit takes effect at the next backup or daily maintenance. Daily maintenance also removes temporary files older than 24 hours left behind by a backup that crashed midway.
|
||||
|
||||
---
|
||||
|
||||
## Changes
|
||||
|
||||
- **Higher cache hit rate for GPT-6.2 Sol / Astra when Claude Code goes through Codex OAuth** ([#9848](https://github.com/farion1231/cc-switch/pull/9848), see [#9847](https://github.com/farion1231/cc-switch/issues/9847)): the system prompt now goes in the first developer message, so the ChatGPT backend caches it together with the conversation. In testing, the hit rate was about 98% from the second turn on. Other models and API key routes are unchanged.
|
||||
- **Faster privacy filter** ([#9826](https://github.com/farion1231/cc-switch/pull/9826)): filtering results are unchanged.
|
||||
|
||||
---
|
||||
|
||||
## Fixes
|
||||
|
||||
- **Claude Code and Claude Desktop native providers waited up to 600 seconds before failover when the upstream stalled without output** ([#9754](https://github.com/farion1231/cc-switch/pull/9754)): these streaming requests used the non-streaming timeout. They now use the first-byte timeout (60 seconds by default), like other streaming requests.
|
||||
- **Memory used by usage and log collection kept growing on very long or never-ending streaming responses** ([#9846](https://github.com/farion1231/cc-switch/pull/9846), see [#9843](https://github.com/farion1231/cc-switch/issues/9843)): the buffer is now capped at 64 MiB, and parsing continues with what follows after an oversized event.
|
||||
- **The deep link import confirmation dialog still opened after merging its config failed** ([#9844](https://github.com/farion1231/cc-switch/pull/9844), see [#9841](https://github.com/farion1231/cc-switch/issues/9841)): now only the error is shown, without the confirmation dialog.
|
||||
- **The Plugins page said Codex isn't installed when only the Codex desktop app was present** (see [#9850](https://github.com/farion1231/cc-switch/issues/9850)): for example, with only the Codex desktop app (MSIX) installed on Windows. When no separately installed `codex` is found, the Plugins page and other places that use the Codex CLI now use the copy bundled with the desktop app. Install, upgrade and uninstall on the Apps page still manage only the separately installed Codex CLI.
|
||||
- **The Plugins page created empty config folders for apps that aren't installed** (see [#9852](https://github.com/farion1231/cc-switch/issues/9852)): opening the Plugins page created empty folders such as `~/.codex` and `~/.grok` even without Codex, Grok Build, OpenClaw, Pi or MiniMax Code installed. The folder is now created only after the CLI is found, and apps that aren't installed are still shown as not installed.
|
||||
- **OpenCode Go's DeepSeek V4.1 Flash was missing the `max` reasoning effort** (see [#9853](https://github.com/farion1231/cc-switch/issues/9853)): the preset now lists the three efforts `low`, `high` and `max` from OpenCode Go's model list, so OpenCode no longer falls back to the generic `low` / `medium` / `high`.
|
||||
- **Popovers and dropdown menus flickered on rapid clicks** ([#9176](https://github.com/farion1231/cc-switch/pull/9176), see [#9175](https://github.com/farion1231/cc-switch/issues/9175)): clicking again during the open or close animation no longer toggles it twice.
|
||||
|
||||
---
|
||||
|
||||
## Thanks
|
||||
|
||||
Thanks to [@H15teve](https://github.com/H15teve) (GPT-6.2 cache hits), [@minimote](https://github.com/minimote) (copying the API key), [@zayokami](https://github.com/zayokami) (backup size limit), [@vastStage](https://github.com/vastStage) (streaming request timeout), [@HaiYangBG1](https://github.com/HaiYangBG1) (streaming response memory, deep link import failure, test isolation), [@YUZHEthefool](https://github.com/YUZHEthefool) (faster privacy filter), [@Delta1035](https://github.com/Delta1035) (popover flicker), [@allenxu09](https://github.com/allenxu09) (review changes), [@SaladDay](https://github.com/SaladDay) (code cleanup) for their contributions.
|
||||
|
||||
Thanks to [@IndexEeve](https://github.com/IndexEeve), [@Thanatos-Z](https://github.com/Thanatos-Z), [@beiqixingnang](https://github.com/beiqixingnang), [@muchenkezhan](https://github.com/muchenkezhan) for issue reports and reproduction details.
|
||||
|
||||
For the full technical details, see the [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md).
|
||||
@@ -0,0 +1,50 @@
|
||||
# CC Switch v4.0.39
|
||||
|
||||
今回のリリースは修正が中心です。**API キー入力欄**にコピーボタンが付きました。**バックアップ**に合計サイズの上限を設定でき、超えると古いものから削除されます。Claude Code が Codex OAuth 経由で **GPT-6.2 Sol / Astra** を使うとき、システムプロンプトのキャッシュヒット率が大きく上がりました。
|
||||
|
||||
このほか、Claude Code と Claude Desktop のネイティブプロバイダーで上流が出力しないまま止まったとき、フェイルオーバーまで最大 600 秒待たされる問題、非常に長いストリーミング応答で使用量とログの収集に使うメモリが増え続ける問題、ワンクリックインポートのリンクで設定のマージに失敗しても確認ダイアログが開く問題、Codex デスクトップ版だけが入っているとプラグイン画面で Codex が未インストールと表示される問題、プラグイン画面がインストールされていないアプリの空の設定フォルダーを作る問題、OpenCode Go の DeepSeek V4.1 Flash に `max` の思考レベルがない問題、すばやくクリックするとポップオーバーやドロップダウンメニューがちらつく問題などを修正しました。
|
||||
|
||||
---
|
||||
|
||||
## 新機能
|
||||
|
||||
### API キーをワンクリックでコピー
|
||||
|
||||
プロバイダーフォームの API キー入力欄にコピーボタンが付きました([#9232](https://github.com/farion1231/cc-switch/pull/9232))。前後の空白を除いたキーをコピーし、成功しても失敗しても通知が出ます。入力欄が空のときや編集できないときは表示されません。
|
||||
|
||||
### バックアップの合計サイズ上限
|
||||
|
||||
バックアップ設定に「バックアップ合計サイズ上限」が追加されました([#9011](https://github.com/farion1231/cc-switch/pull/9011)、関連 [#6706](https://github.com/farion1231/cc-switch/issues/6706))。既定は「無制限」なので、アップグレードしてもバックアップは削除されません。
|
||||
|
||||
- 上限を設定すると、バックアップフォルダーがそのサイズを超えたときに、古いバックアップから順に削除されます。
|
||||
- 最新のバックアップと、復元に使用中のバックアップは常に残るため、1 つのバックアップが上限より大きい場合はフォルダーが上限を超えることがあります。
|
||||
- 上限は次回のバックアップか日次メンテナンスのときに適用されます。日次メンテナンスでは、途中でクラッシュしたバックアップが残した 24 時間以上前の一時ファイルも削除します。
|
||||
|
||||
---
|
||||
|
||||
## 変更
|
||||
|
||||
- **Claude Code が Codex OAuth 経由で GPT-6.2 Sol / Astra を使うときのキャッシュヒット率が向上**([#9848](https://github.com/farion1231/cc-switch/pull/9848)、[#9847](https://github.com/farion1231/cc-switch/issues/9847) を参照):システムプロンプトを最初の developer メッセージに置くようにしたため、ChatGPT のバックエンドが会話と一緒にキャッシュします。実測では 2 ターン目以降のヒット率が約 98% でした。ほかのモデルと API キーを使うルートは変わりません。
|
||||
- **プライバシーフィルターを高速化**([#9826](https://github.com/farion1231/cc-switch/pull/9826)):フィルターの結果は変わりません。
|
||||
|
||||
---
|
||||
|
||||
## 修正
|
||||
|
||||
- **Claude Code と Claude Desktop のネイティブプロバイダーで上流が出力しないまま止まると、フェイルオーバーまで最大 600 秒待たされる**([#9754](https://github.com/farion1231/cc-switch/pull/9754)):これらのストリーミングリクエストは非ストリーミング用のタイムアウトを使っていました。現在はほかのストリーミングリクエストと同じく最初のバイトのタイムアウト(既定 60 秒)を使います。
|
||||
- **非常に長い、または終わらないストリーミング応答で、使用量とログの収集に使うメモリが増え続ける**([#9846](https://github.com/farion1231/cc-switch/pull/9846)、[#9843](https://github.com/farion1231/cc-switch/issues/9843) を参照):バッファーの上限を 64 MiB にし、極端に大きいイベントのあとも続きを解析できるようにしました。
|
||||
- **ワンクリックインポートのリンクで設定のマージに失敗しても、確認ダイアログが開く**([#9844](https://github.com/farion1231/cc-switch/pull/9844)、[#9841](https://github.com/farion1231/cc-switch/issues/9841) を参照):現在はエラーだけを表示し、確認ダイアログは開きません。
|
||||
- **Codex デスクトップ版だけが入っていると、プラグイン画面で Codex が未インストールと表示される**([#9850](https://github.com/farion1231/cc-switch/issues/9850) を参照):たとえば Windows に Codex デスクトップ版(MSIX)だけを入れている場合です。単体でインストールされた `codex` が見つからないとき、プラグイン画面など Codex CLI を使う箇所はデスクトップ版に同梱されたものを使うようになりました。「アプリ」ページのインストール、アップグレード、アンインストールは引き続き単体でインストールされた Codex CLI だけを管理します。
|
||||
- **プラグイン画面がインストールされていないアプリの空の設定フォルダーを作る**([#9852](https://github.com/farion1231/cc-switch/issues/9852) を参照):プラグイン画面を開くと、Codex、Grok Build、OpenClaw、Pi、MiniMax Code が入っていなくても `~/.codex` や `~/.grok` などの空のフォルダーが作られていました。現在は CLI が見つかってから作成し、入っていないアプリはこれまでどおり未インストールと表示されます。
|
||||
- **OpenCode Go の DeepSeek V4.1 Flash に `max` の思考レベルがない**([#9853](https://github.com/farion1231/cc-switch/issues/9853) を参照):プリセットに OpenCode Go のモデル一覧どおり `low`、`high`、`max` の 3 段階を明記したため、OpenCode が汎用の `low` / `medium` / `high` に戻らなくなりました。
|
||||
- **すばやくクリックすると、ポップオーバーやドロップダウンメニューがちらつく**([#9176](https://github.com/farion1231/cc-switch/pull/9176)、[#9175](https://github.com/farion1231/cc-switch/issues/9175) を参照):開閉のアニメーション中にもう一度クリックしても、2 回続けて切り替わらなくなりました。
|
||||
|
||||
---
|
||||
|
||||
## 謝辞
|
||||
|
||||
[@H15teve](https://github.com/H15teve)(GPT-6.2 のキャッシュヒット)、[@minimote](https://github.com/minimote)(API キーのコピー)、[@zayokami](https://github.com/zayokami)(バックアップの合計サイズ上限)、[@vastStage](https://github.com/vastStage)(ストリーミングリクエストのタイムアウト)、[@HaiYangBG1](https://github.com/HaiYangBG1)(ストリーミング応答のメモリ、ワンクリックインポートの失敗、テストの分離)、[@YUZHEthefool](https://github.com/YUZHEthefool)(プライバシーフィルターの高速化)、[@Delta1035](https://github.com/Delta1035)(ポップオーバーのちらつき)、[@allenxu09](https://github.com/allenxu09)(レビューでの修正)、[@SaladDay](https://github.com/SaladDay)(コード整理)の貢献に感謝します。
|
||||
|
||||
問題の報告と再現情報の提供に協力してくださった [@IndexEeve](https://github.com/IndexEeve)、[@Thanatos-Z](https://github.com/Thanatos-Z)、[@beiqixingnang](https://github.com/beiqixingnang)、[@muchenkezhan](https://github.com/muchenkezhan) に感謝します。
|
||||
|
||||
技術的な詳細は [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md) をご覧ください。
|
||||
@@ -0,0 +1,50 @@
|
||||
# CC Switch v4.0.39
|
||||
|
||||
本版本以修复为主。**API Key 输入框**加了复制按钮;**备份**可以设置总大小上限,超过时从最旧的开始删;Claude Code 经 Codex OAuth 使用 **GPT-6.2 Sol / Astra** 时,系统提示的缓存命中率大幅提高。
|
||||
|
||||
另外修复了 Claude Code 和 Claude Desktop 的原生供应商卡住不出字时,要等最长 600 秒才故障转移;很长的流式响应让用量和日志收集占用的内存一直增长;一键导入链接合并配置失败后仍弹出确认框;只装了 Codex 桌面版时,插件页显示「未安装 Codex」;插件页给没装的应用建了空配置文件夹;OpenCode Go 的 DeepSeek V4.1 Flash 缺少 `max` 思考档位;快速点击时弹出层和下拉菜单闪烁等问题。
|
||||
|
||||
---
|
||||
|
||||
## 新增
|
||||
|
||||
### API Key 输入框可以一键复制
|
||||
|
||||
供应商表单的 API Key 输入框旁边多了复制按钮([#9232](https://github.com/farion1231/cc-switch/pull/9232)),复制的是去掉首尾空格后的 Key,成功或失败都会提示。输入框为空或不可编辑时不显示。
|
||||
|
||||
### 备份总大小上限
|
||||
|
||||
备份设置里新增「备份总大小上限」([#9011](https://github.com/farion1231/cc-switch/pull/9011),相关 [#6706](https://github.com/farion1231/cc-switch/issues/6706)),默认「不限制」,升级后不会删任何备份。
|
||||
|
||||
- 设置上限后,备份文件夹超过这个大小时,会从最旧的备份开始删除。
|
||||
- 最新的一份备份和恢复正在使用的备份始终保留,所以单份备份比上限还大时,文件夹仍可能超过上限。
|
||||
- 上限在下次备份或每日维护时生效。每日维护还会清理备份中途崩溃留下、超过 24 小时的临时文件。
|
||||
|
||||
---
|
||||
|
||||
## 变更
|
||||
|
||||
- **Claude Code 经 Codex OAuth 使用 GPT-6.2 Sol / Astra 时缓存命中率更高**([#9848](https://github.com/farion1231/cc-switch/pull/9848),见 [#9847](https://github.com/farion1231/cc-switch/issues/9847)):系统提示改放在第一条 developer 消息里,ChatGPT 后端会把它和对话一起缓存。实测从第二轮起命中率约 98%。其他模型和用 API Key 的路由不变。
|
||||
- **隐私过滤器更快**([#9826](https://github.com/farion1231/cc-switch/pull/9826)):过滤结果不变。
|
||||
|
||||
---
|
||||
|
||||
## 修复
|
||||
|
||||
- **Claude Code 和 Claude Desktop 的原生供应商卡住不出字时,最长要等 600 秒才故障转移**([#9754](https://github.com/farion1231/cc-switch/pull/9754)):这类流式请求用的是非流式请求的超时,现在和其他流式请求一样用首字超时(默认 60 秒)。
|
||||
- **很长或一直不结束的流式响应,让用量和日志收集占用的内存一直增长**([#9846](https://github.com/farion1231/cc-switch/pull/9846),见 [#9843](https://github.com/farion1231/cc-switch/issues/9843)):缓冲现在最多 64 MiB,遇到超大的事件后也能继续解析后面的内容。
|
||||
- **一键导入链接合并配置失败后,仍弹出确认框**([#9844](https://github.com/farion1231/cc-switch/pull/9844),见 [#9841](https://github.com/farion1231/cc-switch/issues/9841)):现在只提示错误,不再弹确认框。
|
||||
- **只装了 Codex 桌面版时,插件页显示「未安装 Codex」**(见 [#9850](https://github.com/farion1231/cc-switch/issues/9850)):比如 Windows 上只装了 Codex 桌面版(MSIX)。现在找不到单独安装的 `codex` 时,插件页等用到 Codex 命令行的地方会改用桌面版自带的那份。「应用」页的安装、升级和卸载仍只管单独安装的 Codex CLI。
|
||||
- **插件页给没装的应用建了空配置文件夹**(见 [#9852](https://github.com/farion1231/cc-switch/issues/9852)):打开插件页时,没装 Codex、Grok Build、OpenClaw、Pi 或 MiniMax Code 也会建出 `~/.codex`、`~/.grok` 等空文件夹。现在找到命令行工具后才建,没装的照常显示「未安装」。
|
||||
- **OpenCode Go 的 DeepSeek V4.1 Flash 缺少 `max` 思考档位**(见 [#9853](https://github.com/farion1231/cc-switch/issues/9853)):预设现在按 OpenCode Go 的模型列表写明 `low`、`high`、`max` 三档,OpenCode 不再退回通用的 `low` / `medium` / `high`。
|
||||
- **快速点击时,弹出层和下拉菜单闪烁**([#9176](https://github.com/farion1231/cc-switch/pull/9176),见 [#9175](https://github.com/farion1231/cc-switch/issues/9175)):在打开或关闭的动画过程中再点一下,不会再连着切换两次。
|
||||
|
||||
---
|
||||
|
||||
## 致谢
|
||||
|
||||
感谢 [@H15teve](https://github.com/H15teve)(GPT-6.2 缓存命中)、[@minimote](https://github.com/minimote)(复制 API Key)、[@zayokami](https://github.com/zayokami)(备份总大小上限)、[@vastStage](https://github.com/vastStage)(流式请求超时)、[@HaiYangBG1](https://github.com/HaiYangBG1)(流式响应内存、一键导入失败提示、测试隔离)、[@YUZHEthefool](https://github.com/YUZHEthefool)(隐私过滤器提速)、[@Delta1035](https://github.com/Delta1035)(弹出层闪烁)、[@allenxu09](https://github.com/allenxu09)(评审修改)、[@SaladDay](https://github.com/SaladDay)(代码整理)的贡献。
|
||||
|
||||
感谢 [@IndexEeve](https://github.com/IndexEeve)、[@Thanatos-Z](https://github.com/Thanatos-Z)、[@beiqixingnang](https://github.com/beiqixingnang)、[@muchenkezhan](https://github.com/muchenkezhan) 报告问题和提供复现信息。
|
||||
|
||||
完整的技术细节请见 [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md)。
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"version": "4.0.39",
|
||||
"items": [
|
||||
{
|
||||
"type": "new",
|
||||
"zh": "API Key 输入框可以一键复制",
|
||||
"zh-TW": "API Key 輸入框可以一鍵複製",
|
||||
"en": "Copy the API key with one click from its input",
|
||||
"ja": "API キー入力欄にワンクリックのコピーボタンを追加"
|
||||
},
|
||||
{
|
||||
"type": "new",
|
||||
"zh": "备份可设置总大小上限,超出时从最旧的删起",
|
||||
"zh-TW": "備份可設定總大小上限,超出時從最舊的刪起",
|
||||
"en": "Set a total size limit for backups; the oldest are removed first",
|
||||
"ja": "バックアップの合計サイズ上限を設定可能、超えたら古い順に削除"
|
||||
},
|
||||
{
|
||||
"type": "improve",
|
||||
"zh": "经 Codex OAuth 用 GPT-6.2 时缓存命中更高",
|
||||
"zh-TW": "經 Codex OAuth 用 GPT-6.2 時快取命中更高",
|
||||
"en": "Better prompt caching for GPT-6.2 through Codex OAuth",
|
||||
"ja": "Codex OAuth 経由の GPT-6.2 でキャッシュヒット率が向上"
|
||||
},
|
||||
{
|
||||
"type": "fix",
|
||||
"zh": "修复上游卡住时故障转移要等很久,以及插件页误报未安装 Codex",
|
||||
"zh-TW": "修正上游卡住時故障轉移要等很久,以及外掛頁誤報未安裝 Codex",
|
||||
"en": "Faster failover on a stalled upstream, and Plugins now finds the Codex desktop app",
|
||||
"ja": "上流停止時のフェイルオーバー遅延と、プラグイン画面の Codex 未検出を修正"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user