@slock-ai/daemon 0.53.1-alpha.2 → 0.53.1-alpha.3
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.
|
@@ -5550,8 +5550,18 @@ function isMissingResumeSession(ap) {
|
|
|
5550
5550
|
(text) => /Session not found/i.test(text) && text.includes(ap.sessionId)
|
|
5551
5551
|
);
|
|
5552
5552
|
}
|
|
5553
|
+
if (ap.driver.id === "gemini") {
|
|
5554
|
+
return candidates.some(
|
|
5555
|
+
(text) => /Error resuming session:\s*Invalid session identifier/i.test(text) && text.includes(ap.sessionId)
|
|
5556
|
+
);
|
|
5557
|
+
}
|
|
5553
5558
|
return false;
|
|
5554
5559
|
}
|
|
5560
|
+
function resumeSessionRuntimeLabel(runtimeId) {
|
|
5561
|
+
if (runtimeId === "opencode") return "OpenCode";
|
|
5562
|
+
if (runtimeId === "gemini") return "Gemini";
|
|
5563
|
+
return "Claude";
|
|
5564
|
+
}
|
|
5555
5565
|
function classifyActivityDetailForTrace(detail) {
|
|
5556
5566
|
if (!detail) return void 0;
|
|
5557
5567
|
if (detail === "Message received") return "message_received";
|
|
@@ -6471,7 +6481,7 @@ Use ${communicationCommand(driver, "read_history")} to catch up on the channels
|
|
|
6471
6481
|
this.agents.delete(agentId);
|
|
6472
6482
|
if (missingResumeSession) {
|
|
6473
6483
|
const staleSessionId = ap.sessionId;
|
|
6474
|
-
const runtimeLabel = ap.driver.id
|
|
6484
|
+
const runtimeLabel = resumeSessionRuntimeLabel(ap.driver.id);
|
|
6475
6485
|
const restartConfig = { ...stripManagedRunnerCredential(ap.config), sessionId: null };
|
|
6476
6486
|
logger.warn(
|
|
6477
6487
|
`[Agent ${agentId}] Stored ${runtimeLabel} session ${staleSessionId} is unavailable locally; falling back to cold start`
|
|
@@ -6480,7 +6490,10 @@ Use ${communicationCommand(driver, "read_history")} to catch up on the channels
|
|
|
6480
6490
|
agentId,
|
|
6481
6491
|
"working",
|
|
6482
6492
|
`Stored ${runtimeLabel} session missing; cold-starting a new session\u2026`,
|
|
6483
|
-
[{
|
|
6493
|
+
[{
|
|
6494
|
+
kind: "text",
|
|
6495
|
+
text: `Stored ${runtimeLabel} session ${staleSessionId} was not found locally. Falling back to a cold start; earlier runtime context may not be restored.`
|
|
6496
|
+
}]
|
|
6484
6497
|
);
|
|
6485
6498
|
this.startAgent(
|
|
6486
6499
|
agentId,
|
package/dist/core.js
CHANGED
package/dist/index.js
CHANGED