@clawos-dev/clawd 0.2.192-beta.388.6551a3f → 0.2.193-beta.389.2a43229
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 +20 -4
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -41759,13 +41759,23 @@ function pushEventToBuffer(state, event, deps) {
|
|
|
41759
41759
|
effects.push({ kind: "persist-file", file: next.file });
|
|
41760
41760
|
effects.push(sessionInfoFrame(next.file));
|
|
41761
41761
|
}
|
|
41762
|
-
if (isTurnEnd && next.
|
|
41762
|
+
if (isTurnEnd && next.procAlive && (next.status === "running" || next.status === "spawning")) {
|
|
41763
41763
|
next.status = "running-idle";
|
|
41764
41764
|
effects.push({
|
|
41765
|
-
kind: "
|
|
41766
|
-
|
|
41767
|
-
|
|
41765
|
+
kind: "emit-frame",
|
|
41766
|
+
frame: {
|
|
41767
|
+
type: "session:status",
|
|
41768
|
+
sessionId: next.file.sessionId,
|
|
41769
|
+
status: "running-idle"
|
|
41770
|
+
}
|
|
41768
41771
|
});
|
|
41772
|
+
if (next.subSessionMeta?.idleKillEnabled) {
|
|
41773
|
+
effects.push({
|
|
41774
|
+
kind: "schedule-idle-kill",
|
|
41775
|
+
sessionId: next.file.sessionId,
|
|
41776
|
+
ms: IDLE_KILL_DELAY_MS
|
|
41777
|
+
});
|
|
41778
|
+
}
|
|
41769
41779
|
}
|
|
41770
41780
|
return { state: next, effects };
|
|
41771
41781
|
}
|
|
@@ -41792,6 +41802,12 @@ function applyCommand(state, command, deps) {
|
|
|
41792
41802
|
if (next.status === "running-idle") {
|
|
41793
41803
|
effects.push({ kind: "cancel-idle-kill", sessionId });
|
|
41794
41804
|
next.status = next.procAlive ? "running" : "idle";
|
|
41805
|
+
if (next.procAlive) {
|
|
41806
|
+
effects.push({
|
|
41807
|
+
kind: "emit-frame",
|
|
41808
|
+
frame: { type: "session:status", sessionId, status: "running" }
|
|
41809
|
+
});
|
|
41810
|
+
}
|
|
41795
41811
|
}
|
|
41796
41812
|
if (!next.procAlive) {
|
|
41797
41813
|
next.procAlive = true;
|
package/package.json
CHANGED