feat: add prompt for claude code to include context when generating tasks (#1092)

This commit is contained in:
Ralph Khreish
2025-08-06 13:41:19 +03:00
committed by GitHub
parent 36468f3c93
commit 59f7676051
5 changed files with 27 additions and 12 deletions

View File

@@ -13,7 +13,12 @@ import {
import { generateTextService } from '../ai-services-unified.js';
import { getDebugFlag, getProjectName } from '../config-manager.js';
import {
getDebugFlag,
getProjectName,
getMainProvider,
getResearchProvider
} from '../config-manager.js';
import { getPromptManager } from '../prompt-manager.js';
import {
COMPLEXITY_REPORT_FILE,
@@ -410,8 +415,9 @@ async function analyzeTaskComplexity(options, context = {}) {
const promptManager = getPromptManager();
// Check if Claude Code is being used as the provider
const { getMainProvider, getResearchProvider } = await import('../config-manager.js');
const currentProvider = useResearch ? getResearchProvider(projectRoot) : getMainProvider(projectRoot);
const currentProvider = useResearch
? getResearchProvider(projectRoot)
: getMainProvider(projectRoot);
const isClaudeCode = currentProvider === CUSTOM_PROVIDERS.CLAUDE_CODE;
const promptParams = {