Skip to content

fix(slack): wake passive router on outstanding-request answers - #1141

Draft
sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/passive-router-outstanding-ask
Draft

fix(slack): wake passive router on outstanding-request answers#1141
sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/passive-router-outstanding-ask

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

The subscribed-thread classifier treated answers to Junior's own asks as side conversation, so threads stayed silent until someone re-tagged Junior.

Evidence

In #jr-cramer, Junior asked staging for raw validation evidence, staging replied with that evidence, and prod skipped both replies as side_conversation (00:28:50, 00:28:52). David had to @jr ^ to resume.

Outstanding-request turn-back

When Junior's latest prior message is an ask for info/evidence and the latest message supplies it, route should_reply=true even without an explicit mention. That includes answers from other bots. Confidence threshold is lowered for those cases.

Bare bot-id mention preflight

Normalized @U0BOT / <@U0BOT> self-mentions no longer preflight-skip as named_mention / slack_mention other-party. botUserId is wired lazily through factory → reply policy → decision preflight.

Verification

  • pnpm --filter @sentry/junior exec tsc -p tsconfig.json --noEmit
  • unit test file updated for bot-id preflight cases
  • vitest full package run blocked here (no local Postgres/Docker)

Risk

Slightly more replies after Junior asks another person/bot for details. Still fails closed on plain status chatter and human-to-human coordination.

Requested by David Cramer via Junior.

--

View Junior Session

The subscribed classifier treated bot/human answers to Junior's own asks as
side conversation, so threads stayed silent until an explicit re-tag. Teach
routing that fulfilling an outstanding assistant request is a turn-back, and
stop bare @botUserId mentions from preflight-skipping as other-party.

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

vercel Bot commented Jul 30, 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 Jul 30, 2026 12:54am

Request Review

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