mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
fix: ensure output-language.md is created before config initialization
Move initializeLlmOutputLanguage() to execute before loadCliConfig() to fix a race condition where the language file wasn't included in LLM context on first run. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
1f950f38b0
commit
788a9f9d10
2 changed files with 5 additions and 4 deletions
|
|
@ -15,7 +15,6 @@ import { type LoadedSettings, SettingScope } from '../config/settings.js';
|
|||
import { performInitialAuth } from './auth.js';
|
||||
import { validateTheme } from './theme.js';
|
||||
import { initializeI18n, type SupportedLanguage } from '../i18n/index.js';
|
||||
import { initializeLlmOutputLanguage } from '../utils/languageUtils.js';
|
||||
|
||||
export interface InitializationResult {
|
||||
authError: string | null;
|
||||
|
|
@ -42,9 +41,6 @@ export async function initializeApp(
|
|||
'auto';
|
||||
await initializeI18n(languageSetting as SupportedLanguage | 'auto');
|
||||
|
||||
// Auto-detect and set LLM output language on first use
|
||||
initializeLlmOutputLanguage(settings.merged.general?.outputLanguage);
|
||||
|
||||
// Use authType from modelsConfig which respects CLI --auth-type argument
|
||||
// over settings.security.auth.selectedType
|
||||
const authType = config.modelsConfig.getCurrentAuthType();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue