mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
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 <noreply@anthropic.com>