diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 799ef23bc..77c0cbab9 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -443,6 +443,14 @@ export class VsCodeMessenger { ); } + // Convert SSH protocol to HTTPS: ssh://git@github.com/owner/repo.git -> https://github.com/owner/repo + // Also handles: ssh://git@github.com:owner/repo.git (less common) + if (normalized.startsWith("ssh://git@github.com")) { + normalized = normalized + .replace("ssh://git@github.com/", "https://github.com/") + .replace("ssh://git@github.com:", "https://github.com/"); + } + // Convert shorthand owner/repo to full URL if ( normalized.includes("/") && diff --git a/gui/src/components/BackgroundMode/AgentsList.tsx b/gui/src/components/BackgroundMode/AgentsList.tsx index 5a7b98697..44dd15d74 100644 --- a/gui/src/components/BackgroundMode/AgentsList.tsx +++ b/gui/src/components/BackgroundMode/AgentsList.tsx @@ -32,6 +32,14 @@ const normalizeRepoUrl = (url: string | undefined | null): string => { normalized = normalized.replace("git@github.com:", "https://github.com/"); } + // Convert SSH protocol to HTTPS: ssh://git@github.com/owner/repo.git -> https://github.com/owner/repo + // Also handles: ssh://git@github.com:owner/repo.git (less common) + if (normalized.startsWith("ssh://git@github.com")) { + normalized = normalized + .replace("ssh://git@github.com/", "https://github.com/") + .replace("ssh://git@github.com:", "https://github.com/"); + } + // Convert shorthand owner/repo to full URL if ( normalized.includes("/") &&