Merge pull request #667 from Monoquark/feature/enhanced-ideation-context-options

feat: Add ideation context settings
This commit is contained in:
Shirone
2026-01-25 00:46:51 +00:00
committed by GitHub
12 changed files with 596 additions and 92 deletions

View File

@@ -68,7 +68,16 @@ export function useGenerateIdeationSuggestions(projectPath: string) {
throw new Error('Ideation API not available');
}
const result = await api.ideation.generateSuggestions(projectPath, promptId, category);
// Get context sources from store
const contextSources = useIdeationStore.getState().getContextSources(projectPath);
const result = await api.ideation.generateSuggestions(
projectPath,
promptId,
category,
undefined, // count - use default
contextSources
);
if (!result.success) {
throw new Error(result.error || 'Failed to generate suggestions');