diff options
| author | Tommaso Sciortino <[email protected]> | 2025-06-11 13:26:41 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-11 13:26:41 -0700 |
| commit | 24c61147b839b3173fa1ad79781f3c4c0f4144fa (patch) | |
| tree | a6b58447ddc7bccc424faf9d4658b30d4ec8a5be /packages/cli/src | |
| parent | c0580eaf4b8b7f02a048ade43a0f0b652fa01129 (diff) | |
Cache oauth credentials (#927)
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/gemini.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/cli/src/gemini.tsx b/packages/cli/src/gemini.tsx index 555a7c11..0478a40e 100644 --- a/packages/cli/src/gemini.tsx +++ b/packages/cli/src/gemini.tsx @@ -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()); |
