[BUG] Multi-repo session: href points to wrong repo
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
In a Claude Code web session with two repositories, Claude generated a GitHub file URL with correct visible text but a malformed href. The href prepended the primary repo as a base URL and appended the full URL as a path suffix, making the link appear correct, but go to the wrong place.
What Should Happen?
Claude should construct GitHub URLs from the appropriate repo. I.e., if the file exists in repo-b, don't construct a link to repo-a.
Error Messages/Logs
Steps to Reproduce
- Configure a Claude Code web session to use two repos (
org/repo-aandorg/repo-b) - Create a file in the second repo (
org/repo-b/skill-b.md) - Ask Claude to provide a link to a file in the second repo ("Can you provide a link to the skill.md in
repo-b?") - Claude constructs a malformed GitHub link where the text is correct but the actual href is malformed ("Here's the link:
[github.com/org/repo-b/skill-b.md](https://github.com/org/repo-a/skill-b.md)")
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code web session (claude.ai/code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Non-interactive/CI environment
Additional Information
A malformed link to org/repo-a/skill.md is given even if no skill.md exists in that repo.
Platform: Claude Code web session (claude.ai/code), remote execution environment, two GitHub repositories configured.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗