Skip to content

Discord model picker custom_id exceeds 100 chars (limit) #25695

@cbcampos

Description

@cbcampos

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

  1. Shorten the key names in the custom_id (e.g., u instead of userId, cmd instead of command)
  2. Or implement compression for longer values
  3. Or increase the limit if Discord supports it

Environment

  • OpenClaw: 2026.2.23
  • Channel: Discord
  • Node: Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions