Problem
When installing via Helm with --set discord.allowedChannels[0]="<CHANNEL_ID>", the channel ID gets treated as a number and converted to float64, losing precision:
# Expected
allowed_channels = ["1234567890123456789"]
# Actual
allowed_channels = ["1.2345678901234568e+18"]
This causes agent-broker to silently ignore all messages because the channel ID never matches.
Root Cause
Discord Snowflake IDs are 19-digit integers (> 2^53). Helm --set parses them as float64, which only has ~15 digits of precision. The ID gets rounded and rendered in scientific notation.
Workaround
Use --set-string instead:
helm install agent-broker agent-broker/agent-broker \
--set-string discord.allowedChannels[0]="<YOUR_CHANNEL_ID>"
Suggested Fix
- Add a note in the chart README / NOTES.txt warning about
--set-string for channel IDs
- Consider adding a validation in the configmap template to detect scientific notation in channel IDs and fail early
Problem
When installing via Helm with
--set discord.allowedChannels[0]="<CHANNEL_ID>", the channel ID gets treated as a number and converted to float64, losing precision:This causes agent-broker to silently ignore all messages because the channel ID never matches.
Root Cause
Discord Snowflake IDs are 19-digit integers (> 2^53). Helm
--setparses them as float64, which only has ~15 digits of precision. The ID gets rounded and rendered in scientific notation.Workaround
Use
--set-stringinstead:helm install agent-broker agent-broker/agent-broker \ --set-string discord.allowedChannels[0]="<YOUR_CHANNEL_ID>"Suggested Fix
--set-stringfor channel IDs