Skip to content

refactor(slack): Reuse SDK types and validate input - #1943

Merged
dcramer merged 2 commits into
mainfrom
fix/slack-type-boundaries
Sep 25, 2026
Merged

dcramer merged 2 commits into
mainfrom
fix/slack-type-boundaries

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Follow up on #1936. Replace copied Slack types and payload casts with SDK types. Keep local validation only where the SDK types are incomplete.

Reject malformed files, blocks, previews, and timestamps before Chat SDK parses them. Preserve nested message content.

Validate slash-command IDs once and carry their types into the handler. Remove the synthetic SDK event, duplicate checks, and redundant component tests.

via David Cramer.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
junior-docs Ready Ready Preview Sep 25, 2026 6:37pm UTC

Request Review

@sentry-junior sentry-junior Bot changed the title refactor(slack): Tighten input boundaries and reuse SDK types refactor(slack): Reuse SDK types and validate input Sep 25, 2026
@dcramer
dcramer marked this pull request as ready for review September 25, 2026 18:38
@dcramer
dcramer enabled auto-merge (squash) September 25, 2026 18:39
@github-actions github-actions Bot added the risk: high PR risk score: high label Sep 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

2 screenshot changes — 2 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Event Log · Desktop
Conversation Event Log · Desktop
Changed
Conversation Image Reply · Desktop
Conversation Image Reply · Desktop
Changed

@dcramer
dcramer merged commit bdfe4bb into main Sep 25, 2026
46 checks passed
@dcramer
dcramer deleted the fix/slack-type-boundaries branch September 25, 2026 18:42

This branch was successfully deployed

1 active deployment
Preview – junior-docs — b5065150 Deployed Sep 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant