File tree Expand file tree Collapse file tree
packages/lib/src/core/templates-entrypoint Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ printf "export GEMINI_AUTH_LABEL=%q\n" "$GEMINI_AUTH_LABEL" > "$GEMINI_PROFILE"
136136printf "export GEMINI_HOME=%q\n" "${ config . geminiHome } " >> "$GEMINI_PROFILE"
137137printf "export GEMINI_CLI_DISABLE_UPDATE_CHECK=true\n" >> "$GEMINI_PROFILE"
138138printf "export GEMINI_CLI_NONINTERACTIVE=true\n" >> "$GEMINI_PROFILE"
139+ printf "export GEMINI_CLI_APPROVAL_MODE=yolo\n" >> "$GEMINI_PROFILE"
140+ printf "alias gemini='gemini --yolo'\n" >> "$GEMINI_PROFILE"
139141cat <<'EOF' >> "$GEMINI_PROFILE"
140142if [[ -f "$GEMINI_HOME/.api-key" ]]; then
141143 export GEMINI_API_KEY="$(cat "$GEMINI_HOME/.api-key" | tr -d '\r\n')"
@@ -146,7 +148,8 @@ chmod 0644 "$GEMINI_PROFILE" || true
146148docker_git_upsert_ssh_env "GEMINI_AUTH_LABEL" "$GEMINI_AUTH_LABEL"
147149docker_git_upsert_ssh_env "GEMINI_API_KEY" "\${GEMINI_API_KEY:-}"
148150docker_git_upsert_ssh_env "GEMINI_CLI_DISABLE_UPDATE_CHECK" "true"
149- docker_git_upsert_ssh_env "GEMINI_CLI_NONINTERACTIVE" "true"`
151+ docker_git_upsert_ssh_env "GEMINI_CLI_NONINTERACTIVE" "true"
152+ docker_git_upsert_ssh_env "GEMINI_CLI_APPROVAL_MODE" "yolo"`
150153
151154const entrypointGeminiNoticeTemplate = String . raw `# Ensure global GEMINI.md exists for container context
152155GEMINI_MD_PATH="__GEMINI_HOME__/GEMINI.md"
You can’t perform that action at this time.
0 commit comments