mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Cache oauth credentials (#927)
This commit is contained in:
committed by
GitHub
parent
c0580eaf4b
commit
24c61147b8
@@ -80,6 +80,10 @@ 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 sandbox = sandbox_command(config.getSandbox());
|
||||
|
||||
Reference in New Issue
Block a user