Skip to content

chore(event formatter): use formatter for copy to markdown#119834

Open
shayna-ch wants to merge 9 commits into
shayna-ch/format-endpointfrom
shayna-ch/format-copy-markdown
Open

chore(event formatter): use formatter for copy to markdown#119834
shayna-ch wants to merge 9 commits into
shayna-ch/format-endpointfrom
shayna-ch/format-copy-markdown

Conversation

@shayna-ch

@shayna-ch shayna-ch commented Jul 16, 2026

Copy link
Copy Markdown
Member

to be merged after #119545

Wires the issue-details "Copy to Markdown" action to the shared formatter. The event-details and autofix queries now request ?llmFormat=markdown, and when the API returns a formatted payload the copy output is built from that server-rendered markdown (issue ID / project / date header + the formatted event body, plus the autofix markdown when present). When formatted is absent, it falls back to the existing client-side markdown builder.

No behavioral change on merge. behind the issues.standardized-markdown-for-llm option. Rollout will happen gradually via feature flag.

@github-actions github-actions Bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Jul 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@shayna-ch
shayna-ch force-pushed the shayna-ch/format-copy-markdown branch from 985c852 to 5dafe74 Compare July 16, 2026 17:05
@shayna-ch
shayna-ch changed the base branch from master to shayna-ch/format-endpoint July 16, 2026 17:06
@shayna-ch shayna-ch changed the title copy to markdown chore(event formatter): use formatter for copy to markdown Jul 20, 2026
@shayna-ch

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 0e30e19. Configure here.

@shayna-ch
shayna-ch marked this pull request as ready for review July 20, 2026 19:44
@shayna-ch
shayna-ch requested review from a team as code owners July 20, 2026 19:44

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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 7a5ecc6. Configure here.

llmMarkdown += `\n\n${autofixFormatted}`;
}
return llmMarkdown;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Server path drops autofix content

Medium Severity

When event.formatted is present, issueAndEventToMarkdown returns early and only appends autofixFormatted, ignoring autofixData. If server-formatted autofix is missing while cached autofix state still has root cause or solution content, that Seer analysis is omitted from the copied markdown.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 7a5ecc6. Configure here.

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 Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant