docs(release): lead with usage stats in the v4.0.4 notes

This commit is contained in:
Jason committed 2026-10-07 19:09:33 +08:00
1 parent a29a4f3868
commit 01ee685da8
3 files changed
+69 -69

No files matched your search

+23 -23
View File
@@ -6,7 +6,7 @@ This is the first stable release of v4.0, and the app will update to it automati
This is the biggest CC Switch release yet. With it, we've rethought the core of the CC Switch experience: how you connect to models, how you switch providers, and how you manage a growing set of AI coding tools.
The interface has been redesigned from the sidebar to the tray, giving apps, config, usage and sessions each a clear place. The new Aggregation mode puts models from several providers into one Claude Code or Codex model picker, so you can switch between them right inside the client. Session management has been rewritten from scratch: what the AI did in each turn, what it changed and which step failed are all visible at a glance. And the config-writing core has been rebuilt: switching providers now replaces only the key fields instead of rewriting the whole file, which removes a great deal of complexity and puts an end to a whole class of lost-settings problems. MCP servers can now be synced to Pi too, so one MCP config can serve 8 AI coding tools at once.
The interface has been redesigned from the sidebar to the tray, giving apps, config, usage and sessions each a clear place. The new Aggregation mode puts models from several providers into one Claude Code or Codex model picker, so you can switch between them right inside the client. The Usage page has been redesigned too: every request is logged with its token usage, cost and output speed, and choosing the "All" time range shows the past year of daily usage as a heatmap. Session management has been rewritten from scratch: what the AI did in each turn, what it changed and which step failed are all visible at a glance. And the config-writing core has been rebuilt: switching providers now replaces only the key fields instead of rewriting the whole file, which removes a great deal of complexity and puts an end to a whole class of lost-settings problems. MCP servers can now be synced to Pi too, so one MCP config can serve 8 AI coding tools at once.
> **Upgrading from 3.x?** How provider switching works, the database version and a few settings have changed. We suggest reading "Before You Upgrade" below first.
@@ -65,23 +65,17 @@ Aggregation is opt-in and currently supports Claude Code and Codex. Claude Code'
---
## Session Management: See Every AI Coding Session Clearly
## Usage
AI coding tools keep a complete record of every session on your machine, but the raw logs are thousands of lines of JSON and nearly impossible to read. This release rewrites session management from scratch to make those records as readable as possible, and adds token usage and cost for each session.
**The Usage page** has redesigned metrics, a trend chart, a request log, and four paginated tables for providers, models and pricing. A new "All" time range shows your daily usage as a 53-week heatmap, and wide-range queries no longer freeze the window.
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/session-en.png" alt="The session reader: step summaries, tool call details and the conversation outline" width="720"></p>
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/usage-en.png" alt="Usage: the 53-week heatmap and request log" width="720"></p>
- **Nine clients, one way to read them**: Sessions from Claude Code, Codex, Gemini CLI, Grok Build, OpenCode, OpenClaw, Hermes, Pi and MiniMax Code are parsed into structured content, with text, thinking, tool calls, tool results and images each shown in their own form
- **One turn, one summary line**: A long run of AI actions folds into a single line, such as "Steps · 44 · 27 commands · 2 files changed · 1 failed · 27m45s". Failed commands are marked in red, and expanding one shows its parameters, output and exit code. Runs of file reads and searches merge into "Read N files, searched N times"
- **Conversation outline**: The right-hand panel lists each of your prompts along with how many steps the turn took and what it concluded. Turns with failed steps get a red dot; click to jump there
- **Three views**: "All" shows the full process, "Chat" shows only what you and the AI said, and "Changes" shows only which files were changed
- **The whole session at a glance**: The header shows the project directory, start and end time, number of prompts and tool calls, model, total tokens and the cost at API prices
- **Find in session**: Matches hidden inside folded tool output are expanded and scrolled into view automatically, and typing stays smooth even in long sessions
- **From reading back to working**: Resume a session in your favorite terminal (Ghostty, for example) in one click, or copy the resume command. You can also export to Markdown and copy a single turn or the whole conversation
- **An easier-to-search list**: Group by project or time, search titles, directories, first and last messages or session IDs, and delete in bulk
- OpenCode 2.x sessions and Gemini CLI's new JSONL session format are now supported, and Hermes sessions open correctly again
The session reader redesign was led by [@Owlbay](https://github.com/Owlbay). Many thanks to Owlbay for the enormous effort.
- **Output speed** is now measured over generation time only, without the wait for the first token. Even without routing, requests imported from Claude Code and Codex session logs get an estimated speed, marked with "≈"
- **The model table gains Success Rate and Speed columns**. The "Average Cost" column is gone; hover over the cost to see it
- **The provider and model tables count cache tokens**, so the rows add up to the total token count at the top
- Usage imported from session logs without routing shows a provider name like "Claude Code · Session logs", and hovering explains why the specific provider cannot be told apart
- Usage records are written on a separate thread, so a slow disk no longer slows down the routing service
---
@@ -113,17 +107,23 @@ Turning routing on or off no longer relies on backing up and restoring your whol
---
## Usage
## Session Management: See Every AI Coding Session Clearly
**The Usage page** has redesigned metrics, a trend chart, a request log, and four paginated tables for providers, models and pricing. A new "All" time range shows your daily usage as a 53-week heatmap, and wide-range queries no longer freeze the window.
AI coding tools keep a complete record of every session on your machine, but the raw logs are thousands of lines of JSON and nearly impossible to read. This release rewrites session management from scratch to make those records as readable as possible, and adds token usage and cost for each session.
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/usage-en.png" alt="Usage: the 53-week heatmap and request log" width="720"></p>
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/session-en.png" alt="The session reader: step summaries, tool call details and the conversation outline" width="720"></p>
- **Output speed** is now measured over generation time only, without the wait for the first token. Even without routing, requests imported from Claude Code and Codex session logs get an estimated speed, marked with "≈"
- **The model table gains Success Rate and Speed columns**. The "Average Cost" column is gone; hover over the cost to see it
- **The provider and model tables count cache tokens**, so the rows add up to the total token count at the top
- Usage imported from session logs without routing shows a provider name like "Claude Code · Session logs", and hovering explains why the specific provider cannot be told apart
- Usage records are written on a separate thread, so a slow disk no longer slows down the routing service
- **Nine clients, one way to read them**: Sessions from Claude Code, Codex, Gemini CLI, Grok Build, OpenCode, OpenClaw, Hermes, Pi and MiniMax Code are parsed into structured content, with text, thinking, tool calls, tool results and images each shown in their own form
- **One turn, one summary line**: A long run of AI actions folds into a single line, such as "Steps · 44 · 27 commands · 2 files changed · 1 failed · 27m45s". Failed commands are marked in red, and expanding one shows its parameters, output and exit code. Runs of file reads and searches merge into "Read N files, searched N times"
- **Conversation outline**: The right-hand panel lists each of your prompts along with how many steps the turn took and what it concluded. Turns with failed steps get a red dot; click to jump there
- **Three views**: "All" shows the full process, "Chat" shows only what you and the AI said, and "Changes" shows only which files were changed
- **The whole session at a glance**: The header shows the project directory, start and end time, number of prompts and tool calls, model, total tokens and the cost at API prices
- **Find in session**: Matches hidden inside folded tool output are expanded and scrolled into view automatically, and typing stays smooth even in long sessions
- **From reading back to working**: Resume a session in your favorite terminal (Ghostty, for example) in one click, or copy the resume command. You can also export to Markdown and copy a single turn or the whole conversation
- **An easier-to-search list**: Group by project or time, search titles, directories, first and last messages or session IDs, and delete in bulk
- OpenCode 2.x sessions and Gemini CLI's new JSONL session format are now supported, and Hermes sessions open correctly again
The session reader redesign was led by [@Owlbay](https://github.com/Owlbay). Many thanks to Owlbay for the enormous effort.
---
+23 -23
View File
@@ -6,7 +6,7 @@ v4.0 の最初の正式版です。アプリ内で自動的に更新されます
CC Switch 史上最大規模のアップデートです。今回は、モデルへの接続方法、プロバイダーの切り替え方、そして増え続ける AI コーディングツールの管理方法という、CC Switch の最も核となる体験を見直しました。
サイドバーからトレイまで画面をすべて作り直し、アプリ、設定、使用量、セッションのそれぞれにわかりやすい居場所を用意しました。新しい集約モードでは、複数のプロバイダーのモデルを Claude Code や Codex の 1 つのモデル一覧にまとめ、クライアントの中でそのまま切り替えられます。セッション管理もゼロから書き直し、AI が各ターンで何をしたか、何を変更したか、どのステップで失敗したかがひと目でわかるようになりました。さらに設定書き込みの土台も作り直しました。プロバイダーの切り替えはファイル全体の書き直しから重要項目だけの置き換えに変わり、複雑さを大きく減らすと同時に、設定が失われる一連の問題を解消しています。MCP サーバーを Pi にも同期できるようになり、1 つの MCP 設定を 8 つの AI コーディングツールで同時に使えます。
サイドバーからトレイまで画面をすべて作り直し、アプリ、設定、使用量、セッションのそれぞれにわかりやすい居場所を用意しました。新しい集約モードでは、複数のプロバイダーのモデルを Claude Code や Codex の 1 つのモデル一覧にまとめ、クライアントの中でそのまま切り替えられます。使用量ページも作り直しました。リクエストごとにトークン使用量、コスト、出力速度を記録し、期間で「すべて」を選ぶと、過去 1 年間の日ごとの使用量をヒートマップで確認できます。セッション管理もゼロから書き直し、AI が各ターンで何をしたか、何を変更したか、どのステップで失敗したかがひと目でわかるようになりました。さらに設定書き込みの土台も作り直しました。プロバイダーの切り替えはファイル全体の書き直しから重要項目だけの置き換えに変わり、複雑さを大きく減らすと同時に、設定が失われる一連の問題を解消しています。MCP サーバーを Pi にも同期できるようになり、1 つの MCP 設定を 8 つの AI コーディングツールで同時に使えます。
> **3.x からアップグレードしますか?** プロバイダーの切り替え方、データベースのバージョン、いくつかの設定が変わっています。先に下の「アップグレードの前に」をご覧ください。
@@ -65,23 +65,17 @@ CC Switch 史上最大規模のアップデートです。今回は、モデル
---
## セッション管理:AI コーディングのすべてをはっきりと
## 使用量
AI コーディングツールは各セッションの記録をローカルに丸ごと保存していますが、元の記録は何千行もの JSON で、そのまま読むのはほぼ不可能です。今回のバージョンではセッション管理をゼロから書き直し、記録をできる限り読みやすくしたうえで、トークン使用量と料金の集計も加えました。
**使用量ページ**では、指標、トレンドグラフ、リクエストログ、そしてプロバイダー、モデル、料金の各統計表を作り直し、すべてページ送りに対応しました。新しい「すべて」の期間では、53 週分のヒートマップで日ごとの使用量を表示します。広い範囲の集計でも、ウィンドウが固まらなくなりました。
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/session-en.png" alt="セッションビューア:実行過程の要約、ツール呼び出しの詳細、会話の目次" width="720"></p>
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/usage-en.png" alt="使用量:53 週ヒートマップとリクエストログ" width="720"></p>
- **9 つのクライアントを同じ読み方で**:Claude Code、Codex、Gemini CLI、Grok Build、OpenCode、OpenClaw、Hermes、Pi、MiniMax Code の記録を構造化して解析し、本文、思考、ツール呼び出し、ツール結果、画像をそれぞれの形で表示します
- **1 ターンの作業を 1 行に要約**:AI の長い一連の操作を「実行過程 · 44 ステップ · コマンド 27 件 · 2 ファイルを変更 · 1 件失敗 · 27m45s」のように 1 行にまとめます。失敗したコマンドは赤で表示され、展開すると引数、出力、終了コードを確認できます。ファイルの読み込みや検索が続く部分は「N ファイルを参照、N 回検索」にまとめられます
- **会話の目次**:右側にあなたの各プロンプトと、そのターンのステップ数や結論を一覧表示します。失敗したステップがあるターンには赤いドットが付き、クリックするとその場所へ移動します
- **3 つの表示**:「すべて」で全過程を、「会話」であなたと AI のやり取りだけを、「変更」で変更されたファイルだけを表示します
- **セッションの全体像をひと目で**:上部にプロジェクトのディレクトリ、開始・終了時刻、プロンプト数、ツール呼び出し数、モデル、合計トークン数、API 価格で計算した料金を表示します
- **セッション内検索**:一致した内容が折りたたまれたツール出力の中にあっても、自動で展開して表示します。長いセッションでも入力がもたつきません
- **読んだらそのまま作業再開**:よく使うターミナル(Ghostty など)でワンクリックでセッションを再開でき、再開コマンドのコピーもできます。Markdown へのエクスポートや、1 ターン単位・会話全体のコピーにも対応しています
- **見つけやすい一覧**:プロジェクト別・時間別にグループ化し、タイトル、ディレクトリ、最初と最後のメッセージ、セッション ID で検索できます。一括削除にも対応しています
- OpenCode 2.x と、Gemini CLI の新しい JSONL 形式のセッションに対応し、Hermes のセッションも正しく開けるようになりました
セッションビューアの刷新は [@Owlbay](https://github.com/Owlbay) が中心となって進めてくれました。Owlbay の多大な尽力に感謝します。
- **出力速度**は、最初のトークンまでの待ち時間を除いた生成時間だけで計算するようになりました。ルーティングを使っていなくても、Claude Code や Codex のセッションログから取り込んだリクエストには推定速度が「≈」付きで表示されます
- **モデル表に「成功率」と「速度」の 2 列を追加しました**。「平均コスト」列はなくなり、コストにマウスを重ねると確認できます
- **プロバイダー表とモデル表がキャッシュ token も集計するようになり**、各行の合計が上部の総 token 数と一致します
- ルーティングを使っていないときにセッションログから取り込んだ使用量は、プロバイダー名が「Claude Code · セッションログ」のように表示され、マウスを重ねるとプロバイダーを区別できない理由が表示されます
- 使用量の記録は別スレッドで書き込むようになり、ディスクが遅くてもルーティングサービスを遅くしません
---
@@ -113,17 +107,23 @@ CC Switch を公開した 2025 年 8 月当時、API のエコシステムは今
---
## 使用量
## セッション管理:AI コーディングのすべてをはっきりと
**使用量ページ**では、指標、トレンドグラフ、リクエストログ、そしてプロバイダー、モデル、料金の各統計表を作り直し、すべてページ送りに対応しました。新しい「すべて」の期間では、53 週分のヒートマップで日ごとの使用量を表示します。広い範囲の集計でも、ウィンドウが固まらなくなりました。
AI コーディングツールは各セッションの記録をローカルに丸ごと保存していますが、元の記録は何千行もの JSON で、そのまま読むのはほぼ不可能です。今回のバージョンではセッション管理をゼロから書き直し、記録をできる限り読みやすくしたうえで、トークン使用量と料金の集計も加えました。
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/usage-en.png" alt="使用量:53 週ヒートマップとリクエストログ" width="720"></p>
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/session-en.png" alt="セッションビューア:実行過程の要約、ツール呼び出しの詳細、会話の目次" width="720"></p>
- **出力速度**は、最初のトークンまでの待ち時間を除いた生成時間だけで計算するようになりました。ルーティングを使っていなくても、Claude Code や Codex のセッションログから取り込んだリクエストには推定速度が「≈」付きで表示されます
- **モデル表に「成功率」と「速度」の 2 列を追加しました**。「平均コスト」列はなくなり、コストにマウスを重ねると確認できます
- **プロバイダー表とモデル表がキャッシュ token も集計するようになり**、各行の合計が上部の総 token 数と一致します
- ルーティングを使っていないときにセッションログから取り込んだ使用量は、プロバイダー名が「Claude Code · セッションログ」のように表示され、マウスを重ねるとプロバイダーを区別できない理由が表示されます
- 使用量の記録は別スレッドで書き込むようになり、ディスクが遅くてもルーティングサービスを遅くしません
- **9 つのクライアントを同じ読み方で**:Claude Code、Codex、Gemini CLI、Grok Build、OpenCode、OpenClaw、Hermes、Pi、MiniMax Code の記録を構造化して解析し、本文、思考、ツール呼び出し、ツール結果、画像をそれぞれの形で表示します
- **1 ターンの作業を 1 行に要約**:AI の長い一連の操作を「実行過程 · 44 ステップ · コマンド 27 件 · 2 ファイルを変更 · 1 件失敗 · 27m45s」のように 1 行にまとめます。失敗したコマンドは赤で表示され、展開すると引数、出力、終了コードを確認できます。ファイルの読み込みや検索が続く部分は「N ファイルを参照、N 回検索」にまとめられます
- **会話の目次**:右側にあなたの各プロンプトと、そのターンのステップ数や結論を一覧表示します。失敗したステップがあるターンには赤いドットが付き、クリックするとその場所へ移動します
- **3 つの表示**:「すべて」で全過程を、「会話」であなたと AI のやり取りだけを、「変更」で変更されたファイルだけを表示します
- **セッションの全体像をひと目で**:上部にプロジェクトのディレクトリ、開始・終了時刻、プロンプト数、ツール呼び出し数、モデル、合計トークン数、API 価格で計算した料金を表示します
- **セッション内検索**:一致した内容が折りたたまれたツール出力の中にあっても、自動で展開して表示します。長いセッションでも入力がもたつきません
- **読んだらそのまま作業再開**:よく使うターミナル(Ghostty など)でワンクリックでセッションを再開でき、再開コマンドのコピーもできます。Markdown へのエクスポートや、1 ターン単位・会話全体のコピーにも対応しています
- **見つけやすい一覧**:プロジェクト別・時間別にグループ化し、タイトル、ディレクトリ、最初と最後のメッセージ、セッション ID で検索できます。一括削除にも対応しています
- OpenCode 2.x と、Gemini CLI の新しい JSONL 形式のセッションに対応し、Hermes のセッションも正しく開けるようになりました
セッションビューアの刷新は [@Owlbay](https://github.com/Owlbay) が中心となって進めてくれました。Owlbay の多大な尽力に感謝します。
---
+23 -23
View File
@@ -6,7 +6,7 @@
这是 CC Switch 迄今规模最大的一次更新。这次更新,我们重新梳理了 CC Switch 最核心的体验:如何接入模型、如何切换供应商,以及如何管理越来越多的 AI 编程工具。
界面从侧边栏到托盘全部重新设计,应用、配置、用量和会话都有了清楚的位置。新推出的聚合模式可以把多家供应商的模型放进 Claude Code 或 Codex 的同一个模型列表,在客户端里随手切换。会话管理也从头重写,AI 每一轮做了什么、改了什么、哪一步失败了,都一目了然。重写了配置写入的底层机制:切换供应商时,由全量重写改为关键字段替换,大幅降低复杂度的同时避免了一系列配置丢失问题。MCP 服务器现在也能同步到 Pi 了,一份 MCP 配置可以同时用在 8 个 AI 编程工具里。
界面从侧边栏到托盘全部重新设计,应用、配置、用量和会话都有了清楚的位置。新推出的聚合模式可以把多家供应商的模型放进 Claude Code 或 Codex 的同一个模型列表,在客户端里随手切换。用量统计页面也重新设计了:每一次请求的 Token 用量、花费和输出速度都有记录;时间范围选「全部」,还能用热力图看过去一年每天的用量。会话管理也从头重写,AI 每一轮做了什么、改了什么、哪一步失败了,都一目了然。重写了配置写入的底层机制:切换供应商时,由全量重写改为关键字段替换,大幅降低复杂度的同时避免了一系列配置丢失问题。MCP 服务器现在也能同步到 Pi 了,一份 MCP 配置可以同时用在 8 个 AI 编程工具里。
> **从 3.x 升级?** 切换供应商的方式、数据库版本和几个设置都有变化,建议先看一下下方的「升级须知」。
@@ -65,23 +65,17 @@
---
## 会话管理:每一次 AI 编程,都看得清清楚楚
## 用量统计
AI 编程工具会把每次会话完整地记在本机,但原始记录是成千上万行 JSON,几乎没法直接读。这一版我们从头重写了会话管理,让会话记录尽可能地易读,同时添加了用量和消耗金额统计。
**用量页**重新设计了指标、趋势图、请求日志,以及供应商、模型、定价四张统计表,都支持分页。新增「全部」时间范围,用 53 周热力图显示每天的用量。大范围统计时,窗口不再卡顿。
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/session-zh.png" alt="会话阅读页:执行过程摘要、工具调用详情和对话目录" width="720"></p>
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/usage-zh.png" alt="用量统计:53 周热力图与请求日志" width="720"></p>
- **九个客户端,同一种读法**:Claude Code、Codex、Gemini CLI、Grok Build、OpenCode、OpenClaw、Hermes、Pi、MiniMax Code 的记录都解析成结构化内容,正文、思考、工具调用、工具结果和图片各自呈现
- **一轮工作,一行摘要**:AI 的一长串操作折叠成一行,比如「执行过程 · 44 步 · 27 个命令 · 改了 2 个文件 · 1 个失败 · 27m45s」。失败的命令标成红色,展开就能看到参数、输出和退出码;连续读文件、搜索这类步骤会合并成「查看了 N 个文件、搜索 N 次」
- **对话目录**:右侧列出你的每一次提问,以及这一轮用了多少步、得出了什么结论。有失败步骤的轮次带红点,点一下就跳过去
- **三种视图**:「全部」看完整过程,「对话」只看你和 AI 说了什么,「改动」只看改了哪些文件
- **会话全貌一眼可见**:顶部显示项目目录、起止时间、提问次数、工具调用次数、模型、总 Token 数,以及按 API 价格算的费用
- **会话内查找**:命中的内容即使藏在折叠的工具输出里,也会自动展开定位;长会话里输入也不卡
- **从阅读到继续工作**:一键在你常用的终端(比如 Ghostty)里恢复会话,也可以复制恢复命令;还支持导出 Markdown、复制单轮或整段对话
- **列表更好找**:按项目或时间分组,搜索标题、目录、首末消息或会话 ID,支持批量删除
- 支持 OpenCode 2.x 和 Gemini CLI 新版 JSONL 格式的会话,Hermes 会话也能正常打开了
会话阅读页的重做由 [@Owlbay](https://github.com/Owlbay) 主导完成,感谢 Owlbay 投入的大量心血。
- **输出速度**改为只按生成时间计算,去掉了首字等待。即使没开路由,从 Claude Code、Codex 会话日志导入的请求也能显示估算速度,用「≈」标记
- **模型表格加上成功率和速度两列**。「平均成本」列去掉了,悬停在成本上可以看到
- **供应商和模型表格计入缓存 token**,各行加起来和顶部的总 token 数对得上
- 没开路由时从会话日志导入的用量,供应商显示为「Claude Code · 会话日志」这样的名字,悬停会说明为什么分不出具体供应商
- 写入用量记录改到单独的线程,硬盘慢时也不会拖慢路由服务
---
@@ -113,17 +107,23 @@ CC Switch 发布于 2025 年 8 月,那个时候 API 的生态远没有现在
---
## 用量统计
## 会话管理:每一次 AI 编程,都看得清清楚楚
**用量页**重新设计了指标、趋势图、请求日志,以及供应商、模型、定价四张统计表,都支持分页。新增「全部」时间范围,用 53 周热力图显示每天的用量。大范围统计时,窗口不再卡顿。
AI 编程工具会把每次会话完整地记在本机,但原始记录是成千上万行 JSON,几乎没法直接读。这一版我们从头重写了会话管理,让会话记录尽可能地易读,同时添加了用量和消耗金额统计。
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/usage-zh.png" alt="用量统计:53 周热力图与请求日志" width="720"></p>
<p align="center"><img src="https://raw.githubusercontent.com/farion1231/cc-switch/main/assets/release-notes/v4.0.0/session-zh.png" alt="会话阅读页:执行过程摘要、工具调用详情和对话目录" width="720"></p>
- **输出速度**改为只按生成时间计算,去掉了首字等待。即使没开路由,从 Claude Code、Codex 会话日志导入的请求也能显示估算速度,用「≈」标记
- **模型表格加上成功率和速度两列**。「平均成本」列去掉了,悬停在成本上可以看到
- **供应商和模型表格计入缓存 token**,各行加起来和顶部的总 token 数对得上
- 没开路由时从会话日志导入的用量,供应商显示为「Claude Code · 会话日志」这样的名字,悬停会说明为什么分不出具体供应商
- 写入用量记录改到单独的线程,硬盘慢时也不会拖慢路由服务
- **九个客户端,同一种读法**:Claude Code、Codex、Gemini CLI、Grok Build、OpenCode、OpenClaw、Hermes、Pi、MiniMax Code 的记录都解析成结构化内容,正文、思考、工具调用、工具结果和图片各自呈现
- **一轮工作,一行摘要**:AI 的一长串操作折叠成一行,比如「执行过程 · 44 步 · 27 个命令 · 改了 2 个文件 · 1 个失败 · 27m45s」。失败的命令标成红色,展开就能看到参数、输出和退出码;连续读文件、搜索这类步骤会合并成「查看了 N 个文件、搜索 N 次」
- **对话目录**:右侧列出你的每一次提问,以及这一轮用了多少步、得出了什么结论。有失败步骤的轮次带红点,点一下就跳过去
- **三种视图**:「全部」看完整过程,「对话」只看你和 AI 说了什么,「改动」只看改了哪些文件
- **会话全貌一眼可见**:顶部显示项目目录、起止时间、提问次数、工具调用次数、模型、总 Token 数,以及按 API 价格算的费用
- **会话内查找**:命中的内容即使藏在折叠的工具输出里,也会自动展开定位;长会话里输入也不卡
- **从阅读到继续工作**:一键在你常用的终端(比如 Ghostty)里恢复会话,也可以复制恢复命令;还支持导出 Markdown、复制单轮或整段对话
- **列表更好找**:按项目或时间分组,搜索标题、目录、首末消息或会话 ID,支持批量删除
- 支持 OpenCode 2.x 和 Gemini CLI 新版 JSONL 格式的会话,Hermes 会话也能正常打开了
会话阅读页的重做由 [@Owlbay](https://github.com/Owlbay) 主导完成,感谢 Owlbay 投入的大量心血。
---