fix(prompt): prohibit angle-bracket autolinks in output format#419
Open
sentry-junior[bot] wants to merge 1 commit into
Open
fix(prompt): prohibit angle-bracket autolinks in output format#419sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
The output format instruction said to use [text](url) links but left 'bare URL' ambiguous. The model was using <url> angle-bracket autolinks (valid GFM but Slack-mrkdwn-flavored) and then combining them with **...** bold markers. The closing ** ended up inside the angle brackets: **<https://github.com/...pull/1234**> making the URL itself malformed. Since the reply body uses the Slack markdown block (GFM), [text](url) is correct for all links. Prohibit <url> explicitly and clarify 'bare' to mean raw URL text on its own line. Reported: https://sentry.slack.com/archives/C0AHB7N2JCR/p1779840248376049
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The output format instruction told the model to use
[text](url)links but left "bare URL" ambiguous. The model was reaching for Slack mrkdwn<url>angle-bracket autolinks and then wrapping them with**...**bold markers. The closing**ended up inside the angle brackets:Slack renders the URL as
https://...pull/116264**— a broken link.Why
<url>is wrong hereReply bodies are sent as Slack
markdownblocks (GFM), not mrkdwn.<url>is valid GFM as an autolink, but it's the Slack mrkdwn syntax the model gravitates toward. There's no rendering difference between<url>and[url](url)that would justify using it, and mixing it with**...**is fragile.Fix
One line in
buildOutputSection()inprompt.ts: explicitly prohibit<url>format and clarify that "bare" means raw URL text on its own line (not<url>).Reported: https://sentry.slack.com/archives/C0AHB7N2JCR/p1779840248376049
View Session in Sentry