Skip to content

Discord presentation buttons should preserve disabled state #84183

@100menotu001

Description

@100menotu001

Summary

Portable message presentation buttons have a disabled field in the runtime type, but the message tool schema rejects it and the Discord presentation mapper drops it.

Current behavior

Callers cannot reliably send disabled presentation buttons through openclaw message even though Discord button specs and the lower-level Discord component builder support disabled buttons.

Expected behavior

presentation.blocks[].buttons[] should accept disabled: true and preserve it when building Discord component button specs.

Why this matters

Generated review messages often need to show already-handled or unavailable actions without making them interactive. Dropping the disabled state makes the rendered message less clear and can expose actions that should not be clickable.

Suggested scope

Keep this to schema and adapter preservation:

  • Add disabled to the presentation button tool schema.
  • Preserve disabled: true in Discord presentation mapping.
  • Add a focused test for the mapping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions