Auto-update notifications (#1110)

This commit is contained in:
Eddie Santos
2025-06-17 08:24:07 -07:00
committed by GitHub
parent bc3fa71234
commit c3971754bf
10 changed files with 715 additions and 9 deletions

View File

@@ -659,7 +659,10 @@ export async function start_sandbox(sandbox: string) {
// Determine if the current user's UID/GID should be passed to the sandbox.
// See shouldUseCurrentUserInSandbox for more details.
let userFlag = '';
if (await shouldUseCurrentUserInSandbox()) {
if (process.env.GEMINI_CLI_INTEGRATION_TEST === 'true') {
args.push('--user', 'root');
userFlag = '--user root';
} else if (await shouldUseCurrentUserInSandbox()) {
const uid = execSync('id -u').toString().trim();
const gid = execSync('id -g').toString().trim();
args.push('--user', `${uid}:${gid}`);