UI auto-links #xxx to /issues/xxx instead of /pull/xxx
Resolved 💬 2 comments Opened Mar 12, 2026 by calvin-oen Closed Apr 9, 2026
Description
When Claude Code output contains #123 style references (e.g. referencing a GitHub PR number), the UI auto-links them to https://github.com/{owner}/{repo}/issues/123 instead of https://github.com/{owner}/{repo}/pull/123.
On GitHub, issues and PRs share the same number space. When the referenced number is a Pull Request, the link should point to /pull/123, not /issues/123.
Steps to Reproduce
- Work in a repository context (e.g.
OEN-Tech/app) - Have Claude output text containing
#19553referencing a PR - The UI renders it as a clickable link to
https://github.com/OEN-Tech/app/issues/19553 - The correct URL should be
https://github.com/OEN-Tech/app/pull/19553
Expected Behavior
- Either link to
/pull/xxxwhen the number is a PR, or use a neutral URL that GitHub will redirect correctly (GitHub does redirect/issues/xxxto/pull/xxxfor PRs, but the displayed URL is still incorrect and confusing) - Alternatively, do not auto-link
#xxxpatterns at all and let users provide explicit URLs
Environment
- Claude Code CLI
- macOS
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗