@clawos-dev/clawd 0.2.635 → 0.2.636

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.
Files changed (2) hide show
  1. package/dist/cli.cjs +4 -2
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -46654,6 +46654,7 @@ function cloneState(s2) {
46654
46654
  bufferStartSeq: s2.bufferStartSeq,
46655
46655
  turnOpen: s2.turnOpen,
46656
46656
  turnStartedAt: s2.turnStartedAt,
46657
+ turnSelfWoke: s2.turnSelfWoke,
46657
46658
  pendingPermissions: s2.pendingPermissions,
46658
46659
  pendingQuestions: s2.pendingQuestions,
46659
46660
  freshSpawn: s2.freshSpawn,
@@ -47049,7 +47050,7 @@ function pushEventToBufferInPlace(next, event, deps) {
47049
47050
  next.pendingBgTasks = [...pending, bg.agentId];
47050
47051
  }
47051
47052
  }
47052
- if (isTurnEnd && next.turnOpen && isLateTurnEnd(withSeq, next.turnStartedAt, deps.now())) {
47053
+ if (isTurnEnd && next.turnOpen && !next.turnSelfWoke && isLateTurnEnd(withSeq, next.turnStartedAt, deps.now())) {
47053
47054
  return [emitSessionEvent(next.file.sessionId, withSeq)];
47054
47055
  }
47055
47056
  if (isTurnEnd) {
@@ -47062,6 +47063,7 @@ function pushEventToBufferInPlace(next, event, deps) {
47062
47063
  } else if (!isBackgroundEvent && !(isSessionInit && next.status === "running-idle") && !next.turnOpen) {
47063
47064
  next.turnOpen = true;
47064
47065
  next.turnStartedAt = deps.now();
47066
+ next.turnSelfWoke = next.status === "running-idle";
47065
47067
  }
47066
47068
  if (!next.turnOpen && next.buffer.length > deps.bufferCap) {
47067
47069
  const remove = next.buffer.length - deps.bufferCap;
@@ -73730,7 +73732,7 @@ function computeMethodAccess(args) {
73730
73732
  }
73731
73733
 
73732
73734
  // src/version.ts
73733
- var version = "0.2.635".length > 0 ? "0.2.635" : "dev";
73735
+ var version = "0.2.636".length > 0 ? "0.2.636" : "dev";
73734
73736
 
73735
73737
  // src/cli-probe/probe.ts
73736
73738
  var fs84 = __toESM(require("fs"), 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.635",
3
+ "version": "0.2.636",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",