Fix Claude config narrowing

This commit is contained in:
Mohamed Boudra
2025-12-25 12:32:29 +07:00
parent c771fd986d
commit 16bce1c3c5
2 changed files with 10 additions and 2 deletions
@@ -340,7 +340,7 @@ export class ClaudeAgentClient implements AgentClient {
if (config.provider !== "claude") {
throw new Error(`ClaudeAgentClient received config for provider '${config.provider}'`);
}
return config;
return { ...config, provider: "claude" };
}
}