Skip to content

feat: support ssh:// remotes in kai clone#32

Merged
fatihacet merged 1 commit into
mainfrom
feat/clone-ssh-remotes
Jul 8, 2026
Merged

feat: support ssh:// remotes in kai clone#32
fatihacet merged 1 commit into
mainfrom
feat/clone-ssh-remotes

Conversation

@fatihacet

Copy link
Copy Markdown
Member

Summary

kai clone can now handle ssh://user@host/tenant/repo URLs, which target a kailabd serve-stdio endpoint with no git backing.

Changes

  • runCloneKaiOnly: parse the ssh:// URL, extract <tenant>/<repo> from the path, and preserve the userinfo (user@) in the server URL so ssh dials the right account. NewClient detects the ssh:// scheme downstream and swaps in the ssh transport.
  • runClone: route ssh:// remotes straight to the Kai-only path, skipping the git clone attempt that would only fail with git-upload-pack: command not found before falling back anyway.

Handle `ssh://user@host/tenant/repo` URLs, which target a kailabd
serve-stdio endpoint with no git backing:

- runCloneKaiOnly: parse the ssh:// URL, extract <tenant>/<repo> from the
  path, and preserve the userinfo (user@) in the server URL so ssh dials
  the right account. NewClient detects the ssh:// scheme downstream and
  swaps in the ssh transport.
- runClone: route ssh:// remotes straight to the Kai-only path, skipping
  the git clone attempt that would only fail with
  "git-upload-pack: command not found" before falling back anyway.
@kaicontext

kaicontext Bot commented Jul 8, 2026

Copy link
Copy Markdown

🔍 Kai review

⚠️ Kai couldn't finish reviewing this pull request. Push a new commit or re-run the review to try again.

@fatihacet fatihacet merged commit 6dde3eb into main Jul 8, 2026
10 checks passed
@fatihacet fatihacet deleted the feat/clone-ssh-remotes branch July 8, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant