docs(release): add v4.0.1 release notes

This commit is contained in:
Jason committed 2026-10-05 12:51:16 +08:00
1 parent d36bb7a938
commit 4804b723d4
3 files changed
+123

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
# CC Switch v4.0.1
### The first fix release for the 4.0 preview
Thanks to everyone who tried the 4.0 preview and sent feedback. This release fixes Gemini CLI sessions not showing up and Codex slowing down startup under WSL, among other issues, and lets OpenCode offer thinking variants. For everything new in 4.0, see the [v4.0 release notes](https://github.com/farion1231/cc-switch/blob/main/docs/release-notes/v4.0.0-en.md).
> **Preview builds do not update automatically.** In-app updates follow stable releases only. If you installed 4.0.0, download 4.0.1 from this page and install it manually.
---
## New
**OpenCode offers thinking variants.** OpenCode only offers thinking variants (Ctrl+T) for models marked as reasoning-capable, and the custom providers CC Switch wrote never carried that mark, so models added through CC Switch never had any variants to pick. Now presets and fetched models that are known to reason (going by the preset or models.dev) are marked automatically. OpenCode generates the variants itself, so they keep up with OpenCode releases.
**"Skip Claude Code first-run confirmation" now explains itself.** Its help icon shows what the toggle actually does: it writes or removes `hasCompletedOnboarding` in `~/.claude.json`.
## Fixes
- **Session Management could not read Gemini CLI sessions.** Newer Gemini CLI versions record sessions as JSONL and migrate old files when a session is resumed, so the Sessions page showed no Gemini sessions and usage sync imported nothing. The new format is now fully supported. When an old file and its migrated copy both exist, only one is shown, and deleting the session removes both. Session titles also skip context the CLI injects automatically and slash commands.
- **Codex under WSL slowed down startup and session scans.** When the Codex config directory lives inside WSL, Windows cannot lock the SQLite databases there, and every open waited out a 5-second timeout. The history migration started over on every launch, and session scans stalled. Such databases are now skipped, and session titles come from the session index instead.
- **An upstream rejection was reported as an output limit.** Some Responses upstreams (for example, the ChatGPT Codex backend rejecting a tool definition) return "max output tokens reached" without processing the request, with zero usage, so Claude Code reported a limit that was never hit. This is now reported as the upstream error it is, with the rejection details.
- **Codex usage sync could hang.** After an unrelated error, syncing Codex records with a parent session could get stuck. This is fixed.
- **Grok Build's "Get API Key" opened the plain homepage.** Like the other apps, it now opens the sign-up page the preset provides.
## Polish
- **Smoother sidebar collapse and expand.** The animation is drawn on the compositor and runs at the display's refresh rate instead of being capped at the WebView main thread's 60 fps. Clicking again mid-animation continues from where the edge is.
- **The sidebar's bottom divider** matches the one above it, so a selected "Usage" row no longer touches the line.
- **The reset-credits dropdown arrow** lines up with the countdown clock of the row above when it sits on its own row.
## Build and Release
macOS now builds both architectures in parallel, so a notarization retry no longer recompiles from scratch. If any platform is missing its update signature, the build fails outright instead of publishing an update manifest that leaves that platform out.
---
## Thanks
Thanks to [@allenxu09](https://github.com/allenxu09) (Gemini CLI sessions, sidebar animation and divider) and [@parkavenue9639](https://github.com/parkavenue9639) (error reporting for upstream rejections) for their contributions, and to [@juntaosun](https://github.com/juntaosun) for reporting the Gemini CLI session issue right away.
For the full technical details, see the [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md).
+41
View File
@@ -0,0 +1,41 @@
# CC Switch v4.0.1
### 4.0 プレビュー版の最初の修正リリース
4.0 プレビュー版を試してフィードバックをくださった皆さん、ありがとうございます。このバージョンでは、Gemini CLI のセッションが読み込めない問題や、WSL 環境で Codex の起動が遅くなる問題などを修正し、OpenCode で思考レベルを選べるようにしました。4.0 の更新内容の全体は [v4.0 リリースノート](https://github.com/farion1231/cc-switch/blob/main/docs/release-notes/v4.0.0-ja.md) をご覧ください。
> **プレビュー版は自動更新されません。** アプリ内の更新は正式版のみが対象です。4.0.0 をインストール済みの場合は、このページから 4.0.1 をダウンロードして手動でインストールしてください。
---
## 新機能
**OpenCode で思考レベルを選べるようになりました。** OpenCode は「推論対応」とマークされたモデルにだけ思考レベル(Ctrl+T)を提供しますが、CC Switch が書き込むカスタムプロバイダーにはこのマークが付いていなかったため、CC Switch で追加したモデルではレベルを選べませんでした。現在は、推論に対応していることがわかっているプリセットや取得したモデル(プリセットまたは models.dev に基づく)に自動でマークを付けます。レベルは OpenCode 自身が生成するため、OpenCode のバージョンアップにも追従します。
**「Claude Code の初回確認をスキップ」に説明を追加しました。** この項目のヘルプアイコンを開くと、スイッチが実際に何をするか(`~/.claude.json` の `hasCompletedOnboarding` を書き込む/削除する)を確認できます。
## 修正
- **セッション管理で Gemini CLI のセッションが読み込めなかった問題。** 新しい Gemini CLI はセッションを JSONL 形式で記録し、セッション再開時に古いファイルを移行するため、セッション画面に Gemini のセッションが表示されず、使用量の同期でも何も取り込めませんでした。新形式に完全対応し、古いファイルと移行後のファイルが両方ある場合は 1 つだけ表示し、削除時は両方を削除します。セッションタイトルも、CLI が自動挿入するコンテキストやスラッシュコマンドを飛ばすようになりました。
- **WSL 環境の Codex が起動とセッションのスキャンを遅くしていた問題。** Codex の設定ディレクトリが WSL 内にある場合、Windows はそこにある SQLite データベースをロックできず、開くたびに 5 秒のタイムアウトを待っていました。そのため履歴の移行が起動のたびにやり直され、セッションのスキャンも止まっていました。こうしたデータベースはスキップするようになり、セッションタイトルはセッションインデックスから読み込みます。
- **上流がリクエストを拒否したのに「出力の上限に達した」と報告されていた問題。** 一部の Responses 上流(たとえば ChatGPT Codex バックエンドがツール定義を拒否した場合)は、リクエストを処理しないまま使用量 0 で「出力トークンの上限に達した」と返すため、Claude Code は実際には達していない上限を表示していました。現在はこれを上流のエラーとして、拒否の理由とともに正しく報告します。
- **Codex の使用量同期が止まることがあった問題。** 無関係なエラーの後、親セッションを持つ Codex の記録を同期すると止まってしまうことがありました。修正済みです。
- **Grok Build の「API Key を取得」が公式サイトのトップページを開いていた問題。** 他のアプリと同じく、プリセットが提供する登録ページを開くようになりました。
## 使い心地の改善
- **サイドバーの折りたたみと展開がよりなめらかに。** アニメーションをコンポジターで描画し、WebView のメインスレッドの 60 fps に縛られず、ディスプレイのリフレッシュレートで動きます。途中でもう一度クリックすると、現在の位置から続けて動きます。
- **サイドバー下部の区切り線**を上の区切り線と同じスタイルにし、「使用量」を選択しても線に接しなくなりました。
- **リセット回数のドロップダウン矢印**が独立した行にあるとき、上の行のカウントダウンの時計と揃うようになりました。
## ビルドとリリース
macOS の 2 つのアーキテクチャを並列でビルドするようにし、公証の再試行で最初からコンパイルし直す必要がなくなりました。いずれかのプラットフォームで更新用の署名が欠けている場合はビルドがその場で失敗し、そのプラットフォームが抜けた更新マニフェストを公開することはなくなりました。
---
## 謝辞
[@allenxu09](https://github.com/allenxu09)(Gemini CLI のセッション、サイドバーのアニメーションと区切り線)と [@parkavenue9639](https://github.com/parkavenue9639)(上流による拒否のエラー報告)の貢献に感謝します。また、Gemini CLI のセッションの問題をいち早く報告してくださった [@juntaosun](https://github.com/juntaosun) にも感謝します。
技術的な詳細は [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md) をご覧ください。
+41
View File
@@ -0,0 +1,41 @@
# CC Switch v4.0.1
### 4.0 预览版的第一个修复版本
感谢大家对 4.0 预览版的试用和反馈。这个版本修复了 Gemini CLI 会话读不到、WSL 下 Codex 启动变慢等问题,也让 OpenCode 能用上思考档位。4.0 完整的更新内容请见 [v4.0 发布说明](https://github.com/farion1231/cc-switch/blob/main/docs/release-notes/v4.0.0-zh.md)。
> **预览版不会自动更新。** 应用内更新只跟随正式版,已经装了 4.0.0 的话,请在本页手动下载 4.0.1 安装。
---
## 新增
**OpenCode 可以选择思考档位了。** OpenCode 只会给标记为「支持推理」的模型提供思考档位(Ctrl+T),而 CC Switch 写入的自定义供应商以前从不带这个标记,所以通过 CC Switch 添加的模型一直选不了档位。现在,预设和获取到的模型只要已知支持推理(以预设或 models.dev 为准),就会自动标记,档位由 OpenCode 自己生成,跟随 OpenCode 的版本更新。
**「跳过 Claude Code 初次安装确认」有了说明。** 点开这一项的帮助图标,可以看到开关具体做了什么:在 `~/.claude.json` 里写入或删除 `hasCompletedOnboarding`。
## 修复
- **会话管理读不到 Gemini CLI 的会话。** 新版 Gemini CLI 把会话记录改成了 JSONL 格式,并会在恢复会话时把旧文件迁移过去,导致会话页看不到 Gemini 会话,用量同步也导入不到数据。现在完整支持新格式;旧文件和迁移后的新文件同时存在时只显示一份,删除时一起删掉。会话标题也会跳过 CLI 自动注入的上下文和斜杠命令。
- **WSL 下的 Codex 拖慢启动和会话扫描。** Codex 配置目录放在 WSL 里时,Windows 无法给其中的 SQLite 数据库加锁,每次都要等 5 秒超时。历史迁移因此每次启动都重来一遍,扫描会话也会卡住。现在会跳过这类数据库,会话标题改从会话索引读取。
- **上游拒绝请求,却被报成「输出达到上限」。** 有些 Responses 上游(比如 ChatGPT Codex 后端拒绝某个工具定义时)会在不处理请求的情况下返回「输出 token 达到上限」,用量全是 0,Claude Code 就提示了一个根本没碰到的上限。现在这种情况会如实报告为上游错误,并带上拒绝原因。
- **Codex 用量同步可能卡死。** 一个无关的异常之后,同步带父会话的 Codex 记录时可能卡住不动,现在已修复。
- **Grok Build 的「获取 API Key」打开的是官网首页。** 现在和其他应用一样,打开预设提供的注册页面。
## 体验改进
- **侧边栏收起和展开更流畅。** 动画改由合成层绘制,跟随屏幕刷新率,不再受限于 WebView 主线程的 60 帧。中途反向点击会从当前位置接着走。
- **侧边栏底部分隔线**和上方的分隔线样式统一,选中「用量统计」时不再贴着线。
- **重置次数的下拉箭头**单独占一行时,和上一行的倒计时时钟对齐。
## 构建与发布
macOS 两个架构改为并行编译,公证失败重试时不必从头编译;任何一个平台缺少更新签名时,构建会直接失败,不会再发布一个缺了某个平台的更新清单。
---
## 致谢
感谢 [@allenxu09](https://github.com/allenxu09)(Gemini CLI 会话、侧边栏动画与分隔线)和 [@parkavenue9639](https://github.com/parkavenue9639)(上游拒绝的错误报告)的贡献,感谢 [@juntaosun](https://github.com/juntaosun) 第一时间报告 Gemini CLI 会话的问题。
完整的技术细节请见 [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md)。