Skip to content

feat(dashboard): Put idle conversations with open pull requests in Needs attention - #2824

Merged
BYK merged 6 commits into
mainfrom
feat/pr-attention-signals
Nov 6, 2026
Merged

BYK merged 6 commits into
mainfrom
feat/pr-attention-signals

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

An open pull request that Junior is not working on waits on a person: merge it, close it, or review it. The dashboard now puts these conversations in Needs attention.

  • A conversation goes to Needs attention when it has unfinished work (an open linked pull request, child-agent work included since fix(conversations): Archive idle conversations and count child-agent work on the root #2814) and its status is not active. While Junior runs, it stays in its time section.
  • The feed already sends unfinishedWork and status. No new plugin API, feed field, or stored GitHub state.
  • Needs attention lists the newest activity first, like the time sections.
  • attentionIds is now required in buildConversationSections.
  • "Unread until acted on" is a separate change. This PR does not touch the finished/unread indicators.

Limitation: only conversations in the loaded feed pages show in Needs attention.

Screenshot

Mock dashboard. "Package release and self-update" and "Dashboard QA edge cases" have open pull requests and are idle, so they are in Needs attention. "Investigate checkout latency" also has unfinished work but is running, so it stays in Today.

Needs attention

Checks

  • @sentry/junior-dashboard: conversationSections tests, typecheck, and lint passed.
  • Dashboard e2e: 107 passed. The conversations-attention specs now check the row's section, because the mock feed has open-PR conversations in Needs attention.

via @BYK.

--

View Session in Sentry

@sentry-junior
sentry-junior Bot added this pull request to stack #2825 November 6, 2026 14:49
@vercel

vercel Bot commented Nov 6, 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 Nov 6, 2026 7:41pm UTC

Request Review

@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.

Stale Bugbot comment from a previous run.

@blacksmith-sh

This comment has been minimized.

@blacksmith-sh

This comment has been minimized.

Base automatically changed from fix/auto-archive-idle-and-child-work to main November 6, 2026 18:55
sentry-junior Bot and others added 3 commits November 6, 2026 18:55
…s attention

The GitHub plugin now reports open pull requests that are ready to merge,
have a failed check suite on the head commit, or have a change request
since the last push. Core folds them to the root conversation, the feed
exposes workNeedsAttention, and the dashboard puts those conversations in
Needs attention.

Stacks on #2814.

Co-Authored-By: BYK <[email protected]>
A synchronize webhook now clears the failing suites and change requests
only when its pull request updated_at is newer than the saved push.
The dashboard e2e tests read the shared mock feed, so a mock conversation
in Needs attention changed their section layout. The unit tests cover
workNeedsAttention in conversationSections.

@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.

Stale Bugbot comment from a previous run.

…state

A push of the saved head commit keeps failures that its check suites
already recorded. A review submitted before the saved push no longer
adds a change request back.

@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 afb2b9e. Configure here.

A check suite can save the head commit before its push arrives, so the
push looked like the same head and kept stale change requests. Change
requests do not record a commit; any newer push answers them.

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"Unread until acted on" is a separate change. This PR does not touch the finished/unread indicators.

Good call as sometimes something gets as "unread" indicator but all we get are collapsed events.

The patch seems to focus too much on "PR attention" but what we care is essentially if there's a left-open PR that Jr is not acting on or not expected to act on, it's essentially on the human, right? Close, approve, reject, something?

…ts in Needs attention

An open pull request in a conversation where Junior is not running waits
on a person: merge, close, or review it. The dashboard already has
unfinishedWork and status in the feed, so drop the stored check-suite
and review state, the plugin attentionConversationIds field, and the
feed flag.
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: high PR risk score: high labels Nov 6, 2026
@sentry-junior sentry-junior Bot changed the title feat(conversations): Show pull requests that wait on a person in Needs attention feat(dashboard): Put idle conversations with open pull requests in Needs attention Nov 6, 2026
@sentry-junior

sentry-junior Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Yes. 9ae3fb0 follows that framing. When a conversation has an open linked PR and Junior isn't running (status is not active), the next step is on a person, so it shows in Needs attention. A running conversation stays in its time section. The "PR attention" state, the DB changes, and the plugin changes are gone. The diff is now only conversationSections.ts, its test, and the attention e2e spec. The PR description is updated and has a new screenshot.

@BYK
BYK merged commit f3d9224 into main Nov 6, 2026
41 checks passed
@BYK
BYK deleted the feat/pr-attention-signals branch November 6, 2026 22:58
sentry-junior Bot added a commit that referenced this pull request Nov 16, 2026
Reviewers asked whether a stored field was needed in #2306,
#2824, #2828, #2850,
#2951, #3042, #3181, and
#3383. No check can tell which state the owner can give,
so this is a rule.
sentry-junior Bot added a commit that referenced this pull request Nov 16, 2026
Review flagged a stored field that the provider or existing rows could
give in #2306, #2824, #2828,
#2850, #2951, #3042,
#3181, and #3383.

The rule goes in the interface-design Lifecycle state section, next to
the rule that owns copies, instead of AGENTS.md. It names the cases that
need a stored value: an earlier-time snapshot, missing read authority,
and a measured read cost. Those cases match the durable payloads in
serverless-background-work.md and the stored handles in
context-bound-systems.md.

Co-Authored-By: David Cramer <[email protected]>
dcramer added a commit that referenced this pull request Nov 17, 2026
… function (#3523)

`junior/no-service-fallback` (oxlint) rejects `deps.x ?? fn`, `opts.x ||
fn`, and `{ x = fn }` parameter defaults, where `fn` is a camelCase
import or a module-level function. That is test-only dependency
injection, which `policies/interface-design.md` forbids. Past cases:
#3111, #1637, #1671,
#1695, #1704, #3404,
#2824.

This PR also removes 12 of the 14 fallbacks that exist today.

**Removed. The code calls the real function:**
- `slack/assistant-thread/status-send.ts`: `getSlackClient`.
- `slack/attachment-fetchers.ts`: `downloadPrivateSlackFile`.
- `task-execution/slack-work.ts`: `lookupSlackUser`.
- `tools/publish-image.ts`: `publicBaseUrl`. It reads
`resolveBaseUrl()`.

**Made required. The caller chooses:**
- `plugins/task-runner.ts`, `providers/slack/resume.ts`,
`task-execution/paused-turn.ts`: `sendPluginTask` and `wakePausedTurn`.
`createApp` picks the plugin task queue: Vercel Queue, or the in-process
queue from its `pluginTaskQueue` option. Behavior change: the Slack
webhook services now use that queue too. Before, they always used Vercel
Queue.
- `sandbox/egress/vercel.ts`: `verifyOidc`. The route passes the Vercel
verifier. Evals pass one with the real clock, because they replace
`Date`.
- `egress/credentialed.ts`: `recordAuthRequired`. Sandbox egress stores
a signal. Host plugin tools ask the person to connect.
- `junior-memory/src/embedding.ts`: `columns`. It is the table or a
subquery.
- `pi/request-prefix-attributes.ts`: the `hashJson` replacer.
- `ActivityChart.tsx`: the `formatLabel` function prop is now a `labels`
map. The component always formats.

**Kept as exceptions in `.oxlintrc.json`:**
- `cache-warming/warmup.ts` and `pi/traced-stream.ts` default the model
stream to `streamSimple`. The model stream is the one fake that
`policies/testing.md` allows. The shared model-stream harness gives each
agent run its own fake stream, and a module spy cannot do that per run.
Production never passes another stream, so a required parameter would
only add a restricted import to each composition root and an unused
argument to about 75 calls that mock the agent.

<!-- junior-request-attribution:start -->
via @dcramer.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A272ea6eeb1ea4fab7133690568688663 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A272ea6eeb1ea4fab7133690568688663)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A272ea6eeb1ea4fab7133690568688663/?project=4510944073809921)

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

---------

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

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 9ae3fb03 Deployed Nov 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant