Skip to content

Slack: enrich modal input payload normalization#18455

Closed
Solvely-Colin wants to merge 1 commit into
openclaw:mainfrom
Solvely-Colin:codex/slack-modal-input-features
Closed

Slack: enrich modal input payload normalization#18455
Solvely-Colin wants to merge 1 commit into
openclaw:mainfrom
Solvely-Colin:codex/slack-modal-input-features

Conversation

@Solvely-Colin

@Solvely-Colin Solvely-Colin commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a combined modal-input feature package for Slack interactions by normalizing richer input element payloads.

  • normalize modal number_input with parsed inputNumber
  • normalize modal email_text_input with inputEmail
  • normalize modal url_text_input with canonical inputUrl
  • normalize modal rich_text_input with richTextValue
  • expose inputKind for text/number/email/url/rich_text input families
  • expand modal tests to cover radio buttons, checkboxes, number/email/url, and rich text input payloads

Scope

  • src/slack/monitor/events/interactions.ts
  • src/slack/monitor/events/interactions.test.ts

Validation

  • pnpm test src/slack/monitor/events/interactions.test.ts
  • pnpm check

Dependency

Depends on:

If reviewing before dependencies merge, review tip commit: 2bd414cc2.

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack agents Agent runtime and tooling size: XL labels Feb 16, 2026

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

17 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment on lines +142 to +143
const inputEmail =
actionType === "email_text_input" && inputValue?.includes("@") ? inputValue : undefined;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

email validation only checks for @ character

the current validation inputValue?.includes("@") is very basic and will accept invalid emails like "@@", "@", or "foo@". while Slack's email_text_input type does client-side validation, consider adding a more robust check or document that this relies on Slack's validation

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/slack/monitor/events/interactions.ts
Line: 142:143

Comment:
email validation only checks for `@` character

the current validation `inputValue?.includes("@")` is very basic and will accept invalid emails like `"@@"`, `"@"`, or `"foo@"`. while Slack's `email_text_input` type does client-side validation, consider adding a more robust check or document that this relies on Slack's validation

<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>

How can I resolve this? If you propose a fix, please make it concise.

@Solvely-Colin
Solvely-Colin force-pushed the codex/slack-modal-input-features branch from eaf2ee6 to 7e6fb0f Compare February 17, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants