Skip to content

Conversation

@sehr-m
Copy link
Member

@sehr-m sehr-m commented Jan 15, 2026

Addresses AIML-2267

Problem:
When seer RCA triggers the cursor integration to make a PR, we want it to include the Sentry short-id so it links back.

Solution:
Tell cursor in the prompt to include the short id if auto_create_pr is True

Testing:
Added unit tests to make sure the prompt is correct, but can only complete E2E testing once it is live for proper github/cursor integration.

@sehr-m sehr-m requested a review from a team as a code owner January 15, 2026 01:05
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 15, 2026
Copy link
Member

@JoshFerge JoshFerge left a comment

Choose a reason for hiding this comment

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

looks great! i’m wondering if we should include the short id regardless of auto_create is true?

@sehr-m
Copy link
Member Author

sehr-m commented Jan 15, 2026

I would say only if a PR will be created otherwise I worry the prompt will do something silly occasionally like include it in a comment which would be bad, but open to changing

@JoshFerge
Copy link
Member

I would say only if a PR will be created otherwise I worry the prompt will do something silly occasionally like include it in a comment which would be bad, but open to changing

makes sense.

@sehr-m sehr-m requested a review from a team as a code owner January 15, 2026 18:19
@sehr-m sehr-m merged commit 679f70b into master Jan 15, 2026
66 checks passed
@sehr-m sehr-m deleted the sehrm/fix/add-short-id-to-cursor branch January 15, 2026 18:50
sehr-m added a commit that referenced this pull request Jan 15, 2026
Addresses AIML-2267

Follow up to [first PR](#106344)
which fixed this for old autofix and not the explorer enabled path which
is what all sentry users have.

Problem:
When seer RCA triggers the cursor integration to make a PR, we want it
to include the Sentry short-id so it links back.

Solution:
Tell cursor in the prompt to include the short id if auto_create_pr is
True

Testing:
Added unit tests to make sure the prompt is correct, but can only
complete E2E testing once it is live for proper github/cursor
integration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants