tuna-agent 0.1.91 → 0.1.92

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.
@@ -321,6 +321,16 @@ export class ClaudeCodeAdapter {
321
321
  sessionId = result.sessionId || sessionId;
322
322
  totalDurationMs += result.durationMs || 0;
323
323
  if (result.isError) {
324
+ // Save state so user can retry by sending a message to the failed task
325
+ savePMState({
326
+ taskId: task.id,
327
+ pmSessionId: '',
328
+ repoPath: cwd,
329
+ savedAt: new Date().toISOString(),
330
+ mode: 'agent_team',
331
+ agentTeamSessionId: sessionId,
332
+ agentId: task.agentId,
333
+ });
324
334
  ws.sendPMMessage(task.id, {
325
335
  sender: 'pm',
326
336
  content: simplifyMarkdown(result.result),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuna-agent",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "description": "Tuna Agent - Run AI coding tasks on your machine",
5
5
  "bin": {
6
6
  "tuna-agent": "dist/cli/index.js"