@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.
@@ -5270,7 +5270,7 @@ var init_codex = __esm(async () => {
5270
5270
  });
5271
5271
 
5272
5272
  // ../../packages/core/src/version.ts
5273
- var NEGOTIUM_VERSION = "0.23.14";
5273
+ var NEGOTIUM_VERSION = "0.23.15";
5274
5274
 
5275
5275
  // ../../packages/core/src/agents/codex-native-multi-agent.ts
5276
5276
  import { spawn as spawn2 } from "child_process";
@@ -20458,6 +20458,11 @@ function startAiTurn(params) {
20458
20458
  }
20459
20459
  if (decision.action === "abort-replace") {
20460
20460
  const running = decision.running;
20461
+ const runningRequestIds = new Set(running.durableRequestIds ?? []);
20462
+ if (durableRequestIds.length > 0 && durableRequestIds.every((requestId) => runningRequestIds.has(requestId))) {
20463
+ logger.warn({ topicId, queryId: running.queryId, durableRequestIds }, "ai: ignored a replay of the durable request this room is already running");
20464
+ return running.queryId;
20465
+ }
20461
20466
  if (isUserOrigin(running.origin) && !sameTurnActor(running.actorUserId, params.actorUserId)) {
20462
20467
  const queuedQueryId = waitToStartRemoteUserTurn({
20463
20468
  ...params,
@@ -23205,4 +23210,4 @@ export {
23205
23210
  withTaskSnapshots
23206
23211
  };
23207
23212
 
23208
- //# debugId=7836A053B43D717A64756E2164756E21
23213
+ //# debugId=2617EB59D12BCB6864756E2164756E21