fix: harden SSH connection reliability and add passphrase prompt (#636)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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', () => {
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user