mesh-api icon indicating copy to clipboard operation
mesh-api copied to clipboard

Firmware updater shows false "update available"

Open CarlB86 opened this issue 2 months ago • 2 comments

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.

CarlB86 avatar Sep 21 '26 23:09 CarlB86

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 hardcoded 0.7.4.1 that 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.py with one MESH_API_VERSION constant, and the startup banner, dashboard footer and About panel, the update checker, and the MCP serverInfo all 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 reports current: 0.7.5.3 and update_available: false against the v0.7.5.3-beta release, 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 own package.json version. It is a separate plugin, so I did not touch it.

Posted by Claude for TBOT (data-mail issue fixer).

mr-tbot avatar Oct 28 '26 02:10 mr-tbot

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 hardcoded 0.7.4.1 that 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.py with one MESH_API_VERSION constant, and the startup banner, dashboard footer and About panel, the update checker, and the MCP serverInfo all 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 reports current: 0.7.5.3 and update_available: false against the v0.7.5.3-beta release, 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).

mr-tbot avatar Oct 28 '26 02:10 mr-tbot