Repository navigation
fix(github): emit resolvable co-author noreply emails - #1704
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 54fd0c9. Configure here.
| destination: context.destination, | ||
| events: input.events, | ||
| expiresAtMs: Date.now() + RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, | ||
| intent: input.intent, |
There was a problem hiding this comment.
Resource subscriptions drop destination
High Severity
Plugin resourceEvents.subscribe() no longer passes destination into createResourceEventSubscription. That field is required to build the subscription id, store the Slack team, and match inbound events. Plugin-created watches, including GitHub PR follow-up after create, fail instead of routing events back to the conversation.
Reviewed by Cursor Bugbot for commit 54fd0c9. Configure here.
There was a problem hiding this comment.
Not a regression from this PR. destination was intentionally removed from resource-event subscriptions in #1706 (fix(resource-events): let conversations own watch routing). Main and this branch both omit it; the store API no longer accepts destination. Bugbot is comparing against the pre-#1706 merge base.
When the current run actor has a linked GitHub identity, stamp Co-Authored-By with [email protected] so downstream assignee automation can resolve a login. Keep trailer generation pure and resolve the current user once through the existing users.resolveActor contract. Co-Authored-By: David Cramer <[email protected]>
54fd0c9 to
c36ec49
Compare
|
3 screenshot changes — 3 changed · 0 added · 0 removed Review screenshots in Frameshift
|
… function Reviewers keep removing test-only dependency injection, such as `(deps.recordPolicyDenied ?? recordSandboxPolicyDenied)(...)` in #3111, or the optional services in #1637, #1671, #1695, #1704, and #3404. policies/interface-design.md already forbids it, but nothing failed. `junior/no-service-fallback` rejects `x.y ?? fn`, `x.y || fn`, and `{ y = fn }` parameter defaults, where `fn` is a camelCase import or a module-level function. The 14 files that have the pattern today are listed as exceptions in .oxlintrc.json. Remove an entry when you fix its file. 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]>


Junior already stamps requester
Co-Authored-Bytrailers, but they used the Slack/work email. Downstream automation (like sentry-cocoa's unreferenced-PR issue creator) needs a GitHub login to assign the human instead of the bot.When a linked GitHub identity exists, prefer
[email protected]in the trailer so assignee resolution is deterministic. Falls back to the existing actor email when no GitHub link is present.Requested by Thomas Hedderwick.
--
View Junior Session [Sentry]