fix(image-analysis): clear runtime env on native-read fallback

Avoid carrying runtime API credentials and endpoint fields into native Read fallback launches.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
walker1211
2026-04-22 01:36:11 +08:00
co-authored by Claude Opus 4.7
parent 63082d4aed
commit 4cf826efa2
@@ -114,7 +114,9 @@ export function getImageAnalysisHookEnv(
: '';
const runtimePath = skipImageAnalysis ? '' : status.runtimePath || '';
const runtimeBaseUrl =
skipImageAnalysis || typeof context !== 'object' ? '' : context.cliproxyBridge?.currentBaseUrl || '';
skipImageAnalysis || typeof context !== 'object'
? ''
: context.cliproxyBridge?.currentBaseUrl || '';
return {
CCS_IMAGE_ANALYSIS_ENABLED: config.enabled ? '1' : '0',