Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): preserve recovery outcomes after history rebase
Dashebfb97b93fdd
diff --git a/apps/mobile/src/device-link/DeviceLinkContext.tsx b/apps/mobile/src/device-link/DeviceLinkContext.tsxindex dcd91a9845..dbd28721ac 100644--- a/apps/mobile/src/device-link/DeviceLinkContext.tsx+++ b/apps/mobile/src/device-link/DeviceLinkContext.tsx@@ -1532,9 +1532,10 @@ async function rebuildSessionSnapshot(if (historyView) {if (!historyView.isActive()) return false;await historyView.refresh();+ if (!isCurrent() || !historyView.isActive()+ || findRemoteHistoryView(deviceId, sessionId) !== historyView) return false;const snapshot = historyView.getSnapshot();- if (!snapshot.error && snapshot.ready) return isCurrent() && historyView.isActive()- && findRemoteHistoryView(deviceId, sessionId) === historyView;+ if (!snapshot.error && snapshot.ready) return true;if (!isHistoryViewUnavailable(snapshot.error)) throw snapshot.error;}return applyHistory(await readRawHistory());