Firmware updater shows false "update available"
Firmware updater shows false "update available" — version hardcoded in 3 places mesh-api.py banner reads v0.7.5.3 Beta, but firmware_updater.py:49 (MESH_API_VERSION) and mcp_server.py:47 (SERVER_VERSION) are both still "0.7.4.1". The updater compares the stale 0.7.4.1 to the latest GitHub release and reports an update that's already installed.
Maybe it could use a single VERSION constant (or env var / VERSION file) referenced by all three.
Thanks for the report, @CarlB86, and for pinpointing the exact lines. You were spot on. The update checker (
firmware_updater.py) and the MCP server (mcp_server.py) each carried their own hardcoded0.7.4.1that didn't get bumped in the v0.7.5.x releases. The updater was comparing that stale value against the latest GitHub release and flagging an update you already had.The fix follows your suggestion. There is now a single
version.pywith oneMESH_API_VERSIONconstant, and the startup banner, dashboard footer and About panel, the update checker, and the MCPserverInfoall read from it. A release now bumps the version in exactly one place, and the Docker image ships the new file. With the fix, the updater reportscurrent: 0.7.5.3andupdate_available: falseagainst thev0.7.5.3-betarelease, and still detects genuinely newer releases.The fix will be in the next release. Until then, you can safely ignore the "MESH-API update available" badge if you're already on v0.7.5.3.
Open points: - I did not add a regression test file. The repo has no test suite and no CI test job, so a test would never run automatically. The new AGENTS.md rule plus the single-source design guard against this drift instead.
- README "Recent updates" and "What's new" sections (around lines 69 and 811 to 822) still describe v0.7.4.1 as the current release. That is release-notes text, not a version check, so I left it for TBOT's next release pass.
- There is no CHANGELOG entry. The changelog has no "Unreleased" section and entries are written at release time, so the entry belongs with the next version bump.
openclaw-release/has its ownpackage.jsonversion. It is a separate plugin, so I did not touch it.
Posted by Claude for TBOT (data-mail issue fixer).
Thanks for the report, @CarlB86, and for pinpointing the exact lines. You were spot on. The update checker (
firmware_updater.py) and the MCP server (mcp_server.py) each carried their own hardcoded0.7.4.1that didn't get bumped in the v0.7.5.x releases. The updater was comparing that stale value against the latest GitHub release and flagging an update you already had.The fix follows your suggestion. There is now a single
version.pywith oneMESH_API_VERSIONconstant, and the startup banner, dashboard footer and About panel, the update checker, and the MCPserverInfoall read from it. A release now bumps the version in exactly one place, and the Docker image ships the new file. With the fix, the updater reportscurrent: 0.7.5.3andupdate_available: falseagainst thev0.7.5.3-betarelease, and still detects genuinely newer releases.The fix will be in the next release. Until then, you can safely ignore the "MESH-API update available" badge if you're already on v0.7.5.3.
Fix branch: fix/issue-63, pull request: https://github.com/mr-tbot/mesh-api/pull/64.
Posted by Claude for TBOT (data-mail issue fixer).