feat: Enhance auto mode service with summary extraction and saving

- Added functionality to extract and save the final summary from multi-task or single-agent execution in the auto mode service.
- Updated event types in the query invalidation hook to include 'auto_mode_task_started' and 'auto_mode_task_complete' for better event handling.
This commit is contained in:
Shirone
2026-01-25 11:36:53 +01:00
parent f025ced035
commit 4485c49c9b
2 changed files with 9 additions and 0 deletions

View File

@@ -4808,6 +4808,13 @@ After generating the revised spec, output:
}
}
// Extract and save final summary from multi-task or single-agent execution
// Note: saveFeatureSummary already emits auto_mode_summary event
const summary = extractSummary(responseText);
if (summary) {
await this.saveFeatureSummary(projectPath, featureId, summary);
}
logger.info(`Implementation completed for feature ${featureId}`);
// Exit the original stream loop since continuation is done
break streamLoop;

View File

@@ -47,6 +47,8 @@ const SINGLE_FEATURE_INVALIDATION_EVENTS: AutoModeEvent['type'][] = [
'auto_mode_phase',
'auto_mode_phase_complete',
'auto_mode_task_status',
'auto_mode_task_started',
'auto_mode_task_complete',
'auto_mode_summary',
];