fix: Add shell:true for Windows PATH resolution in ccw-litellm status check

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-12-25 17:50:00 +08:00
parent 303c840464
commit 0f8a47e8f6

View File

@@ -581,7 +581,8 @@ export async function handleLiteLLMApiRoutes(ctx: RouteContext): Promise<boolean
try {
const { stdout } = await execAsync(`${pythonExe} -c "${pythonCode}"`, {
timeout: 5000,
windowsHide: true
windowsHide: true,
shell: true, // Required for Windows PATH resolution
});
const version = stdout.trim();
if (version) {