Add skip SSH host key verification and fix self-hosted server support (#121)

* Add SSH host key verification with automatic trust and SCP-style URL support

* Fix TypeScript errors for SSH host key schema and test mocks
This commit is contained in:
Chris Scott authored and GitHub committed 2026-02-11 22:58:13 -05:00
1 parent 677ce748cd
commit 7341dce1ef
25 files changed
+203 -123

No files matched your search

+3 -2
View File
@@ -6,12 +6,13 @@ export async function createRepo(
localPath?: string,
branch?: string,
openCodeConfigName?: string,
useWorktree?: boolean
useWorktree?: boolean,
skipSSHVerification?: boolean
): Promise<Repo> {
const response = await fetch(`${API_BASE_URL}/api/repos`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ repoUrl, localPath, branch, openCodeConfigName, useWorktree }),
body: JSON.stringify({ repoUrl, localPath, branch, openCodeConfigName, useWorktree, skipSSHVerification }),
})
if (!response.ok) {
-2
View File
@@ -234,5 +234,3 @@ export interface SSHHostKeyRequest {
timestamp: number
action: 'verify'
}
export type SSHHostKeyResponse = 'accept' | 'reject'