tuna-agent 0.1.90 → 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.
@@ -224,7 +224,7 @@ export class ClaudeCodeAdapter {
224
224
  prompt: userMessage,
225
225
  cwd,
226
226
  outputFormat: 'stream-json',
227
- includePartialMessages: false,
227
+ includePartialMessages: true,
228
228
  maxTurns: 200,
229
229
  resumeSessionId: round > 0 ? sessionId : undefined,
230
230
  signal,
@@ -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),
@@ -312,7 +312,7 @@ export async function handleGenerateScript(ws, code, taskId, idea, topic, style,
312
312
  cwd: CONTENT_CREATOR_DIR,
313
313
  maxTurns: 4,
314
314
  outputFormat: 'stream-json',
315
- includePartialMessages: false,
315
+ includePartialMessages: true,
316
316
  timeoutMs: 180000,
317
317
  onStreamLine: (data) => {
318
318
  if (streamChunks < 5) {
@@ -784,7 +784,7 @@ ${skillContent.slice(0, 15000)}`;
784
784
  cwd,
785
785
  allowedTools: ['Read', 'Edit', 'Write', 'Bash', 'Glob', 'Grep'],
786
786
  outputFormat: 'stream-json',
787
- includePartialMessages: false,
787
+ includePartialMessages: true,
788
788
  agentTeam: true,
789
789
  maxTurns: 200,
790
790
  resumeSessionId: sessionId,
@@ -142,7 +142,7 @@ export async function planTask(task, onProgress, signal, onTextChunk, inputFiles
142
142
  systemPrompt,
143
143
  maxTurns,
144
144
  outputFormat: 'stream-json',
145
- includePartialMessages: false,
145
+ includePartialMessages: true,
146
146
  onStreamLine: createPlanningStreamHandler(task.id, onProgress, onTextChunk),
147
147
  signal,
148
148
  inputFiles,
@@ -284,7 +284,7 @@ User message: ${userMessage}`;
284
284
  maxTurns: 1,
285
285
  lightweight: true,
286
286
  outputFormat: 'stream-json',
287
- includePartialMessages: false,
287
+ includePartialMessages: true,
288
288
  inputFiles,
289
289
  onStreamLine: onTextChunk ? (data) => {
290
290
  // Parse stream_event → content_block_delta for real token streaming
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuna-agent",
3
- "version": "0.1.90",
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"