Cache oauth credentials (#927)

This commit is contained in:
Tommaso Sciortino
2025-06-11 13:26:41 -07:00
committed by GitHub
parent c0580eaf4b
commit 24c61147b8
6 changed files with 87 additions and 16 deletions

View File

@@ -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());