Enable the Google Cloud Vertex AI setup wizard by default (#64795)

## What changed

Offer “Use Google Cloud Vertex AI” during eligible terminal onboarding
without requiring users to set `gcp_setup_wizard = true`.

## Testing

Use the feature default in the Google Cloud setup flow test and explicitly
disable the Google Cloud wizard in the gateway-only onboarding case.

GitOrigin-RevId: 098c3842623de13aa9c4852e188f225923c5c5d9
This commit is contained in:
alexsong-oai
2026-11-30 19:22:33 +00:00
committed by copyberry
parent 945cf1400b
commit 6324dcf85d
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -2487,7 +2487,7 @@ pub const FEATURES: &[FeatureSpec] = &[
id: Feature::GcpSetupWizard,
key: "gcp_setup_wizard",
stage: Stage::Stable,
default_enabled: false,
default_enabled: true,
},
FeatureSpec {
id: Feature::GatewaySetupWizard,
+1 -1
View File
@@ -114,7 +114,7 @@ async fn provider_setup_wizards_require_eligible_onboarding() -> color_eyre::Res
),
(
"only custom gateway enabled",
"[features]\nbedrock_setup_wizard = false\ngateway_setup_wizard = true\n",
"[features]\nbedrock_setup_wizard = false\ngcp_setup_wizard = false\ngateway_setup_wizard = true\n",
LoginStatus::NotAuthenticated,
AppServerTarget::Embedded,
[false, false, true],
+2 -1
View File
@@ -7,6 +7,7 @@ use codex_app_server_protocol::ConfigBatchWriteParams;
use codex_app_server_protocol::ConfigEdit;
use codex_app_server_protocol::ConfigWriteResponse;
use codex_app_server_protocol::MergeStrategy;
use codex_features::Feature;
use crossterm::event::KeyCode;
use crossterm::event::KeyModifiers;
use pretty_assertions::assert_eq;
@@ -40,7 +41,7 @@ async fn gcp_menu_gating_and_setup_flow() {
);
let press = |key| KeyEvent::new(key, KeyModifiers::NONE);
widget.gcp_setup_enabled = true;
widget.gcp_setup_enabled = Feature::GcpSetupWizard.default_enabled();
widget.handle_key_event(press(KeyCode::Char('3')));
assert_eq!(
widget.displayed_sign_in_options(),