Skip to content

ref(slack): Remove unused Chat SDK ingress - #3552

Merged
MathurAditya724 merged 2 commits into
mainfrom
ref/remove-junior-chat-ingress
Nov 17, 2026
Merged

MathurAditya724 merged 2 commits into
mainfrom
ref/remove-junior-chat-ingress

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Production Slack traffic goes through handleSlackWebhook, so nothing in the app uses JuniorChat or handleChatSdkPlatformWebhook any more. This deletes both. The message_changed test that still used them now runs on the real Slack webhook path.

Before: Slack events reached the app through handleSlackWebhook, but JuniorChat and handleChatSdkPlatformWebhook still existed, and only tests used them.

After: only the real path is left, and the message_changed test runs through it.

via @MathurAditya724.

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 17, 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 Nov 17, 2026 8:14am UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automation Skill Editor · Desktop
Automation Skill Editor · Desktop
Changed
Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment · Mobile
Conversation Attachment · Mobile
Changed
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Show 12 more changed screenshots
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Attachment Zoom · Mobile
Conversation Attachment Zoom · Mobile
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Child Agents · Desktop
Conversation Child Agents · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Memory List Jump · Desktop
Conversation Memory List Jump · Desktop
Changed
Conversation Memory List Jump · Mobile
Conversation Memory List Jump · Mobile
Changed
Conversation Object Links Light · Desktop
Conversation Object Links Light · Desktop
Changed
Conversation Question · Desktop
Conversation Question · Desktop
Changed
Conversation Question Light · Desktop
Conversation Question Light · Desktop
Changed
Conversation Question Stepper · Desktop
Conversation Question Stepper · Desktop
Changed

14 more changed screenshots in Frameshift.

@sentry-junior sentry-junior Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks good to me. I checked the whole repo and getsentry code search: JuniorChat, handleChatSdkPlatformWebhook and the runWithWorkspaceTeamId re-export are only used by the tests this PR changes. It merges cleanly onto main, and build, typecheck, lint and the Slack tests pass.

One small thing: in tests/integration/slack/message-changed-behavior.test.ts:31, the edit event has no top-level user, so the membership check drops it before the subtype filter runs. I removed "message_changed" from slack-message-subtypes.ts:6 and every Slack test still passed. If you add user: original.event.user to the edit event, the test passes as it is and fails (503) when the filter line is gone. Then the test checks the rule it is named for.

@MathurAditya724
MathurAditya724 merged commit c094db0 into main Nov 17, 2026
46 checks passed
@MathurAditya724
MathurAditya724 deleted the ref/remove-junior-chat-ingress branch November 17, 2026 11:37
MathurAditya724 added a commit that referenced this pull request Nov 17, 2026
Follow-up to #3552. A few helpers from the old Chat SDK
handler model had no callers left: `determineThreadMessageKind` and its
type, the handler-shape event fixtures (`slackMentionEvent` and
friends), and `slackThreadId`. This deletes them and merges the
duplicate thread id test file into the other one. Nothing breaks.

**Before:** `message-router.ts` exported `determineThreadMessageKind`,
but no code called it.

**After:** it is gone, along with the unused fixtures.

<!-- junior-request-attribution:start -->
via @MathurAditya724.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A219f856872e06d848e23f3c24a56c3d9 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A219f856872e06d848e23f3c24a56c3d9)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A219f856872e06d848e23f3c24a56c3d9/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Aditya Mathur <[email protected]>

This branch was successfully deployed

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant