fix: harden SSH connection reliability and add passphrase prompt (#636)

This commit is contained in:
Jinwoo Hong
2026-04-14 18:29:50 -07:00
committed by GitHub
parent 8c016c91b2
commit 42e04268fb
37 changed files with 2066 additions and 751 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ export const DEFAULT_WORKTREE_CARD_PROPERTIES: WorktreeCardProperty[] = [
'comment'
]
export const DEFAULT_STATUS_BAR_ITEMS: StatusBarItem[] = ['claude', 'codex']
export const DEFAULT_STATUS_BAR_ITEMS: StatusBarItem[] = ['claude', 'codex', 'ssh']
export const REPO_COLORS = [
'#737373', // neutral
+1 -3
View File
@@ -18,8 +18,6 @@ describe('SSH types', () => {
const statuses: SshConnectionStatus[] = [
'disconnected',
'connecting',
'host-key-verification',
'auth-challenge',
'auth-failed',
'deploying-relay',
'connected',
@@ -27,7 +25,7 @@ describe('SSH types', () => {
'reconnection-failed',
'error'
]
expect(statuses).toHaveLength(10)
expect(statuses).toHaveLength(8)
})
it('SshConnectionState composes correctly', () => {
+2 -2
View File
@@ -3,6 +3,8 @@
export type SshTarget = {
id: string
label: string
/** Host alias to resolve through OpenSSH config (ssh -G). */
configHost?: string
host: string
port: number
username: string
@@ -17,8 +19,6 @@ export type SshTarget = {
export type SshConnectionStatus =
| 'disconnected'
| 'connecting'
| 'host-key-verification'
| 'auth-challenge'
| 'auth-failed'
| 'deploying-relay'
| 'connected'
+1 -1
View File
@@ -545,7 +545,7 @@ export type OpenCodeStatusEvent = {
export type WorktreeCardProperty = 'status' | 'unread' | 'ci' | 'issue' | 'pr' | 'comment'
export type StatusBarItem = 'claude' | 'codex'
export type StatusBarItem = 'claude' | 'codex' | 'ssh'
export type PersistedUIState = {
lastActiveRepoId: string | null