Repository navigation
ThinkWatch Core 0.87.0
This release lets an upstream set a minimum generation speed: a streamed answer that keeps generating below it is ended with a retryable error, so the client sends the request again.
Upgrade notes
- The control-plane protocol version goes from 57 to 58.
- The request store's schema is unchanged (28); nothing is cleared.
- New configuration key
providers[].min_speed; existing configurations are valid as they are. - New message codes:
config.min_speed_range,gw.upstream.too_slow.
Minimum generation speed. Some self-hosted servers occasionally drop to a few tokens per second partway through an answer and recover when the request is sent again. Neither the idle timeout nor failover covers this: content is still arriving, and it has already reached the client.
providers[].min_speed: { tokens_per_sec, window_secs }turns it on for one upstream:tokens_per_secfrom 1 to 1000,window_secsfrom 5 to 120 (20 when left out). Unset means off.- From the first token on, a streamed answer (SSE or Bedrock eventstream) is judged once a second on its average speed over the last
window_secsseconds, estimated the same way as the live speed. - Pauses are not judged: nothing is decided while no content has arrived for over a second, and silences of 5 seconds or more (a quarter of the window when it is under 20 seconds) are taken out of the window and left to the idle timeout. Reasoning that arrives as a summary (Anthropic, Gemini, Bedrock, the Responses reasoning summary) is not judged either; raw reasoning such as Chat
reasoning_contentis. Judging stops once the answer has ended. - Non-streamed answers, WebSocket turns and Gemini streams requested without
alt=sseare not judged. - Below the minimum, the answer ends with a 503 error in the client's format (Anthropic
overloaded_error, Responsesserver_error, GeminiUNAVAILABLE) and the upstream connection is dropped. Claude Code and Codex resend the request on their own. - The request fails with
gw.upstream.too_slow, keeps the measured speed (also onRequestFailed.tokens_per_sec) and the usage generated so far. The upstream records one failure and the conversation stops sticking to it for that turn, so a resent request prefers another candidate. Upstream checkup and/token-ratemedians leave out failed requests. ProviderViewandProviderInputcarrymin_speed; config packs, sharing and sync carry it with the upstream. One-click repair dropsmin_speedwhen the rate is out of range and resetswindow_secsto 20 when the window is.
Gemini live speed. The streamed output count no longer includes hidden reasoning (thoughtsTokenCount), which made the live speed read 0 until the text estimate caught up.
Security. The plugin sandbox's Wasmtime is updated to 49.0.5 for RUSTSEC-2026-0422, RUSTSEC-2026-0423 and RUSTSEC-2026-0424.
Downloads
| Platform | Binary | Archive for server installation |
|---|---|---|
| Linux, x86_64 | twcore-x86_64-unknown-linux-gnu |
twcore-x86_64-unknown-linux-gnu.tar.gz |
| Linux, aarch64 | twcore-aarch64-unknown-linux-gnu |
twcore-aarch64-unknown-linux-gnu.tar.gz |
| macOS, Apple silicon | twcore-aarch64-apple-darwin |
— |
| Windows, x64 | twcore-x86_64-pc-windows-msvc.exe |
— |
| Windows, ARM64 | twcore-aarch64-pc-windows-msvc.exe |
— |
Each file is published with a .sha256 file beside it. A Linux archive contains twcore, the systemd unit twcore.service and LICENSE. ThinkWatch Lite includes its own copy of twcore; the files here are for running core separately, such as on a server.
Server installation
On Linux (x86_64 or aarch64), the install script sets up twcore as a systemd service. This installs 0.87.0:
curl -fsSL https://raw.githubusercontent.com/ThinkWatchProject/ThinkWatch-Core/main/scripts/install.sh | sudo sh -s -- --version 0.87.0An installation made with the script switches to 0.87.0 with:
sudo twcore upgrade --version 0.87.0 --restartConfiguration, the remote control port and connecting ThinkWatch Lite are described in docs/server.md.
Verifying a download
A .sha256 file holds the SHA-256 of the file followed by its name. With both files in the current directory, on Linux:
sha256sum -c twcore-x86_64-unknown-linux-gnu.tar.gz.sha256On macOS:
shasum -a 256 -c twcore-aarch64-apple-darwin.sha256On Windows, in PowerShell, the following prints True when the binary matches:
(Get-FileHash .\twcore-x86_64-pc-windows-msvc.exe).Hash -eq (Get-Content .\twcore-x86_64-pc-windows-msvc.exe.sha256).Split()[0]The install script and twcore upgrade check the SHA-256 themselves.
What's Changed
- End streamed answers that generate below an upstream's minimum speed by @fylorn in #384
- Minimum speed: judge only visible, flowing generation by @fylorn in #385
- 0.87.0: minimum generation speed per upstream; Wasmtime 49.0.5 by @fylorn in #386
Full Changelog: v0.86.0...v0.87.0