From 160de0bd094a66450eddf6cf0d361c49168136b4 Mon Sep 17 00:00:00 2001 From: fylorn <249551762+fylorn@users.noreply.github.com> Date: Mon, 28 Sep 2026 09:16:20 +0800 Subject: [PATCH 1/2] chore: 2026.9.22 - package.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml and the thinkwatch-lite entry of src-tauri/Cargo.lock at 2026.9.22 - release-notes/2026.9.22.md: core 0.54.0 (protocol 27), the request history that the new request store empties, and the time to first token and generation speed it adds (#240) Co-Authored-By: Claude Opus 5.5 --- package.json | 2 +- release-notes/2026.9.22.md | 19 +++++++++++++++++++ src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 5 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 release-notes/2026.9.22.md diff --git a/package.json b/package.json index e8f8bb25..5abbc4f2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "thinkwatch-lite", "private": true, "description": "Desktop app for a local AI API gateway on macOS, Windows and Linux", - "version": "2026.9.21", + "version": "2026.9.22", "type": "module", "packageManager": "pnpm@11.13.0", "scripts": { diff --git a/release-notes/2026.9.22.md b/release-notes/2026.9.22.md new file mode 100644 index 00000000..3cf3b8d7 --- /dev/null +++ b/release-notes/2026.9.22.md @@ -0,0 +1,19 @@ +**Upgrade notes:** +- The bundled core is now 0.54.0, which speaks control-plane protocol 27. A remote server has to run core 0.54.0 too: this version does not connect to an older core, and 2026.9.21 and earlier do not connect to 0.54.0. +- **Request history is emptied.** The request store changed format, so the requests recorded by an earlier version are removed when the new core first starts. Settings, keys and upstreams are kept. + +**Time to first token:** latency now counts to the first token of the answer instead of to the response headers. The headers of a streamed response usually come back as soon as the upstream receives the request; the first token comes only after the upstream has queued the request and read the prompt. Traffic, the overview and the upstreams page show this time, and the response-header time moves into the request details. + +**Generation speed:** a new figure, in tokens per second, is measured from the first token to the end of the answer. +- Traffic: hovering a request's latency shows its first token, total time, generation time and speed. +- Request details: the speed is one of the five figures at the top, and the bar is split into the wait for the first token and the generation. +- Overview: a new Generation speed section gives the median speed by model and by upstream. +- Upstreams: the timing column shows the median first token, with the median speed below it. + +Some requests have no speed because it cannot be measured honestly: +- responses that are not streamed; +- cancelled and failed requests; +- generations shorter than half a second; +- answers whose model reasoned without showing it, when the upstream does not report how many tokens the reasoning took. + +**Menu bar:** the generation speed in the menu was wrong. A single response that was not streamed could push it to tens of thousands of tokens per second. It now uses the same measurement. diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index be6a3dc7..b971d792 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -4756,7 +4756,7 @@ dependencies = [ [[package]] name = "thinkwatch-lite" -version = "2026.9.21" +version = "2026.9.22" dependencies = [ "anyhow", "block2", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 4342810a..9d38ec4d 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thinkwatch-lite" -version = "2026.9.21" +version = "2026.9.22" edition = "2024" # **这个数决定依赖能升到哪一版。**edition 2024 的解析器只挑声明的 Rust # 版本编得动的依赖:写 1.85 的时候,`cargo update` 一直停在旧的 time 和 diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index ca0caa17..53da4fc8 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "ThinkWatch Lite", - "version": "2026.9.21", + "version": "2026.9.22", "identifier": "app.thinkwatch.lite", "build": { "beforeDevCommand": "pnpm dev", From 5b69d3c291efcdcb49b5dc416f68f850bed06980 Mon Sep 17 00:00:00 2001 From: fylorn <249551762+fylorn@users.noreply.github.com> Date: Mon, 28 Sep 2026 10:12:11 +0800 Subject: [PATCH 2/2] release-notes: add #237 and #242 to 2026.9.22 - Menu bar: Today catches up when the computer wakes after sleeping through midnight, or when the clock or time zone changes; the traffic page's today and the keys page's 24-hour usage follow (#242) - Routing: model names outside the suggestions are kept in a rule's model condition, Change model to and the dry run (#237) Co-Authored-By: Claude Opus 5.5 --- release-notes/2026.9.22.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/release-notes/2026.9.22.md b/release-notes/2026.9.22.md index 3cf3b8d7..f5487565 100644 --- a/release-notes/2026.9.22.md +++ b/release-notes/2026.9.22.md @@ -16,4 +16,8 @@ Some requests have no speed because it cannot be measured honestly: - generations shorter than half a second; - answers whose model reasoned without showing it, when the upstream does not report how many tokens the reasoning took. -**Menu bar:** the generation speed in the menu was wrong. A single response that was not streamed could push it to tens of thousands of tokens per second. It now uses the same measurement. +**Menu bar:** +- The generation speed in the menu was wrong: a single response that was not streamed could push it to tens of thousands of tokens per second. It now uses the same measurement. +- After the computer slept through midnight, **Today** kept showing the previous day's tokens and cost until a request came in or the menu was opened. It now catches up as soon as the computer wakes, and when the clock or the time zone is changed. The traffic page, which shows only the time for today's requests, and the keys page's usage over the last 24 hours catch up the same way. + +**Routing:** a model name that is not among the suggestions is kept, in a rule's model condition, in **Change model to** and in the dry run. Before, closing the suggestions cleared a name the list did not have, such as a relay's own model name or a model released after the upstream's list was fetched, and turned a shorter name back into the suggestion picked earlier.