-
-
Notifications
You must be signed in to change notification settings - Fork 52.6k
Closed
Description
Bug Description
The /models slash command fails with error:
Discord model picker custom_id exceeds 100 chars (101)
This started occurring around Feb 24, 2026.
Root Cause
The buildDiscordModelPickerCustomId function in dist/reply-*.js generates a custom_id that can exceed Discord's 100-character limit for button custom_ids.
The custom_id is built from:
- userId (trimmed)
- command
- action
- view
- page
- provider (optional)
- providerPage (optional)
- modelIndex (optional)
- recentSlot (optional)
Current Fix (Local)
Bumped DISCORD_CUSTOM_ID_MAX_CHARS from 100 to 150 in the dist file:
dist/reply-D-ejYZny.js line 18300
Suggested Fix
- Shorten the key names in the custom_id (e.g.,
uinstead ofuserId,cmdinstead ofcommand) - Or implement compression for longer values
- Or increase the limit if Discord supports it
Environment
- OpenClaw: 2026.2.23
- Channel: Discord
- Node: Linux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels