From c80ee8b8eca0835c29f20791bddfb24b2eb1bbb0 Mon Sep 17 00:00:00 2001 From: digua Date: Sat, 13 Jun 2026 14:51:13 +0800 Subject: [PATCH] fix(cli): sync cli package version with product version to stop false update notice In CLI Web mode, the frontend displays __APP_VERSION__ injected from the root package.json at build time (0.26.2), while the server-side getVersion() reads apps/cli/package.json at runtime (stuck at 0.25.1). This caused buildWebUpdateCheckResult to compare remote 0.26.2 against local 0.25.1, permanently reporting a false update notice even when the user was already on the latest version. Fix apps/cli/package.json to 0.26.2 to align with the product version. Also extend set_release_version.sh to keep apps/cli/package.json in sync with the root package.json on every release, preventing the drift from recurring. apps/desktop/package.json is intentionally kept at 0.0.0 (the desktop runtime uses app.getVersion() with __APP_VERSION__ fallback). Co-Authored-By: Claude Sonnet 4.6 --- apps/cli/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cli/package.json b/apps/cli/package.json index bdb3ef6b..45090175 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,6 +1,6 @@ { "name": "chatlab-cli", - "version": "0.25.1", + "version": "0.26.2", "description": "ChatLab CLI & Service - Chat history analysis tool", "type": "module", "bin": {