fix: truncate persona option text to 75 chars for Slack views.open limit#42
Merged
Sarath1018 merged 1 commit intofeature/darwinfrom May 7, 2026
Merged
fix: truncate persona option text to 75 chars for Slack views.open limit#42Sarath1018 merged 1 commit intofeature/darwinfrom
Sarath1018 merged 1 commit intofeature/darwinfrom
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
swati354
approved these changes
May 7, 2026
rajivml
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The /personas slash command in the Slack bot was failing with:
Error sending select menu: The request to the Slack API failed. (url: https://www.slack.com/api/views.open)
'error': 'invalid_arguments'
'[ERROR] must be less than 76 characters [json-pointer:/view/blocks/0/element/options/27/text/text]'
One or more personas had a combined name • description string exceeding Slack's 75-character limit for plain_text option labels in static_select modals.
Fix
Truncate the option label f"{persona.name} • {persona.description}" to 75 characters before passing it to views.open.
Root Cause
Slack's Block Kit enforces a hard 75-character limit on plain_text option text in static_select elements. Persona option 27 (0-indexed) was exceeding this limit, causing the entire modal to fail.