fix: preserve envFile in ensureToolTags merge function

The ensureToolTags() function was only returning enabled, primaryModel,
secondaryModel, and tags - missing envFile. This caused envFile to be
lost during config merge in loadClaudeCliTools().

Related to #96 - gemini envFile setting lost after page refresh
This commit is contained in:
catlog22
2026-01-22 23:35:33 +08:00
parent edb55c4895
commit ac62bf70db

View File

@@ -268,7 +268,8 @@ function ensureToolTags(tool: Partial<ClaudeCliTool>): ClaudeCliTool {
enabled: tool.enabled ?? true,
primaryModel: tool.primaryModel,
secondaryModel: tool.secondaryModel,
tags: tool.tags ?? []
tags: tool.tags ?? [],
envFile: tool.envFile
};
}