mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 00:03:20 +00:00
fix(mobile-pairing): keep recovery alert actionable
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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: () => {
|
||||
|
||||
Reference in New Issue
Block a user