From df3e2c32656768473372d826dd14c03640559f55 Mon Sep 17 00:00:00 2001 From: rafaelj Date: Wed, 20 May 2026 23:46:38 -0400 Subject: [PATCH] Add onboarding interactive tools feature flag --- codex-rs/core/config.schema.json | 6 ++++++ codex-rs/features/src/lib.rs | 8 ++++++++ codex-rs/tools/src/tool_config.rs | 5 +++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.json index 6f85785f2e..f10ff4cd71 100644 --- a/codex-rs/core/config.schema.json +++ b/codex-rs/core/config.schema.json @@ -500,6 +500,9 @@ "network_proxy": { "$ref": "#/definitions/FeatureToml_for_NetworkProxyConfigToml" }, + "onboarding_interactive_tools": { + "type": "boolean" + }, "personality": { "type": "boolean" }, @@ -4431,6 +4434,9 @@ "network_proxy": { "$ref": "#/definitions/FeatureToml_for_NetworkProxyConfigToml" }, + "onboarding_interactive_tools": { + "type": "boolean" + }, "personality": { "type": "boolean" }, diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rs index 662d01fe26..f56d7daa80 100644 --- a/codex-rs/features/src/lib.rs +++ b/codex-rs/features/src/lib.rs @@ -174,6 +174,8 @@ pub enum Feature { MentionsV2, /// Allow request_user_input in Default collaboration mode. DefaultModeRequestUserInput, + /// Allow onboarding-only interactive tools. + OnboardingInteractiveTools, /// Enable automatic review for approval prompts. GuardianApproval, /// Enable persisted thread goals and automatic goal continuation. @@ -1068,6 +1070,12 @@ pub const FEATURES: &[FeatureSpec] = &[ stage: Stage::UnderDevelopment, default_enabled: false, }, + FeatureSpec { + id: Feature::OnboardingInteractiveTools, + key: "onboarding_interactive_tools", + stage: Stage::UnderDevelopment, + default_enabled: false, + }, FeatureSpec { id: Feature::GuardianApproval, key: "guardian_approval", diff --git a/codex-rs/tools/src/tool_config.rs b/codex-rs/tools/src/tool_config.rs index 3eaa73f189..6b6a048289 100644 --- a/codex-rs/tools/src/tool_config.rs +++ b/codex-rs/tools/src/tool_config.rs @@ -27,8 +27,9 @@ pub fn request_user_input_available_modes(features: &Features) -> Vec .into_iter() .filter(|mode| { mode.allows_request_user_input() - || (features.enabled(Feature::DefaultModeRequestUserInput) - && *mode == ModeKind::Default) + || (*mode == ModeKind::Default + && (features.enabled(Feature::DefaultModeRequestUserInput) + || features.enabled(Feature::OnboardingInteractiveTools))) }) .collect() }