feat(ota): on-device ota branch [stable|dev|default] channel switch - #7
Merged
Elektr0Vodka merged 7 commits intoSep 14, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an on-device command to switch which OTA release channel an observer node pulls from at runtime, instead of the channel being fixed at build time.
ota branch— report current channel + resolved manifest baseota branch stable|dev|default— set the channel (persisted);default= the build's native channelota update(any admin path)How it works
NodePrefs::ota_channel(uint8,def("ota_ch"), 0=native/1=stable/2=dev) — named JSON key, back-compatible with existing/prefs.json.src/helpers/OtaChannel.hresolves the selector to a compile-time base macro.build.shbakes three bases into every observer build:OTA_MANIFEST_BASE(native),OTA_MANIFEST_BASE_STABLE(/mqtt/v),OTA_MANIFEST_BASE_DEV(/mqtt/dev/v).otaFromManifest()takes the base as a parameter; theota checkpath and the repeater/room-server deferred-flash path resolve it from prefs.Tests
test/test_ota_channel(envnative_ota_channel): resolver + arg parser — 6/6.test_config_serializer:ota_channeldefault / round-trip / missing-key — +3.Dependency (out of scope here)
Dev-channel OTA fetch needs
DutchMeshCore-OTAfeat/dev-stable-ota-channelsdeployed (serves/mqtt/dev/v) + Cloudflare "Always Use HTTPS: Off" + bot-challenge Skip rules on/mqtt/dev/*. Stable channel unaffected.Design & plan:
docs/superpowers/specs/2026-09-14-ota-device-channel-switch-design.md,docs/superpowers/plans/2026-09-14-ota-device-channel-switch.md.🤖 Generated with Claude Code