mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
refactor: Centralize session ID generation and propagation
This commit is contained in:
parent
95fdc66e7d
commit
d1e23b7c71
20 changed files with 96 additions and 71 deletions
|
|
@ -120,6 +120,7 @@ export async function loadCliConfig(
|
|||
settings: Settings,
|
||||
extensions: ExtensionConfig[],
|
||||
geminiIgnorePatterns: string[],
|
||||
sessionId: string,
|
||||
): Promise<Config> {
|
||||
loadEnvironment();
|
||||
|
||||
|
|
@ -148,6 +149,7 @@ export async function loadCliConfig(
|
|||
const mcpServers = mergeMcpServers(settings, extensions);
|
||||
|
||||
return new Config({
|
||||
sessionId,
|
||||
contentGeneratorConfig,
|
||||
embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
|
||||
sandbox: argv.sandbox ?? settings.sandbox,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue