

























@@ -975,20 +975,37 @@ describeLive("gateway live (ACP bind)", () => {
975975sessionKey: spawnedSessionKey,
976976});
977977lastCronProbeName = cronProbe.name;
978-await sendChatAndWait({
979- client,
980-sessionKey: originalSessionKey,
981-idempotencyKey: `idem-cron-${attempt}-${randomUUID()}`,
982-message: buildLiveCronProbeMessage({
983-agent: liveAgent,
984-argsJson: cronProbe.argsJson,
985- attempt,
986-exactReply: cronProbe.name,
987-}),
988-originatingChannel: "slack",
989-originatingTo: conversationId,
990-originatingAccountId: accountId,
991-});
978+try {
979+await sendChatAndWait({
980+ client,
981+sessionKey: originalSessionKey,
982+idempotencyKey: `idem-cron-${attempt}-${randomUUID()}`,
983+message: buildLiveCronProbeMessage({
984+agent: liveAgent,
985+argsJson: cronProbe.argsJson,
986+ attempt,
987+exactReply: cronProbe.name,
988+}),
989+originatingChannel: "slack",
990+originatingTo: conversationId,
991+originatingAccountId: accountId,
992+});
993+} catch (error) {
994+lastCronMismatch = error instanceof Error ? error.message : String(error);
995+logLiveStep(
996+`cron mcp turn failed after attempt ${String(attempt + 1)}: ${lastCronMismatch}`,
997+);
998+if (!requireCronMcpProbe) {
999+logLiveStep(
1000+`cron mcp turn ${lastCronProbeName} failed; continuing after bind/image verification`,
1001+);
1002+break;
1003+}
1004+if (attempt === ACP_CRON_MCP_PROBE_MAX_ATTEMPTS - 1) {
1005+throw error;
1006+}
1007+continue;
1008+}
9921009logLiveStep(`cron mcp turn completed (attempt ${String(attempt + 1)})`);
99310109941011let cronHistory: Awaited<ReturnType<typeof waitForAssistantText>> | null = null;
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。