tuna-agent 0.1.174 → 0.1.175

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.
@@ -558,14 +558,11 @@ export class ClaudeCodeAdapter {
558
558
  pmSessionId = chatResult.sessionId || pmSessionId;
559
559
  // Update persisted PM session ID
560
560
  savePMState({ taskId: task.id, pmSessionId, repoPath: task.repoPath, savedAt: new Date().toISOString(), agentId: task.agentId });
561
- // PM produced a plan with subtasks → break out to execution
561
+ // PM produced a plan with subtasks → break out to execution.
562
+ // (No "Got it! <summary>" message — plan_ready already conveys the summary;
563
+ // sending both duplicated it and added a robotic English prefix.)
562
564
  if (chatResult.plan && chatResult.plan.subtasks.length > 0) {
563
565
  planResult = { plan: chatResult.plan, pmSessionId };
564
- ws.sendPMMessage(task.id, {
565
- sender: 'pm',
566
- content: `Got it! ${chatResult.plan.summary}`,
567
- startedAt: firstChunkIso || undefined,
568
- });
569
566
  break;
570
567
  }
571
568
  // PM responded conversationally — send to app and update latest message
@@ -709,11 +706,8 @@ export class ClaudeCodeAdapter {
709
706
  const { text: answer } = await waitForInput(task.id, pendingInputResolvers);
710
707
  console.log(`[ClaudeCode] User answered: ${answer.substring(0, 80)}`);
711
708
  pmAnswers.push({ question: q.question, answer });
712
- ws.sendPMMessage(task.id, {
713
- sender: 'pm',
714
- content: `Got it! Proceeding with: ${answer.substring(0, 100)}${answer.length > 100 ? '...' : ''}`,
715
- });
716
- // Delay to ensure "Got it!" is saved to DB before next question triggers refetch
709
+ // (No robotic "Got it! Proceeding with…" ack — the agent just continues.)
710
+ // Small delay to avoid a refetch race before the next question.
717
711
  await new Promise(resolve => setTimeout(resolve, 200));
718
712
  }
719
713
  }
@@ -777,7 +777,7 @@ ${skillContent.slice(0, 15000)}`;
777
777
  // PM produced a plan → execute it using shared helper
778
778
  if (chatResult.plan && chatResult.plan.subtasks.length > 0) {
779
779
  const plan = chatResult.plan;
780
- wsClient.sendPMMessage(taskId, { sender: 'pm', content: `Got it! ${plan.summary}`, startedAt: firstChunkIso || undefined });
780
+ // (No "Got it! <summary>" plan_ready already conveys the summary.)
781
781
  wsClient.sendPlanReady(taskId, {
782
782
  summary: plan.summary,
783
783
  subtasks: plan.subtasks.map((s) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuna-agent",
3
- "version": "0.1.174",
3
+ "version": "0.1.175",
4
4
  "description": "Tuna Agent - Run AI coding tasks on your machine",
5
5
  "bin": {
6
6
  "tuna-agent": "dist/cli/index.js"