Skip to content

Subscribe to all pyMC companion channels (emcomm, weather, etc.)#110

Merged
d3mocide merged 1 commit into
mainfrom
claude/lucid-maxwell-aw81et
Jun 17, 2026
Merged

Subscribe to all pyMC companion channels (emcomm, weather, etc.)#110
d3mocide merged 1 commit into
mainfrom
claude/lucid-maxwell-aw81et

Conversation

@d3mocide

Copy link
Copy Markdown
Owner

Summary

  • _discover_companion only returned the first companion from /api/companion/index, so only one channel's SSE stream was ever opened
  • Replaced it with _discover_all_companions which returns every companion the repeater has registered
  • _run_source now spawns one concurrent SSE task per companion, so emcomm, weather, and any other channels receive messages alongside public
  • If the source URL has a ?companion= lock, that behavior is preserved (single task)

Test plan

  • Restart the poller and check logs for [meshcore] N companion(s) at <url>: <list> — should list all registered companions
  • Confirm messages arrive in the Comms panel from channels other than public (emcomm, weather, etc.)
  • Confirm existing public channel messages still appear normally
  • Confirm a source URL with ?companion=X still only subscribes to that one companion

https://claude.ai/code/session_01E6BhzRJuivUEz7uxxoygHT


Generated by Claude Code

_discover_all_companions now returns every companion from
/api/companion/index instead of stopping at the first match.
_run_source spawns one SSE task per companion so messages from
emcomm, weather, and other channels are received alongside public.

https://claude.ai/code/session_01E6BhzRJuivUEz7uxxoygHT
@d3mocide d3mocide marked this pull request as ready for review June 17, 2026 01:22
@d3mocide d3mocide merged commit 169bcf9 into main Jun 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants