Repository navigation
feat(events): Keep routine Watch replies out of Slack - #2659
Merged
Merged
Conversation
An Event Turn reply that ends with [[QUIET]] is stored as a Quiet message but not delivered to the Location. Only Event Turns can be quiet, and a reply with a card always delivers. The dashboard folds a quiet Turn's Event, tool calls, and reply into one collapsed activity row. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
2 screenshot changes — 2 changed · 0 added · 0 removed Review screenshots in Frameshift
|
BYK
marked this pull request as ready for review
November 4, 2026 20:05
BYK
approved these changes
Nov 4, 2026
BYK
enabled auto-merge (squash)
November 4, 2026 22:30
BYK
approved these changes
Nov 4, 2026
# Conflicts: # packages/junior-dashboard/src/client/conversations/TranscriptActivityGroup.tsx # packages/junior/src/chat/task-input.ts # packages/junior/tests/unit/chat/task-input.test.ts
BYK
added a commit
that referenced
this pull request
Nov 7, 2026
… Event Turns (#2875) Follow-up to #2659. **Quiet replies that had to reach a person.** In prod, Junior marked some merge and review notices quiet even when the Watch said to mention the person who asked. Those notices never reached Slack. This happened in Slack threads, web Conversations, and child agents, and also to some replies that asked a question. The quiet rule in the Event reply contract now excludes replies that the instructions send to a person and replies that ask a question. The fix is prompt-only: deciding what counts as a notice is a semantic choice, so core does not check for mentions. New eval in `evals/coding/subscriptions.eval.ts`: a `pull_request.merged` delivery on the Watch that Junior adds after it opens a PR. The reply must post, mention the person who asked, and not be quiet. **Silent Event Turns in the web view.** An Event Turn that ends with `[[NO_REPLY]]` stores no reply, so its Event message stayed visible unless a quiet reply came after it. The transcript now reads `turn_lifecycle` `no_reply` and folds that Event message into the activity row. The API already sends this state, so the API and schema do not change. ### Screenshots The screenshots come from mock dashboard data with a temporary Watch conversation (not committed): one bot comment with no reply, a check failure fixed with a quiet reply, a second bot comment with no reply, then a merge notice. Before: the second bot comment stays visible because no quiet reply follows it.  After, collapsed:  After, expanded:  ### Verification - `task-input` unit tests, dashboard tests (393), eval harness tests, typecheck, lint, file-length all pass locally. - The new eval did not run locally because the sandbox has no model credentials. It runs in CI. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A22ee8ffd3d20fc5c02b510ca --> -- [View Session in Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A22ee8ffd3d20fc5c02b510ca/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
BYK
added a commit
that referenced
this pull request
Nov 9, 2026
…rns (#3033) Push notifications did not follow the quiet rules from #2659 and #2875. `notifyReply` took the last assistant text from the run transcript. That is the raw model text, so: - A Turn that ended with `[[NO_REPLY]]` pushed a notification with that marker as its preview. - A quiet Watch reply still pushed. Slack delivery and the unread count already skip it. A probe test on `main` confirmed both: each of these Turns sent one push. `notifyReply` now reads the Message that the Turn stored (`<turnId>:assistant:N`), which is the text that the person sees. When the Turn stored no Message, it skips with `no_reply`. When the Message is quiet, it skips with the new `quiet` skip reason. The preview now uses the stored text, so it never shows a marker. The owning test in `reply-notification-task.test.ts` now stores the Message like a real Turn and checks that a no-reply Turn and a quiet Turn send nothing. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A22ee8ffd3d20fc5c02b510ca --> -- [View Session in Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A22ee8ffd3d20fc5c02b510ca/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
This was referenced Nov 13, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replies to routine Watch Events, like "pushed a lint fix" or "addressed the bot comment", post to the Slack thread like any other reply. In Slack, and DMs most of all, they are noise. Today the only way to skip them is
[[NO_REPLY]], and that also drops the record from the dashboard.This adds a Quiet message. When a Watch Event's outcome needs nobody's attention, the agent ends its reply with
[[QUIET]]. The runtime stores the reply withmeta.quietand skips Slack Delivery. The dashboard puts the Event, its tool calls, and the quiet reply in the existing collapsed activity row, and the reader can open it.The agent makes the choice (per
agentic-semantics), because onechecks.failedevent can end in a routine fix or in a failure that a person must see. Two fixed rules limit it:The contract line goes only into Watch task input, not the system prompt. Event automations still end with
finishAutomationRunand do not change.I left out a per-channel noise setting on purpose. Slack is the only Location, and the dashboard always shows stored Messages, so "full context" on the web needs no setting.
Draft because the evals are not run yet. This sandbox has no model credentials. Changed evals:
coding/subscriptions.eval.ts: when a Watch asks for a fix and the fix works, Junior posts nothing to Slack and stores one quiet reply. The loud cases (failure summary, merge, changes requested) still expect one Slack reply each.integration/conversation/delivery.eval.ts: when a person's Turn ends with the marker, Junior still posts the reply, without the marker.Typecheck, lint, the unit tests, and the dashboard tests pass. Two
watched-message-behaviorintegration tests time out at 5s here, and they also fail onmainin this sandbox.via @BYK.
--
View Session in Sentry