mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 18:16:08 +00:00
fix(cliproxy): address 4 functional regressions in composite variants
- P1: Remote composite env now uses remote endpoint/auth Add CompositeRemoteConfig parameter to getCompositeEnvVars() Pass remote config when useRemoteProxy is true - P2: Tier thinking uses tier-specific provider Extract tier provider from compositeTiers for supportsThinking() Fix mixed-provider composite thinking config - P2: Force variant removal checks result Fail fast if removeVariant fails in --force mode - P2: Guard composite validation against missing tiers Add null check before Object.entries(variant.tiers)
This commit is contained in:
@@ -92,7 +92,13 @@ export function buildClaudeEnvironment(config: ProxyChainConfig): Record<string,
|
||||
compositeTiers,
|
||||
compositeDefaultTier,
|
||||
tunnelPort,
|
||||
customSettingsPath
|
||||
customSettingsPath,
|
||||
{
|
||||
host: '127.0.0.1',
|
||||
port: tunnelPort,
|
||||
protocol: 'http',
|
||||
authToken: remoteConfig.authToken,
|
||||
}
|
||||
);
|
||||
} else {
|
||||
envVars = getRemoteEnvVars(
|
||||
@@ -113,7 +119,13 @@ export function buildClaudeEnvironment(config: ProxyChainConfig): Record<string,
|
||||
compositeTiers,
|
||||
compositeDefaultTier,
|
||||
remoteConfig.port,
|
||||
customSettingsPath
|
||||
customSettingsPath,
|
||||
{
|
||||
host: remoteConfig.host,
|
||||
port: remoteConfig.port,
|
||||
protocol: remoteConfig.protocol,
|
||||
authToken: remoteConfig.authToken,
|
||||
}
|
||||
);
|
||||
} else {
|
||||
envVars = getRemoteEnvVars(
|
||||
@@ -164,7 +176,7 @@ export function buildClaudeEnvironment(config: ProxyChainConfig): Record<string,
|
||||
}
|
||||
|
||||
// Apply thinking configuration to model (auto tier-based or manual override)
|
||||
applyThinkingConfig(envVars, provider, thinkingOverride, compositeTierThinking);
|
||||
applyThinkingConfig(envVars, provider, thinkingOverride, compositeTierThinking, compositeTiers);
|
||||
|
||||
// Apply extended context suffix for 1M token context window
|
||||
// Auto-enabled for Gemini, opt-in for Claude (--1m flag)
|
||||
|
||||
Reference in New Issue
Block a user