@clawos-dev/clawd 0.2.690 → 0.2.692

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.
package/dist/cli.cjs CHANGED
@@ -47081,7 +47081,7 @@ function sleep(ms) {
47081
47081
  }
47082
47082
  function createLogClient(opts) {
47083
47083
  const stats = { sent: 0, dropped: 0, queued: 0, failed: 0 };
47084
- const fetchImpl = opts.fetchImpl ?? globalThis.fetch;
47084
+ const fetchImpl = opts.fetchImpl ?? globalThis.fetch.bind(globalThis);
47085
47085
  const now = opts.now ?? Date.now;
47086
47086
  const sampling = { ...DEFAULT_SAMPLING, ...opts.sampling ?? {} };
47087
47087
  const homeDir = opts.homeDir === void 0 ? null : opts.homeDir;
@@ -48375,7 +48375,9 @@ function pushEventToBufferInPlace(next, event, deps) {
48375
48375
  next.file = {
48376
48376
  ...next.file,
48377
48377
  updatedAt: nowIso(deps),
48378
- ...cloudPerTurn && isUserText && next.status !== "error" ? {
48378
+ // Only a local send carries `sender`. A user_text echoed by the engine stream (skill hint, interrupt marker) has no
48379
+ // turn stream of its own, so recording it would leave a pending turn that startup recovery replays to the Pod.
48380
+ ...cloudPerTurn && isUserText && withSeq.sender && next.status !== "error" ? {
48379
48381
  cloudConversationId: next.file.cloudConversationId ?? next.file.cloudExecutionId ?? cloudTurnId,
48380
48382
  cloudPendingTurns: [...next.file.cloudPendingTurns ?? [], { id: cloudTurnId, text: withSeq.text }]
48381
48383
  } : {},
@@ -75524,7 +75526,7 @@ function computeMethodAccess(args) {
75524
75526
  }
75525
75527
 
75526
75528
  // src/version.ts
75527
- var version = "0.2.690".length > 0 ? "0.2.690" : "dev";
75529
+ var version = "0.2.692".length > 0 ? "0.2.692" : "dev";
75528
75530
 
75529
75531
  // src/cli-probe/probe.ts
75530
75532
  var fs86 = __toESM(require("fs"), 1);