From edb55c489559f1e2d40f84729167b336cbba3777 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Thu, 22 Jan 2026 23:30:01 +0800 Subject: [PATCH] fix: include envFile in getFullConfigResponse API response Fixes #96 - gemini/qwen envFile setting was lost after page refresh because getFullConfigResponse() was not including the envFile field when converting config to the legacy API format. Changes: - Add envFile?: string | null to CliToolConfig interface - Include envFile in getFullConfigResponse() conversion --- ccw/src/tools/cli-config-manager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ccw/src/tools/cli-config-manager.ts b/ccw/src/tools/cli-config-manager.ts index 781124ff..1826f70a 100644 --- a/ccw/src/tools/cli-config-manager.ts +++ b/ccw/src/tools/cli-config-manager.ts @@ -29,6 +29,7 @@ export interface CliToolConfig { primaryModel: string; secondaryModel: string; tags?: string[]; + envFile?: string | null; } export interface CliConfig { @@ -184,7 +185,8 @@ export function getFullConfigResponse(baseDir: string): { enabled: tool.enabled, primaryModel: tool.primaryModel ?? '', secondaryModel: tool.secondaryModel ?? '', - tags: tool.tags + tags: tool.tags, + envFile: tool.envFile }; }