fix: reconcile SSH repo rows after host re-add (#8201)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo Hong
2026-07-11 03:20:55 -07:00
committed by GitHub
co-authored by Orca
parent 6e3ebf534c
commit 25ecf2eea2
28 changed files with 1304 additions and 240 deletions
+17
View File
@@ -68,6 +68,23 @@ export type RemovedSshTargetTombstone = {
removedAt: number
}
/** Exact repo ownership changes made while re-adopting a removed SSH host. */
export type SshRepoReadoption = {
oldTargetId: string
newTargetId: string
repoIds: string[]
}
export type SshTargetAddResult = {
target: SshTarget
repoReadoptions: SshRepoReadoption[]
}
export type SshConfigImportResult = {
targets: SshTarget[]
repoReadoptions: SshRepoReadoption[]
}
export type SavedPortForward = {
localPort: number
remoteHost: string