fix: bound Slack approval block text - #27441
Closed
2001Y wants to merge 1 commit into
Closed
Conversation
2001Y
force-pushed
the
fix/slack-approval-block-limit
branch
from
May 17, 2026 16:15
021b1f1 to
7331f66
Compare
2001Y
force-pushed
the
fix/slack-approval-block-limit
branch
from
May 17, 2026 16:58
7331f66 to
c885389
Compare
austinpickett
requested changes
May 19, 2026
austinpickett
left a comment
Collaborator
There was a problem hiding this comment.
Please use .github/PULL_REQUEST_TEMPLATE.md
Contributor
Author
|
Updated the PR body to the repository template and re-ran the targeted Slack approval regression suite. The linked Copilot reviews failed before producing inline comments, so there were no Copilot code items to address on this PR. |
Contributor
|
Thanks for the Slack approval fix. This has since been implemented on main by a broader Slack approval UX fix, so I think this PR can be closed as already handled. Evidence from this automated hermes-sweeper review:
The PR's discussion and the related #35495 cross-reference were useful in tracking the affected Slack approval path. |
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.
What does this PR do?
Bounds Slack approval Block Kit section text so approval buttons do not fail with Slack
invalid_blockserrors when the command and/or approval reason is long.The fix budgets the command preview and reason text together against Slack's 3000-character
section.text.textlimit. It keeps short reasons intact and only truncates the reason when the combined section would exceed Slack's limit.Related Issue
N/A — observed Slack approval UI failure from oversized Block Kit section text.
Type of Change
Changes Made
section.text.textwithin Slack's 3000-character limit.tests/gateway/test_slack_approval_buttons.pyfor long approval text.How to Test
Latest local verification:
The warnings are existing async mock RuntimeWarnings in Slack thread-context tests and are not introduced by this PR.
Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation and Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/AScreenshots / Logs
Targeted pytest output is included above. No UI screenshot; this is a Slack Block Kit payload-size guard.