Skip to content

fix(chat): deliver answers that mention [[NO_REPLY]] - #1714

Merged
dcramer merged 7 commits into
mainfrom
fix/no-reply-mixed-mention-delivers
Aug 27, 2026
Merged

dcramer merged 7 commits into
mainfrom
fix/no-reply-mixed-mention-delivers

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Turns that mentioned [[NO_REPLY]] in normal answer text never posted to Slack.

Cause: any mention of the marker was treated as intentional silence.

Fix: only an exact marker-only reply stays silent. Mixed text strips the marker and posts the rest.

Proof: Slack finalized-reply integration posts the stripped answer and completes successfully.

Requested by David Cramer.

--

View Junior Session in Sentry

sentry-junior Bot and others added 2 commits August 27, 2026 04:47
Mixed marker + prose was treated as intentional silence, so turns that
discussed the protocol marker never posted to Slack.

Co-Authored-By: David Cramer <[email protected]>
Mixed marker + prose was treated as intentional silence, so turns that
discussed the protocol marker never posted to Slack. Keep only exact
marker-only replies silent and prove delivery through the Slack
finalized-reply path.

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Aug 27, 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 27, 2026 5:46am

Request Review

Drop extra telemetry and duplicate unit coverage. Keep the Slack
finalized-reply integration as the product proof.

Co-Authored-By: David Cramer <[email protected]>
@dcramer
dcramer marked this pull request as ready for review August 27, 2026 05:23
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 27, 2026
Comment thread packages/junior/src/chat/no-reply.ts Resolved
Comment thread packages/junior/src/chat/no-reply.ts Resolved
Only remove the marker. Do not collapse spaces across the whole reply.
Only silence when the whole reply is exactly [[NO_REPLY]]. Do not strip
the marker from normal answers.
Decide silence from per-message reply decisions so several trailing
exact markers still complete successfully instead of execution_failure.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f1eb7bd. Configure here.

Require an exact whole-message [[NO_REPLY]] marker for silent success.
Tool-call-only terminal tails stay execution_failure.
@dcramer
dcramer merged commit 6634df6 into main Aug 27, 2026
38 checks passed
@dcramer
dcramer deleted the fix/no-reply-mixed-mention-delivers branch August 27, 2026 05:51
dcramer added a commit that referenced this pull request Sep 2, 2026
Silent task runs were posting reasoning + `[[NO_REPLY]]` to Slack.

**Cause:** After #1714, only an exact marker-only reply was silent.
Models often put reasoning first, then the marker in the same message.

**Fix:**
- Silence is per assistant message via `decideReply` (`suppress`).
- `isNoReplyMarker` matches when one message ends with `[[NO_REPLY]]`.
- Turn success with intentional silence only when terminal texts are
empty/marker and there is no deliverable text (tool-call suppress alone
is not silence).
- Mid-sentence mentions still deliver.
- Task reply contract still asks for exactly `[[NO_REPLY]]` when silence
is intended.
- Dropped `containsNoReplyMarker` and whole-block blanking.

<!-- junior-request-attribution:start -->
Requested by Junior system actor `resource-event`.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC07P2KGJGG0%3A1788357831.929489 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC07P2KGJGG0%3A1788357831.929489)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC07P2KGJGG0%3A1788357831.929489/?project=4510944073809921)

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

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Bojan Oro <[email protected]>
Co-authored-by: David Cramer <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 7005fce8 Deployed Aug 27, 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