Skip to content

fix(slack): keep replies short with a real max size - #1685

Draft
sentry-junior[bot] wants to merge 4 commits into
mainfrom
fix/force-max-message-size-all-replies
Draft

fix(slack): keep replies short with a real max size#1685
sentry-junior[bot] wants to merge 4 commits into
mainfrom
fix/force-max-message-size-all-replies

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

45-line Slack replies are too long for chat.

Hard max is now 1200 characters and 12 lines from slackOutputPolicy. Soft target stays under 800 characters. One short prompt rule steers every platform with those numbers.

This change does not reject long model output. Delivery still splits when needed. Reject/retry for oversized replies is not built yet; the closest existing agent pattern is empty-output retry after history replacement.

Overflow threading under the first message landed in #1684.

Requested by David Cramer.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits August 25, 2026 16:52
Steer every platform reply with the real inline budget from
slackOutputPolicy so Slack and local output share one hard max. Keep the
soft 800-character target, and prefer a canvas or short summary over
multi-message dumps.

Co-Authored-By: David Cramer <david@sentry.io>
Cut the hard inline budget from 2200/45 to 1200 chars and 12 lines so
Slack replies stay short. Prompt steering reads the same policy for every
platform.

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 25, 2026 5:07pm

Request Review

The tighter inline budget splits long resumed replies into more posts.
Drive the resume continuation test from slackOutputPolicy instead of a
fixed 5-message expectation.
One shared length rule for every platform. Soft target stays under 800
characters; hard max still comes from slackOutputPolicy.

Co-Authored-By: David Cramer <david@sentry.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants