fix(mobile-pairing): keep recovery alert actionable

This commit is contained in:
Brennan Benson
2026-07-21 20:38:13 -07:00
parent ae2dc1d2f8
commit b68d6f51b2
2 changed files with 7 additions and 1 deletions
@@ -100,6 +100,11 @@ describe('unauthorized close-code mapping (silent 4001)', () => {
}
expect(client.getState()).toBe('auth-failed')
expect(mockSockets).toHaveLength(3)
expect(vi.getTimerCount()).toBe(0)
await vi.advanceTimersByTimeAsync(10 * 60_000)
expect(mockSockets).toHaveLength(3)
client.close()
})
+2 -1
View File
@@ -1188,7 +1188,8 @@ export function useIpcEvents(): void {
'auto.hooks.useIpcEvents.11992d0337',
'If this was your phone or another Orca client, re-pair it from Settings → Mobile.'
),
duration: 15_000,
// Why: main emits this recovery path once per session, so it must remain visible until acted on or dismissed.
duration: Infinity,
action: {
label: translate('auto.hooks.useIpcEvents.6573cfe955', 'Open Mobile Settings'),
onClick: () => {