feat(FN-1354): add auto-summarize task titles feature
- Add /api/ai/summarize-title endpoint for AI-generated task titles - Integrate title summarization into task creation flow when autoSummarizeTitles is enabled - Add debug logging and error checking to summarizeTitle in ai-summarize.ts - Add error logging to route handler and task store for failed summaries - Add comprehensive integration tests for the summarize-title API endpoint - Add memory entry documenting the auto-summarize titles bug fix
This commit is contained in:
@@ -5823,10 +5823,10 @@ Task with acceptance criteria
|
||||
|
||||
expect(task.title).toBeUndefined();
|
||||
expect(task.id).toMatch(/^FN-\d+$/); // Task still created
|
||||
expect(consoleSpy).toHaveBeenCalledWith(
|
||||
expect.stringContaining("Title summarization failed"),
|
||||
expect.stringContaining("AI service failed")
|
||||
);
|
||||
expect(consoleSpy.mock.calls[0][0]).toMatch(/Title summarization failed for task/);
|
||||
expect(consoleSpy.mock.calls[0][0]).toMatch(/AI service failed/);
|
||||
expect(consoleSpy.mock.calls[0][0]).toMatch(/desc length: 201/);
|
||||
expect(consoleSpy.mock.calls[0][0]).toMatch(/auto-summarize: true/);
|
||||
|
||||
consoleSpy.mockRestore();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user