From 4cf826efa24dff5b173881452219e92a4f341381 Mon Sep 17 00:00:00 2001 From: walker1211 <13750528578@163.com> Date: Wed, 22 Apr 2026 01:36:11 +0800 Subject: [PATCH] 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 --- src/utils/hooks/get-image-analysis-hook-env.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/hooks/get-image-analysis-hook-env.ts b/src/utils/hooks/get-image-analysis-hook-env.ts index af8ae37f..d45b218d 100644 --- a/src/utils/hooks/get-image-analysis-hook-env.ts +++ b/src/utils/hooks/get-image-analysis-hook-env.ts @@ -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',