tuna-agent 0.1.103 → 0.1.104
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/daemon/index.js +14 -1
- package/package.json +1 -1
package/dist/daemon/index.js
CHANGED
|
@@ -484,7 +484,20 @@ ${skillContent.slice(0, 15000)}`;
|
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
else {
|
|
487
|
-
|
|
487
|
+
// No saved state — create fresh session from task context in payload
|
|
488
|
+
const repoPath = msg.repoPath || '';
|
|
489
|
+
const msgAgentId = msg.agentId || '__default__';
|
|
490
|
+
if (repoPath) {
|
|
491
|
+
console.log(`[Daemon] No saved state for task ${taskId} — starting fresh PM chat (agent: ${msgAgentId}, repo: ${repoPath})`);
|
|
492
|
+
resumePMChat(taskId, answer, attachments, {
|
|
493
|
+
pmSessionId: '',
|
|
494
|
+
repoPath,
|
|
495
|
+
agentId: msgAgentId,
|
|
496
|
+
}, ws, pendingInputResolvers);
|
|
497
|
+
}
|
|
498
|
+
else {
|
|
499
|
+
console.warn(`[Daemon] No pending input resolver and no repoPath for task ${taskId} — cannot resume`);
|
|
500
|
+
}
|
|
488
501
|
}
|
|
489
502
|
}
|
|
490
503
|
break;
|