fix(seer): Linkify short IDs with multi-hyphen project slugs#113431
Merged
fix(seer): Linkify short IDs with multi-hyphen project slugs#113431
Conversation
The Seer explorer post-processes LLM markdown to turn issue short IDs like PROJECT-1 into clickable links. The regex only allowed a single hyphen-suffix, so multi-hyphen slugs such as FRONTEND-REACT-59A or BACKEND-RUBY-ON-RAILS-58 were truncated to FRONTEND-REACT / BACKEND-RUBY-ON-RAILS, producing broken links to the wrong issue. Allow one or more trailing `-[A-Z0-9]+` segments so the full short ID is captured. Adds tests covering single- and multi-hyphen IDs, lowercase rejection, and the existing code-block / markdown-link / URL exclusion paths. Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/K6uQSc6tQK_7ERCo6j8hcBt7uHdP0arYesqC5ltNJDE
shruthilayaj
approved these changes
Apr 20, 2026
trevor-e
approved these changes
Apr 20, 2026
3 tasks
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.
Fix Seer explorer issue-short-ID linkification so IDs with multi-hyphen project slugs (e.g.
FRONTEND-REACT-59A,BACKEND-FLASK-F2,BACKEND-RUBY-ON-RAILS-58) produce correct links.The regex in
linkifyIssueShortIdsonly allowed a single-[A-Z0-9]+suffix, so anything after the second hyphen was dropped from the link.FRONTEND-REACT-59Awas rendered as a link to/issues/FRONTEND-REACT/with a dangling-59Ain the text — broken navigation from Seer responses.Allow one or more trailing
-[A-Z0-9]+segments so the full short ID is captured. Existing short IDs (PROJECT-1,JAVASCRIPT-2SDJ,INTERNAL-4K) continue to match.Surfaced while demoing the Seer agent — links in agent output were pointing at the wrong (or non-existent) issues. Adds
utils.spec.tsxcovering single- and multi-hyphen IDs plus the existing code-block / markdown-link / URL exclusion paths.Agent transcript: https://claudescope.sentry.dev/share/RxwksDlKS0reKAGgdnK0yVb--9ijSdmRNb5bmM29wYo