agentlife 2.6.0 → 2.6.1
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/index.js +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3493,10 +3493,9 @@ function dispatchRehydrate(state, runtime, log = console.log) {
|
|
|
3493
3493
|
const params = JSON.stringify({
|
|
3494
3494
|
sessionKey: buildAgentSessionKey(agentId),
|
|
3495
3495
|
message: REHYDRATE_PROMPT,
|
|
3496
|
-
idempotencyKey: `rehydrate-${agentId}-${bootId}
|
|
3497
|
-
timeoutSeconds: 0
|
|
3496
|
+
idempotencyKey: `rehydrate-${agentId}-${bootId}`
|
|
3498
3497
|
});
|
|
3499
|
-
state.runCommand(["openclaw", "gateway", "call", "chat.send", "--params", params], { timeoutMs:
|
|
3498
|
+
state.runCommand(["openclaw", "gateway", "call", "chat.send", "--params", params], { timeoutMs: 60000 }).then((result) => log(`[agentlife:rehydrate] ${agentId} dispatched: code=${result?.code ?? "?"}`)).catch((e) => log(`[agentlife:rehydrate] ${agentId} dispatch failed: ${e?.message ?? e}`));
|
|
3500
3499
|
}
|
|
3501
3500
|
log(`[agentlife:rehydrate] dispatched rehydrate to ${orphaned.length} orphaned agent(s): ${orphaned.join(", ")}`);
|
|
3502
3501
|
}
|