feat: pin sends to testowy channel (index 2), never primary (v0.1.3) #5

Merged
kamilkrzywda merged 1 commits from feat/send-testowy-channel into main 2026-09-23 22:06:01 +02:00
Owner

All POST /api/send traffic now targets the "testowy" test channel instead of the primary channel, so bot messages can't land on real mesh traffic.

  • buildTextToRadio(to, text, channelIndex) — channel index is now a parameter (was hardcoded channel: 0)
  • MeshService reads MESH_SEND_CHANNEL env (default "2" = testowy, 3rd slot) once at construction and passes it to the codec; comment documents the pinning rationale
  • New unit test captures outbound bytes on the fake bridge, decodes the ToRadio and asserts channel === 2 on the default path — 12/12 green
  • README + AGENTS.md API section document MESH_SEND_CHANNEL and the index-2 pinning

v0.1.3 + CHANGELOG entry per AGENTS.md. Verified: npm run build ✓, vitest 12/12 ✓, docker compose build ✓.

All POST /api/send traffic now targets the "testowy" test channel instead of the primary channel, so bot messages can't land on real mesh traffic. - `buildTextToRadio(to, text, channelIndex)` — channel index is now a parameter (was hardcoded `channel: 0`) - MeshService reads `MESH_SEND_CHANNEL` env (default `"2"` = testowy, 3rd slot) once at construction and passes it to the codec; comment documents the pinning rationale - New unit test captures outbound bytes on the fake bridge, decodes the ToRadio and asserts `channel === 2` on the default path — 12/12 green - README + AGENTS.md API section document MESH_SEND_CHANNEL and the index-2 pinning v0.1.3 + CHANGELOG entry per AGENTS.md. Verified: npm run build ✓, vitest 12/12 ✓, docker compose build ✓.
kamilkrzywda added 1 commit 2026-09-23 22:05:51 +02:00
kamilkrzywda merged commit 3062f40899 into main 2026-09-23 22:06:01 +02:00
kamilkrzywda deleted branch feat/send-testowy-channel 2026-09-23 22:06:01 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OpenCode/MeshBot#5