Repository navigation
feat(notifications): Deliver progress replies without unread or push - #3044
Closed
sentry-junior[bot] wants to merge 2 commits into
Closed
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
14 screenshot changes — 14 changed · 0 added · 0 removed Review screenshots in Frameshift Show 8 more changed screenshots |
sentry-junior
Bot
force-pushed
the
feat/progress-replies-quiet-notify
branch
from
November 9, 2026 23:25
b98ca78 to
a464c9a
Compare
sentry-junior
Bot
changed the base branch from
main
to
feat/dashboard-composer-questions
November 9, 2026 23:26
This was referenced Nov 9, 2026
sentry-junior
Bot
force-pushed
the
feat/progress-replies-quiet-notify
branch
from
November 10, 2026 00:11
a464c9a to
f9bd478
Compare
sentry-junior
Bot
force-pushed
the
feat/progress-replies-quiet-notify
branch
from
November 10, 2026 00:31
f9bd478 to
d62bee2
Compare
sentry-junior
Bot
force-pushed
the
feat/dashboard-composer-questions
branch
from
November 10, 2026 05:49
7323914 to
106756f
Compare
sentry-junior
Bot
force-pushed
the
feat/progress-replies-quiet-notify
branch
from
November 10, 2026 05:59
d62bee2 to
119433a
Compare
sentry-junior
Bot
changed the base branch from
feat/dashboard-composer-questions
to
main
November 10, 2026 05:59
A reply that only says work continues, such as an ack after handing work to a child agent, made the Conversation unread and could send a push notification. The agent now marks such a reply with the markProgressReply tool. Junior still delivers and shows it, stores meta.progress, and skips it for unread and push. A reply with a card still notifies. Fixes #3031 Co-Authored-By: BYK <[email protected]> Co-Authored-By: David Cramer <[email protected]>
sentry-junior
Bot
force-pushed
the
feat/progress-replies-quiet-notify
branch
from
November 10, 2026 06:03
119433a to
18cb9cc
Compare
sentry-junior Bot
added a commit
that referenced
this pull request
Nov 10, 2026
A progress ack (`meta.progress`) only says that work continues, so it must not move a row. Nothing writes the flag until #3044 lands.
A yield, timeout, or auth pause starts a new slice, so the call that marks the reply can be in an earlier slice than the reply.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 924a5cc. Configure here.
sentry-junior Bot
added a commit
that referenced
this pull request
Nov 10, 2026
A progress ack (`meta.progress`) only says that work continues, so it must not move a row. Nothing writes the flag until #3044 lands.
sentry-junior Bot
added a commit
that referenced
this pull request
Nov 10, 2026
A progress ack (`meta.progress`) only says that work continues, so it must not move a row. Nothing writes the flag until #3044 lands. Co-Authored-By: BYK <[email protected]>
BYK
added a commit
that referenced
this pull request
Nov 10, 2026
Fixes #3032 **Stacked on #3046** (stack [#3058](https://github.com/getsentry/junior/stack/3058): #3037 → #3046 → #3047 → #3035 → #3036). #3046 owns who is in Needs you; this PR owns the order. Review the diff against `fix/dashboard-needs-you`. The conversation list moved under the reader's pointer. Every event moved a row, and the waiting section put the newest activity first, so a queue you were working through kept changing order. This PR fixes the order and cuts the row markers to three channels. ## Order - **Needs you: the oldest wait goes first.** `/api/review-items/waiting-conversations` now returns `waitingSince` next to #3046's `items`. It is the `createdAt` of the conversation's oldest open item for the viewer. New activity no longer moves the queue. - **Date sections: sorted by the last Message.** Feed rows get `lastMessageAt`, which is the newer of the last true user Message and the last Junior reply that the transcript shows. Like the unread reply, it skips tool calls, status changes, Events, and quiet replies, so they don't move a row. It also skips progress acks (`meta.progress`). That exclusion starts working when #3044, a separate PR, lands on main; until then nothing writes the flag. The row age and the home card time show this time too. A row with no Message yet uses `lastSeenAt`. - `pinnedAndWaitingFirst` sorts the same way before paging, so pages split where the sections do. ## Hold while you work in the list - **One list component.** The sidebar and the home card list both render through `ConversationSectionList`. It builds the sections, holds the order, shows the pill, and owns pin reorder. Each list keeps only its own row look. A dashboard lint rule (`no-restricted-imports` in `.oxlintrc.json`) allows `buildConversationSections` and `heldListOrder` only in that component, so a new list can't skip the hold. - While the pointer is over the list, or focus is in it, rows keep their section and position. The hold covers the whole list area, including its padding and scrollbar, from the first paint. Their data still updates: bold, dot, spinner, and the review chip. - An **"N updated"** pill offers the new order. N is the number of rows that the new order would add or move, using the longest increasing run, so moving one row counts as 1. Clicking the pill applies the new order. So does moving the pointer out once focus has left the list. - **Row actions apply at once.** Pin, unpin, reorder, archive, and mark read/unread release the hold, so you see their result. Opening a row does not release it, so the row you just read stays where it was. - The hold starts only after the feed and waiting reads finish. A pointer resting on the list during a page load does not hold back the first rows. - Rows that sort after every held row, such as the next page of the home list, show at the end. Loading more doesn't wait on the pill. - Touch has no hover, so only a mouse or pen holds the order. On a phone only focus holds it. The pill fades in only under `motion-safe`. `AnimatedList` is unchanged and still animates rows in and out. | Held, dark | Held, light | |---|---| |  |  | In these shots, *Checkout latency triage* has started waiting. It gets its dot, bold title, and chip in place, and the pill offers to move it into Needs you. The home card list in a 700px window with a mouse, held and then applied: | Home held, dark | Home held, light | Home applied, light | |---|---|---| |  |  |  | ## Three marker channels - **Position:** the section, such as Needs you. - **Read state:** a dot plus a bold title. This is one channel, so unread and waiting rows keep both. The separate violet "waiting" dot and orange "unread" dot are now one accent dot. The section and the review chip already show that a row is waiting. - **Motion:** the running spinner. - **Secondary text:** the private lock, and "Failed" or "Stopped", sit beside the age, not in the marker slot. The idle glyph is gone. This applies to the sidebar, the home and mobile list cards, and the Code page's recent conversations rows. Thread rows under a parent keep their own child status icon, which is unchanged. ### Mark as unread does not change Every read/unread control works as on `main`: - The dot slot in the sidebar is still the read toggle. It shows on unread rows, shows a preview on hover or focus, and has the "Mark as read/unread" tooltip. - The row context menu still has Mark as unread/read. - The mobile conversation menu still has Mark as unread. This PR adds no shortcuts. The only change is that these actions release the hold, so the row moves right away. | Needs you, before / after (dark) | Sidebar, before / after (light) | |---|---| |  |  | | Read toggle on hover, before / after | Row menu, before / after | |---|---| |  |  | Before is #3046 (`470f3a73f`). In the read toggle and row menu shots, Needs you now lists the longest wait first, so *Plan the billing migration* moves above *Roll out payments-v42*. | Mobile list, before / after | Mobile Needs you, before / after | Mobile conversation menu | |---|---|---| |  |  |  | On mobile, "Failed" is now text beside the time, not a rose dot on the tile. A running card shows one spinner, in place of the time, not a second one on the tile. The waiting card's dot is the same accent dot as unread, not the glowing violet one. ## Pins stay manual Pins don't change, and nothing pins on its own. For diagnosis, a pin change tags its request span with `app.conversation.pin.action` (`pin`, `unpin`, or `reorder`) and `app.conversation.pin.count`, which is the viewer's pin count after the change. The names and a query recipe are in `TELEMETRY.md`. The browser still sends only spans and ratings. ## Notes for reviewers - **Ordering on top of #3046:** in `conversationSections.ts`, `buildConversationSections` and `pinnedAndWaitingFirst` now take `waiting` (the waiting map with `waitingSince`) in place of #3046's `waitingIds` set. Membership is unchanged: a row is in Needs you only when it is in that map. - **Feed query cost:** the feed reads `lastMessageAt` from a new `junior_conversations.last_message_at` column, so it adds no per-row event reads. Recent perf work on main took two routes: #3006 caches usage sums in Redis with a seq watermark, and #2761 reads previews through bounded index walks. I chose a column over a Redis cache because this time changes only when a Message is appended, and the append already writes the Conversation row in its transaction. So there is nothing to invalidate or watermark. - **Write:** `refreshLastMessageAt` (`sql/last-message.ts`) runs in the append transaction, only when the append adds a `message` or `user_message` event. It does the three index walks once per append, not once per root on every feed read. - **Migration `0099_conversation_last_message_at`:** adds the nullable column, with no backfill. An update of every root would lock the rows that appends write (the `migration-locks` check rejects it). A row with no stored time reads it from its events in `coalesce`, which skips that read for every row that has one. Old idle rows drop out of the feed page over time. - **API change:** `waitingSince` is a required field on the strict waiting-conversations schema. The dashboard is the only consumer. The e2e mocks and `mock-reporting/review-items.ts` send it. ## Frameshift changes Report for `8e5f8c40a`: 67 changed and 3 added. I measured every pair and looked at each one that changed outside the sidebar rows. | Count | Cause | Verdict | |---|---|---| | 45 | The private lock on *Direct Message* moves from the leading slot to beside the age. This is the only change. | Expected | | 8 | The same lock move, plus noise elsewhere: transcript scroll position (4), a different demo video frame (3), or a "Conversation details" tooltip (1). | Expected, plus noise | | 5 | Mobile home cards: one accent dot for unread and waiting, and "Failed" as text. The cards also showed a bug: an empty status slot added a flex gap, so every title cut off 12px early. Fixed in `a63504507`. | Expected, bug fixed | | 2 | The Code page recent rows lose the idle dot. | Expected | | 7 | Noise only: transcript scroll (4 mobile), a chart tooltip on a different day on Memories, the random MCP port, and the nav rail height in one full-page capture. | Noise | | 3 added | `conversations-list-held` (dark and light) and `conversation-menu-mark-unread` (mobile). | New in this PR | I checked the noise locally against `main` where it was cheap. `conversation-unsent-answers` (desktop and mobile) is the same on the branch and on `main`, except for the lock, in two runs each. `automation-page` differs between two runs of the branch, and one of them matches `main`. ## Testing - **Unit:** the `conversationSections` wait and last-Message order, and the new `heldListOrder` tests (held order, pending count, new and removed rows). - **Integration (Postgres):** - `unread.test.ts`: a quiet reply or a progress ack doesn't move `lastMessageAt`, and a shown reply does. The append stores the time on the row, and a row with no stored time still reads it from its events. - `review-items/actions.test.ts`: `waitingSince` is the oldest item's time. - `list.test.ts` and `pin.test.ts` pass. - **E2E:** - New: "holds the order under the pointer and offers the new one". It checks the hold, the pill, applying on click, and applying on leave plus blur. - New: "holds the home list order under the pointer", in a 700px window with a mouse. - New: "holds the order for a pointer on the list edge through the first load". It fails on `51a864b37`, before the hold covered the whole list area. - `conversations.spec` "scrolls long conversation and transcript panes independently" now finds the sidebar scroll area by its slot, because the list has a wrapper. - The mobile mark-unread test now saves a menu screenshot. - The `conversations-attention` spec passed 3 times in a row with 3 workers. - **Full dashboard e2e:** 144 of 146 passed with 4 workers. `conversations-attention` "puts waiting conversations in Needs you first" timed out under load and passes on its own. The scroll test failed on the old locator and passes with the fix. - **Checks:** `pnpm typecheck`, `pnpm lint` (with `migration-locks`, `file-length`, and `test-architecture`), and the dashboard unit suite (432 tests) pass. Full integration: 926 passed. `any-resource-event-automations` times out here with or without this change, and `attachment-s3-storage` needs a local S3 server. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A8bfa5732f44bc4f91116d3ee1be8f6d7 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A8bfa5732f44bc4f91116d3ee1be8f6d7) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A8bfa5732f44bc4f91116d3ee1be8f6d7/?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]>
Contributor
Author
|
Closing. #3187 and the follow-up for |
BYK
added a commit
that referenced
this pull request
Nov 12, 2026
…#3272) Closes #3031. #3187 stopped the status that Junior posted after `spawnAgent`. When a person sends more work to an existing child agent through `messageAgent`, Junior still posts a status such as "I passed these to Cody". It marks the conversation unread and sends a push notification, though the child's reply posts when it arrives. The `messageAgent` description now has the same rule as `spawnAgent`: after a message to a child agent, when the reply posts to people and only says the message was sent, call `noReply`. A message to the parent agent or to a top-level agent does not change. With this rule and #3187, a status that only says work went to a child agent no longer posts. So #3031 does not need the separate "deliver without notifying" path that #3044 built. ## Tests `evals/integration/conversation/subagents.eval.ts`: the owning child agent case now continues with a person's follow-up that sends the named child more work. It checks that the `messageAgent` Turn posts nothing and the child's reply posts. Draft until the integration evals pass. The new prompt has no Roach recording yet, so I could not run it here. Typecheck, lint, and the tool adapter and child agent approval integration tests pass. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A22ee8ffd3d20fc5c02b510ca --> -- [View Session](https://junior-prod.sentry.dev/conversations/local%3Aweb%3A22ee8ffd3d20fc5c02b510ca) [[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 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.

Fixes #3031
A reply like "I passed your message to the subagent" made the Conversation unread and could send a push notification, even though nothing was ready yet. This PR keeps delivery and notification separate for these replies. The agent marks a reply that only says work continues. Junior still delivers and shows that reply, but it does not count as unread and sends no push.
Built on #3033 and #3039.
notifyReplyalready reads the stored Message for the Turn and skips Quiet messages with reasonquiet. This PR adds a skip with reasonprogressto the same check. It does not add a second notify path.Design: a
markProgressReplytool#3039 replaced the reply markers with a structured
noReplytool, so the runtime no longer parses assistant text. Progress follows the same rule: a tool call, not a marker.markProgressReplytakes no arguments, ismodelOnly, and is not exclusive. The model calls it in the same Turn, before the reply, usually in the same tool batch asspawnAgentormessageAgent. The replies that the run delivers after that call are Progress messages.noReply:noReplyends the run because nothing is delivered. A progress reply is still delivered, and the normal path for the final response already does that (streamed to Slack, the dashboard and the CLI). If a terminal tool carried the reply text, all four delivery paths would need a second way to post. A flag tool leaves delivery as it is.spawnAgentormessageAgent: a reply that only says work continues also followswatchEvents, a CI wait, or a queued Thread. A handoff field would cover only one case and tie reply semantics to agent tools.messageAgentto parent,noReply,reportBlocked). This tool only marks replies to people. It is not registered on child Runs or Automation runs, and the prompt rule is only in conversation mode.How it works:
Deliverygets an optional{ progress }option. At delivery time the agent runner checks the run's new messages for a successfulmarkProgressReplyresult (readProgressReply). An earlier Turn's call never counts.meta.progressthroughprogressReplyMeta(options, cards). That helper returns nothing when the reply has a card, so a reply with a card still notifies. The flag is also in the report API event data (progress), next toquiet.latestVisibleReplyis renamed tolatestNewReplyand skips progress replies. A progress ack after a real result keeps the result unread, and mark-unread moves the position back to just before the result, not the ack.<conversation>rule: callmarkProgressReplybefore a reply that only says work continues, such as after handing work to a child agent. Never use it on an answer, a result, a question, a failure, or a request for a decision.TERMINOLOGY.mdadds Progress message.TELEMETRY.mdlists theprogressskip reason.The transcript shows progress rows like any other reply. The dashboard UI doesn't change, so there are no screenshots.
Tests
api/conversations/unread.test.ts: a progress reply shows in the detail but is not new; a later progress reply doesn't hide an unread result; mark-unread skips the progress reply.reply-notification-task.test.ts: a stored Progress message sends no push.chat/progress-reply.test.ts: the card rule.agent/child-agents.eval.ts. (1) AfterspawnAgent, the model callsmarkProgressReply, and the ack is stored as progress while the child's result is not. (2) A direct answer calls nomarkProgressReplyand is not progress. Case (1) also covers the tool → delivery → storage wiring through the Slack path. The test-architecture check doesn't allow a scripted-model test of that wiring inpackages/junior/tests.The evals can't run in my sandbox (no model credentials), so they run in CI. Locally: typecheck and
pnpm lintpass (including file-length and test-architecture), and 2,543 tests pass across the junior unit, component, conversation API, local runner and Conversation Turn suites.Gaps
markProgressReplyis already delivered and is not marked. The tool description and the prompt rule both say to call it before the reply.lastSeenAt) and list markers are Keep the dashboard conversation list order stable #3032. Section membership is Narrow Needs attention to things blocked on the viewer #3030.via @BYK, @dcramer.
--
View Session [Sentry]