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
This commit is contained in:
catlog22
2026-01-22 23:30:01 +08:00
parent 8a7f636a85
commit edb55c4895

View File

@@ -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
};
}