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:
@@ -1048,7 +1048,12 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
|
||||
}
|
||||
} catch (err) {
|
||||
// Log warning but don't block task creation
|
||||
console.warn(`[TaskStore] Title summarization failed for task ${id}:`, err instanceof Error ? err.message : err);
|
||||
const errorMsg = err instanceof Error ? err.message : String(err);
|
||||
const autoEnabled = options?.settings?.autoSummarizeTitles === true;
|
||||
console.warn(
|
||||
`[TaskStore] Title summarization failed for task ${id}: ${errorMsg}` +
|
||||
` (desc length: ${input.description.length}, auto-summarize: ${autoEnabled})`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user