Conversation
Sentry Snapshot Testing
|
…ng agent instructions
079027d to
b8f1577
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit db55ba7. Configure here.
| organization, | ||
| }); | ||
| copy(LLM_ONBOARDING_INSTRUCTIONS, { | ||
| copy(LLM_ONBOARDING_COPY_MARKDOWN, { |
There was a problem hiding this comment.
Preamble about "setup steps above" leaks into wrong contexts
Medium Severity
Merging the preamble and instructions into a single LLM_ONBOARDING_COPY_MARKDOWN constant means the text referencing "The setup steps above" is now copied in contexts where no setup steps exist. Previously, CopyLLMPromptButton and the CopyMarkdownButton in CopyInstructionsButton only copied LLM_ONBOARDING_INSTRUCTIONS (without the preamble), while the preamble was exclusively added via the postamble prop in the onboarding flow. Now all three code paths — including UnsupportedPlatformOnboarding and NoDocsOnboarding — copy text that tells the LLM to "complete setup steps above" that don't exist.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit db55ba7. Configure here.
| > Then use the guide below for additional instrumentation and agent naming.`; | ||
|
|
||
| export const LLM_ONBOARDING_INSTRUCTIONS = `# Instrument Sentry AI Agent Monitoring | ||
| export const LLM_ONBOARDING_COPY_MARKDOWN = ` |
There was a problem hiding this comment.
Leading newline in markdown constant causes extra whitespace
Low Severity
The template literal for LLM_ONBOARDING_COPY_MARKDOWN starts with a newline character (the backtick is immediately followed by a line break). When copied to clipboard via CopyLLMPromptButton, the content starts with a blank line. When used as postamble, it produces …\n\n---\n\n\n> (an extra blank line after the horizontal rule) since OnboardingCopyMarkdownButton already joins with \n\n---\n\n.
Reviewed by Cursor Bugbot for commit db55ba7. Configure here.


Contributes to TET-2169