Skip to content

Extension installation fails from non-GitHub git servers #2538

@d191

Description

@d191

What happened?

When trying to install an extension from a self-hosted git server (e.g., GitLab, Bitbucket, Gitea), the installation fails after confirmation with the error:

Invalid GitHub repository source: https://gitlab.company.com/owner/repo. Expected "owner/repo" or a github repo uri.

Steps to reproduce:

  1. Run: qwen extensions install https://gitlab.company.com/team/my-extension
  2. Confirm installation when prompted
  3. Observe the error

What did you expect to happen?

The extension should install successfully using the git URL as the source.

Client information

Client Information
Qwen Code                         0.12.6 (ac30c98a2)
Runtime                           Node.js v24.14.0 / npm 11.9.0
OS                                linux x64 (6.6.87.2-microsoft-standard-WSL2)

Login information

No response

Anything else we need to know?

Root cause: The getExtensionId function calls parseGitHubRepoForReleases() which only supports GitHub URLs.
Fix: wrap in try-catch to fall back to source URL for non-GitHub servers.

Metadata

Metadata

Assignees

Labels

status/needs-triageIssue needs to be triaged and labeledtype/bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions