Skip to content

fix(chat): silence trailing [[NO_REPLY]] per message - #1761

Merged
dcramer merged 9 commits into
mainfrom
fix/no-reply-trailing-marker-silence
Sep 2, 2026
Merged

dcramer merged 9 commits into
mainfrom
fix/no-reply-trailing-marker-silence

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

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.

Requested by Junior system actor resource-event.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits September 2, 2026 11:38
Models often append prose then [[NO_REPLY]] on silent task runs. After
#1714 those mixed replies posted to Slack instead of staying silent.

Treat text that ends with the marker as intentional silence, and strip
any remaining marker leaks from delivered answers.

Evidence: https://sentry.slack.com/archives/C0AHB7N2JCR/p1788348647293299
Co-Authored-By: Bojan Oro <[email protected]>
Models often put reasoning before the silence marker. Treat the last
terminal assistant unit as intentional silence when it is exactly the
marker or ends with a marker-only line, and drop earlier reasoning in
that block. Hold progressive tool-free delivery one step so a following
marker can cancel prior text.

Evidence: https://sentry.slack.com/archives/C0AHB7N2JCR/p1788348647293299
Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Sep 2, 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 2, 2026 2:48pm UTC

Request Review

@dcramer
dcramer marked this pull request as ready for review September 2, 2026 13:48
@github-actions github-actions Bot added the risk: high PR risk score: high label Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Review screenshots in Frameshift

Locations · Desktop
Locations · Desktop
Changed
System · Desktop
System · Desktop
Changed
Task Executions · Desktop
Task Executions · Desktop
Changed
Tasks · Desktop
Tasks · Desktop
Changed
Tasks List · Desktop
Tasks List · Desktop
Changed
Tasks Runs · Desktop
Tasks Runs · Desktop
Changed
Show 2 more changed screenshots
Workspace Create · Desktop
Workspace Create · Desktop
Changed
Workspace Detail · Desktop
Workspace Detail · Desktop
Changed

Only suppress the assistant message that is the marker (or ends with a
marker-only line). Do not hold earlier tool-free replies. Strengthen the
shared task reply contract so silent automation turns ask for exactly
[[NO_REPLY]] and nothing else.

Co-Authored-By: David Cramer <[email protected]>
When the last terminal assistant unit is the silence marker (or ends
with a marker-only line), clear the whole terminal block outcome. Do not
hold progressive delivery, and do not let an earlier marker silence a
later normal reply after tools.

Co-Authored-By: David Cramer <[email protected]>
Use one endsWith check for silence. Document the cases we care about.
Keep Slack integration coverage for trailing-marker silence and
mid-sentence marker mentions.

Co-Authored-By: David Cramer <[email protected]>
Do not blank the whole terminal assistant block from the last marker.
Each assistant message is delivered or suppressed on its own; endsWith
still silences one message that trails with [[NO_REPLY]].

Co-Authored-By: David Cramer <[email protected]>
@sentry-junior sentry-junior Bot changed the title fix(chat): silence when last assistant unit is [[NO_REPLY]] fix(chat): silence trailing [[NO_REPLY]] per message Sep 2, 2026
Drop the separate terminalTexts path and containsNoReplyMarker includes
check. Marker silence is endsWith via isNoReplyMarker, returned as
no_reply from decideReply; turn success uses those decisions alone.

Co-Authored-By: David Cramer <[email protected]>
Shorten marker docs, keep ReplyDecision private, and drop unit cases that
duplicate decideReply / Slack delivery coverage of the same silence rule.

Co-Authored-By: David Cramer <[email protected]>
Marker silence and tool-call tails both suppress delivery. Keep intentional
turn silence on isNoReplyMarker text checks instead of a second kind.
@dcramer
dcramer merged commit 5a26dbe into main Sep 2, 2026
39 checks passed
@dcramer
dcramer deleted the fix/no-reply-trailing-marker-silence branch September 2, 2026 15:00
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