Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(archive): 手机批量确认卡打开后所选任务变化时关闭确认卡

Dash15f34263b05b
diff --git a/apps/mobile/app/devices/[deviceId].tsx b/apps/mobile/app/devices/[deviceId].tsx
index 186fb6ebac..9aa20ba6b5 100644
--- a/apps/mobile/app/devices/[deviceId].tsx
+++ b/apps/mobile/app/devices/[deviceId].tsx
@@ -652,6 +652,14 @@ function DeviceDetailScreenContent() {
}
}, [bulkActionPending, deviceId, loadSessions, maker, t]);
+ // 确认卡打开后所选任务变了:提醒是按打开时的候选算的,关掉卡片让用户重新发起,
+ // 避免确认时归档了从未被查询过的任务。
+ useEffect(() => {
+ bulkScheduleRequestRef.current += 1;
+ setBulkScheduleLoading(false);
+ setBulkConfirmAction(null);
+ }, [selectedSessionIds]);
+
const requestBulkAction = useCallback((action: MobileSessionBulkAction) => {
const summary = bulkActionSummaries[action];
if (summary.candidates.length === 0) {