From 4c0aa3bfc0c1f74b12cf674d7fc1362cd669ba78 Mon Sep 17 00:00:00 2001 From: LiBr Date: Mon, 13 Apr 2026 17:49:01 +0800 Subject: [PATCH] fix: ux --- frontend/src/App.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index a7dea16..d73c973 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -273,9 +273,9 @@ export function App() { addLog('pair: waiting for trust confirmation on device'); }, }); - const changed = pairedDeviceInfo?.udid !== info.udid; setPairedDeviceInfo(info); - if (changed) clearPrepared(); + // A signed IPA is keyed by file + UDID, so reconnecting the same target device + // must keep the prepared artifact available for install. setSelectedTargetUdid(info.udid); saveText(SELECTED_DEVICE_UDID_STORAGE_KEY, info.udid); setPairRecordsVersion((v) => v + 1); @@ -291,7 +291,7 @@ export function App() { } finally { setBusy((prev) => ({ ...prev, pair: false })); } - }, [addLog, clearPrepared, pairedDeviceInfo]); + }, [addLog]); // ---- login flow ---- const handleLogin = useCallback(async () => {