@otium-team/negotium 0.23.14 → 0.23.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5316,7 +5316,7 @@ var init_codex = __esm(async () => {
5316
5316
  });
5317
5317
 
5318
5318
  // ../../packages/core/src/version.ts
5319
- var NEGOTIUM_VERSION = "0.23.14";
5319
+ var NEGOTIUM_VERSION = "0.23.15";
5320
5320
 
5321
5321
  // ../../packages/core/src/agents/codex-native-multi-agent.ts
5322
5322
  import { spawn as spawn2 } from "child_process";
@@ -20461,6 +20461,11 @@ function startAiTurn(params) {
20461
20461
  }
20462
20462
  if (decision.action === "abort-replace") {
20463
20463
  const running = decision.running;
20464
+ const runningRequestIds = new Set(running.durableRequestIds ?? []);
20465
+ if (durableRequestIds.length > 0 && durableRequestIds.every((requestId) => runningRequestIds.has(requestId))) {
20466
+ logger.warn({ topicId, queryId: running.queryId, durableRequestIds }, "ai: ignored a replay of the durable request this room is already running");
20467
+ return running.queryId;
20468
+ }
20464
20469
  if (isUserOrigin(running.origin) && !sameTurnActor(running.actorUserId, params.actorUserId)) {
20465
20470
  const queuedQueryId = waitToStartRemoteUserTurn({
20466
20471
  ...params,
@@ -25882,4 +25887,4 @@ export {
25882
25887
  protectMcpStdio
25883
25888
  };
25884
25889
 
25885
- //# debugId=00AF1CCAA2D5289F64756E2164756E21
25890
+ //# debugId=6F1E51F59983617264756E2164756E21