Repository navigation
feat(dashboard): Put idle conversations with open pull requests in Needs attention - #2824
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This comment has been minimized.
This comment has been minimized.
a93f63a to
2509853
Compare
This comment has been minimized.
This comment has been minimized.
…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.
a06fb1f to
2749feb
Compare
…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.
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 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
left a comment
There was a problem hiding this comment.
"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.
|
Yes. 9ae3fb0 follows that framing. When a conversation has an open linked PR and Junior isn't running (status is not |
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]>
… 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]>

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.
active. While Junior runs, it stays in its time section.unfinishedWorkandstatus. No new plugin API, feed field, or stored GitHub state.attentionIdsis now required inbuildConversationSections.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.
Checks
@sentry/junior-dashboard:conversationSectionstests, typecheck, and lint passed.conversations-attentionspecs now check the row's section, because the mock feed has open-PR conversations in Needs attention.via @BYK.
--
View Session in Sentry