mirror of
https://github.com/openai/codex.git
synced 2026-12-04 00:51:02 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user