Fix/claude code path executable setting (#1172)
Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
This commit is contained in:
5
.changeset/petite-ideas-grab.md
Normal file
5
.changeset/petite-ideas-grab.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"task-master-ai": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix Claude Code settings validation for pathToClaudeCodeExecutable
|
||||||
@@ -310,6 +310,7 @@ function validateProviderModelCombination(providerName, modelId) {
|
|||||||
function validateClaudeCodeSettings(settings) {
|
function validateClaudeCodeSettings(settings) {
|
||||||
// Define the base settings schema without commandSpecific first
|
// Define the base settings schema without commandSpecific first
|
||||||
const BaseSettingsSchema = z.object({
|
const BaseSettingsSchema = z.object({
|
||||||
|
pathToClaudeCodeExecutable: z.string().optional(),
|
||||||
maxTurns: z.number().int().positive().optional(),
|
maxTurns: z.number().int().positive().optional(),
|
||||||
customSystemPrompt: z.string().optional(),
|
customSystemPrompt: z.string().optional(),
|
||||||
appendSystemPrompt: z.string().optional(),
|
appendSystemPrompt: z.string().optional(),
|
||||||
|
|||||||
@@ -27,7 +27,10 @@ function enhanceRooMCPConfiguration(mcpPath) {
|
|||||||
|
|
||||||
// Write the enhanced configuration back
|
// Write the enhanced configuration back
|
||||||
fs.writeFileSync(mcpPath, formatJSONWithTabs(mcpConfig) + '\n');
|
fs.writeFileSync(mcpPath, formatJSONWithTabs(mcpConfig) + '\n');
|
||||||
log('debug', `[Roo] Enhanced MCP configuration with timeout at ${mcpPath}`);
|
log(
|
||||||
|
'debug',
|
||||||
|
`[Roo] Enhanced MCP configuration with timeout at ${mcpPath}`
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
log('warn', `[Roo] task-master-ai server not found in MCP configuration`);
|
log('warn', `[Roo] task-master-ai server not found in MCP configuration`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user