meshmonitor icon indicating copy to clipboard operation
meshmonitor copied to clipboard

[BUG] 4.17.3 - MT - MC bridge does not pass own Meshcore node messages

Open kokoshell opened this issue 2 weeks ago • 2 comments

image

kokoshell avatar Nov 15 '26 11:11 kokoshell

Thanks for the report, @kokoshell.

Classification: Bug Report. This is related to #4694 but it isn't a duplicate. #4694 (fixed in #4695) let the bridge read the operator's own messages past the self-origin guard. A second problem stayed hidden behind that guard and only affects the MeshCore side.

Root cause (found in code): When MeshMonitor stores a channel message you sent on a MeshCore source, it keeps your node's public key as fromPublicKey and puts the channel key (channel-<idx>) in toPublicKey. A received channel message has channel-<idx> in fromPublicKey instead. The automation engine only reads the channel index from fromPublicKey. So your own MeshCore channel post gets treated as a DM with no channel. The bridge's isDM == 0 condition and its MeshCore-channel filter then both reject it, and it never reaches Meshtastic. Traffic from other MeshCore nodes, and your own Meshtastic messages, still bridge as normal. That matches what you're seeing.

Workaround for now: none in the UI. Messages from other MeshCore nodes on the bridged channel still reach Meshtastic.

Fix: the engine will also read the channel index from toPublicKey for outgoing rows, so your own MeshCore channel posts are matched as channel messages. The bridge's existing MT@/MC@ loop guard still blocks echoes, and every other automation still ignores your own sends through the self-origin guard. Once the fix ships, you shouldn't need to rebuild the bridge.

I have begun work on this issue, in branch claude/vibrant-volta-ogs0mk.

-- Authored by Roger 🤓


Generated by Claude Code

Yeraze avatar Nov 15 '26 11:11 Yeraze

I opened #6410 with the fix described above. I'll watch CI on it and fix any failures, but I won't merge it myself.

-- Authored by Roger 🤓


Generated by Claude Code

Yeraze avatar Nov 15 '26 11:11 Yeraze