discord_radio: presence follows voice; name why a voice join fails #38
Merged
logan
merged 2 commits from 2026-10-04 22:52:31 -04:00
fix/discord-voice-join into main
No Reviewers
Labels
Clear labels
area/ai-pipeline
area/auth
area/billing
area/correlation
area/discord
area/frontend
area/governance
area/growth
area/infra-deploy
area/legal
area/map
area/mqtt
area/node-ota
area/osint
area/recording-audio
area/sdr-radio
area/transcription
board
board:agenda
Scene/entity extraction, summarizer, AI providers, embeddings
AuthN/Z, roles, tenancy/org scoping, API keys, credentials
Plans, entitlements, AI spend accounting and caps
Incident correlation, linking, lifecycle, severity, corr_debug
Discord bot, radio bots, voice streams, bot tokens, webhooks
Web UI: Next.js app and the edge-node local dashboard
Board process, minutes, unattended runner, agent tooling
Go-to-market, outreach, cold email, discovery conversations
CI/CD, VM, registry, Firestore rules/indexes deploy, Terraform/Caddy
ToS, retention, licences/DAAs, CAN-SPAM, E&O, name suppression
Live map: pins, paths, tiles, legend, geocoding
Node-C2 MQTT, checkins, commands, node sweeper, dynsec
Node install, enrollment, OTA updater, image skew
External feeds: cameras, 511, ADS-B, AIS, outages, and their licences
Call capture, boundaries, PulseAudio, ring buffer, trimming, attribution
OP25 decode, SDR hardware/tuning, conventional, second SDR, mesh radio
STT, transcript correction, place verification, name accuracy
Board process: minutes and board-filed items
Needs board scoping at the next sitting; CEO removes the label once scoped
kind
behavior-bug
Wrong product behavior; the instrument reads it correctly
kind
measurement-bug
Corrupts the recording/instrument (debug data, evals, health checks), not behavior
priority
p0
Drop everything: prod broken, live exposure, or owner-ruled P0
priority
p1
Next up: blocks a gate, a customer, or core incident quality
priority
p2
Normal: real defect or planned work, schedule in turn
priority
p3
Low: minor, cosmetic, or someday
status
blocked
Waiting on an external party, spend, or another issue
status
in-progress
Branch or PR open against it
status
needs-decision
Waiting on an owner or board ruling before work
status
needs-info
Root cause or repro unknown; needs a reading first
type
bug
Something built is wrong: code, data, or a measurement
type
chore
Maintenance, refactor, tests, pinning, cleanup: no user-visible change
type
decision
A ruling to make or record: board minutes, owner calls, legal reviews
type
docs
Docs, runbooks, CLAUDE.md, skills, SOPs
type
feature
New capability or an extension of an existing one
type
security
Security, privacy, credential or tenant-isolation exposure
type
tracking
Tracker, checklist, initiative or punch-list spanning several changes
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: logan/node-26#38
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Live symptom (prod fabdf58, nodes on v1 =
44e41b3): the radio bot comes online in Discord with the right presence but never joins the voice channel.What the investigation found
channel.connect()succeeds, then never clears it. So that presence means the bot did join at least once and voice later dropped or keeps failing to rejoin, with nothing visible in Discord. It now follows voice on every reconcile pass.Could not connect to the voice channel (TimeoutError: ). The edge now checks View Channel, Connect and Speak and the user limit before joining, and reportsmissing_permissionsorchannel_fullnaming the missing permission. Timeouts get a code of their own,connect_timeout, with readable text.davey, which the[voice]extra pulls in.uv pip compileof this requirements.txt for py3.14 on aarch64 and x86_64 resolves discord.py 2.7.1 + davey 0.1.6 + PyNaCl 1.5.0. The Dockerfile has ffmpeg, libopus0 and libpulse0. Without davey, discord.py raisesRuntimeError: davey library needed in order to use voice, and the admin page would show that text.>=2.7is now a floor.not_in_guild/bad_channel. Neither error is swallowed (d).Not covered here
The root cause on live is still unconfirmed. Tracked in the linked issue, along with the reading that tells the cases apart.
Tests
pytest(drb-edge-node): 303 passed, 12 skipped. 4 new tests, all failing on v1 and passing here.flake8 --max-line-length=120: touched files clean. The one violation left is the existingtests/test_config_manager.py:6:1: F401(DEFERRED.md).🤖 Generated with Claude Code
Root cause still open: #39 (what to read on the admin page after this deploys).