replicas-engine 0.1.645 → 0.1.646

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.
@@ -5919,7 +5919,7 @@ var DEFAULT_CODEX_ARGS = [
5919
5919
  var MIN_CODEX_CLI_VERSION = "0.144.6";
5920
5920
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
5921
5921
  var codexCliVersionEnsured = null;
5922
- var ENGINE_PACKAGE_VERSION = "0.1.645";
5922
+ var ENGINE_PACKAGE_VERSION = "0.1.646";
5923
5923
  var INITIALIZE_METHOD = "initialize";
5924
5924
  var INITIALIZED_NOTIFICATION = "initialized";
5925
5925
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -7,7 +7,7 @@ import {
7
7
  isUnsafeMemoryOutput,
8
8
  putPresignedFile,
9
9
  recoverCompletedTurn
10
- } from "./chunk-GQLEHOGS.js";
10
+ } from "./chunk-VFNHX5RC.js";
11
11
 
12
12
  // src/headless-agent.ts
13
13
  import { createHash } from "crypto";
package/dist/src/index.js CHANGED
@@ -172,7 +172,7 @@ import {
172
172
  serializeCanvasContentResponse,
173
173
  shellQuotePosix,
174
174
  stripAgentDiagnosticErrors
175
- } from "./chunk-GQLEHOGS.js";
175
+ } from "./chunk-VFNHX5RC.js";
176
176
 
177
177
  // src/index.ts
178
178
  import { serve } from "@hono/node-server";
@@ -10812,7 +10812,9 @@ var ChatService = class {
10812
10812
  request.submittedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
10813
10813
  request.images
10814
10814
  );
10815
- chat.pendingMessageIds.push(result.messageId);
10815
+ if (!chat.pendingMessageIds.includes(result.messageId)) {
10816
+ chat.pendingMessageIds.push(result.messageId);
10817
+ }
10816
10818
  this.agentChatActivityTrackerService.noteMessageAccepted(result.messageId, request);
10817
10819
  if (request.errorNotificationTarget) {
10818
10820
  chat.errorNotificationTargets.set(result.messageId, request.errorNotificationTarget);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.645",
3
+ "version": "0.1.646",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",