mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Refactor in preparation for Reauth (#1196)
This commit is contained in:
committed by
GitHub
parent
b96fbd913e
commit
8bc3b415c9
@@ -47,6 +47,10 @@ export async function main() {
|
||||
const extensions = loadExtensions(workspaceRoot);
|
||||
const config = await loadCliConfig(settings.merged, extensions, sessionId);
|
||||
|
||||
// When using Code Assist this triggers the Oauth login.
|
||||
// Do this now, before sandboxing, so web redirect works.
|
||||
await config.getGeminiClient().initialize();
|
||||
|
||||
// Initialize centralized FileDiscoveryService
|
||||
config.getFileService();
|
||||
if (config.getCheckpointEnabled()) {
|
||||
@@ -65,10 +69,6 @@ export async function main() {
|
||||
}
|
||||
}
|
||||
|
||||
// When using Code Assist this triggers the Oauth login.
|
||||
// Do this now, before sandboxing, so web redirect works.
|
||||
await config.getGeminiClient().getChat();
|
||||
|
||||
// hop into sandbox if we are outside and sandboxing is enabled
|
||||
if (!process.env.SANDBOX) {
|
||||
const sandboxConfig = config.getSandbox();
|
||||
|
||||
Reference in New Issue
Block a user