The desktop preload script explicitly overrides serverConfig.MODEL_VERSION
with the value baked into the desktop binary at build time. This causes
the "New version is available" dialog to fire for self-hosted users
whenever desktop CI builds from a different commit than the server image
(i.e., when v* and s* tags diverge in version.txt).
Use the server's authoritative MODEL_VERSION instead, falling back to
the bundled value when the server does not report one.
Signed-off-by: Shannon Kerr <shannon@exaviz.com>
Co-authored-by: Artyom Savchenko <armisav@gmail.com>
The check_model_version.js CI step was commented out, which allowed
v0.7.413 to ship with MODEL_VERSION=0.7.343 baked into the desktop
client. This causes a blocking "New version is available" dialog for
self-hosted users whose servers have MODEL_VERSION > 0.7.343.
Re-enabling this check will catch future model/version.txt drift
before it reaches a release.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>