Repository navigation
feat(claude-tty): link owner/repo#123 issue references in Claude's replies - #154
Merged
Merged
Conversation
…plies Claude Code's terminal turns `owner/repo#123` into a link when it draws a reply, so the model writes these references bare and the transcript carries no URL. Paseo renders the text as written, which left them unclickable. The adapter now rewrites them into markdown links to the origin remote's host, using GitLab's issue path when the host is a GitLab, and github.com when there is no remote. Bare `#123` stays unlinked, as it does in Claude Code since 2.1.84. Paseo has no issue or discussion on linking these references itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Issue and PR references in a claude-tty session show up as plain or bold text in Paseo, while the same reply in Claude CLI has them as clickable links.
The difference is in rendering, not in what the model writes. Claude Code's terminal turns
owner/repo#123into a link itself when it draws a reply, so the model writes the reference bare and the transcript holds no URL. The adapter forwards the transcript's text as is, and Paseo renders exactly that. Paseo has no issue or discussion about linking these references in its own renderer, so the adapter now does what the CLI does.What this changes
linkIssueReferencesinsrc/issue-links.ts):**owner/repo#12**reaches Paseo as**[owner/repo#12](https://github.com/owner/repo/issues/12)**. Code spans, fenced blocks, existing links and URLs are left as written.readIssueForge), read once per session withgit remote get-url origin. A host containing "gitlab" gets GitLab's/-/issues/Npath and accepts nested groups (group/sub/project#42). Any other host gets/issues/N. Without a remote it falls back to github.com, as the CLI does.translateAssistant). Thinking, user messages and subagent logs are unchanged.Out of scope
#123stays unlinked, as it has in Claude Code since 2.1.84.git@github-work:owner/repois taken as the host.Verification
claude-tty-acptypecheck is clean and the full suite passes.