@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 === "opencode" ? "OpenCode" : "Claude";
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
- [{ kind: "text", text: `Stored ${runtimeLabel} session ${staleSessionId} was not found locally. Falling back to a cold start.` }]
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
@@ -9,7 +9,7 @@ import {
9
9
  resolveSlockCliPath,
10
10
  resolveWorkspaceDirectoryPath,
11
11
  scanWorkspaceDirectories
12
- } from "./chunk-RFGC74KF.js";
12
+ } from "./chunk-QVULOADZ.js";
13
13
  import {
14
14
  subscribeDaemonLogs
15
15
  } from "./chunk-KNMCE6WB.js";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  DAEMON_CLI_USAGE,
4
4
  DaemonCore,
5
5
  parseDaemonCliArgs
6
- } from "./chunk-RFGC74KF.js";
6
+ } from "./chunk-QVULOADZ.js";
7
7
  import "./chunk-KNMCE6WB.js";
8
8
 
9
9
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slock-ai/daemon",
3
- "version": "0.53.1-alpha.2",
3
+ "version": "0.53.1-alpha.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"