Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore(config) rm windows_wsl_setup_acknowledged (#22717)

Dylan Hurd85915a2a2119
diff --git a/codex-rs/config/src/config_toml.rs b/codex-rs/config/src/config_toml.rs
index 055df69529..e2c9bfeb0f 100644
--- a/codex-rs/config/src/config_toml.rs
+++ b/codex-rs/config/src/config_toml.rs
@@ -481,9 +481,6 @@ pub struct ConfigToml {
#[serde(default)]
pub windows: Option<WindowsToml>,
- /// Tracks whether the Windows onboarding screen has been acknowledged.
- pub windows_wsl_setup_acknowledged: Option<bool>,
-
/// Collection of in-product notices (different from notifications)
/// See [`crate::types::Notice`] for more details
pub notice: Option<Notice>,
diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.json
index 2c0acbf895..dd2b01d0af 100644
--- a/codex-rs/core/config.schema.json
+++ b/codex-rs/core/config.schema.json
@@ -4793,10 +4793,6 @@
"default": null,
"description": "Windows-specific configuration."
},
- "windows_wsl_setup_acknowledged": {
- "description": "Tracks whether the Windows onboarding screen has been acknowledged.",
- "type": "boolean"
- },
"zsh_path": {
"allOf": [
{
diff --git a/codex-rs/core/src/config/config_tests.rs b/codex-rs/core/src/config/config_tests.rs
index 571f882735..7760c2d32d 100644
--- a/codex-rs/core/src/config/config_tests.rs
+++ b/codex-rs/core/src/config/config_tests.rs
@@ -7514,7 +7514,6 @@ async fn test_precedence_fixture_with_o3_profile() -> std::io::Result<()> {
suppress_unstable_features_warning: false,
active_profile: Some("o3".to_string()),
active_project: ProjectConfig { trust_level: None },
- windows_wsl_setup_acknowledged: false,
notices: Default::default(),
check_for_update_on_startup: true,
disable_paste_burst: false,
@@ -7962,7 +7961,6 @@ async fn test_precedence_fixture_with_gpt3_profile() -> std::io::Result<()> {
suppress_unstable_features_warning: false,
active_profile: Some("gpt3".to_string()),
active_project: ProjectConfig { trust_level: None },
- windows_wsl_setup_acknowledged: false,
notices: Default::default(),
check_for_update_on_startup: true,
disable_paste_burst: false,
@@ -8124,7 +8122,6 @@ async fn test_precedence_fixture_with_zdr_profile() -> std::io::Result<()> {
suppress_unstable_features_warning: false,
active_profile: Some("zdr".to_string()),
active_project: ProjectConfig { trust_level: None },
- windows_wsl_setup_acknowledged: false,
notices: Default::default(),
check_for_update_on_startup: true,
disable_paste_burst: false,
@@ -8271,7 +8268,6 @@ async fn test_precedence_fixture_with_gpt5_profile() -> std::io::Result<()> {
suppress_unstable_features_warning: false,
active_profile: Some("gpt5".to_string()),
active_project: ProjectConfig { trust_level: None },
- windows_wsl_setup_acknowledged: false,
notices: Default::default(),
check_for_update_on_startup: true,
disable_paste_burst: false,
diff --git a/codex-rs/core/src/config/edit.rs b/codex-rs/core/src/config/edit.rs
index 80bf4d9bf1..5418d3b268 100644
--- a/codex-rs/core/src/config/edit.rs
+++ b/codex-rs/core/src/config/edit.rs
@@ -44,8 +44,6 @@ pub enum ConfigEdit {
SetNoticeFastDefaultOptOut(bool),
/// Toggle the rate limit model nudge acknowledgement flag.
SetNoticeHideRateLimitModelNudge(bool),
- /// Toggle the Windows onboarding acknowledgement flag.
- SetWindowsWslSetupAcknowledged(bool),
/// Toggle the model migration prompt acknowledgement flag.
SetNoticeHideModelMigrationPrompt(String, bool),
/// Toggle the home external config migration prompt acknowledgement flag.
@@ -645,11 +643,6 @@ impl ConfigDocument {
&[NOTICE_TABLE_KEY, "model_migrations", from.as_str()],
value(to.clone()),
)),
- ConfigEdit::SetWindowsWslSetupAcknowledged(acknowledged) => Ok(self.write_value(
- Scope::Global,
- &["windows_wsl_setup_acknowledged"],
- value(*acknowledged),
- )),
ConfigEdit::ReplaceMcpServers(servers) => Ok(self.replace_mcp_servers(servers)),
ConfigEdit::AddToolSuggestDisabledTool(disabled_tool) => {
Ok(self.add_tool_suggest_disabled_tool(disabled_tool))
@@ -1240,12 +1233,6 @@ impl ConfigEditsBuilder {
self
}
- pub fn set_windows_wsl_setup_acknowledged(mut self, acknowledged: bool) -> Self {
- self.edits
- .push(ConfigEdit::SetWindowsWslSetupAcknowledged(acknowledged));
- self
- }
-
pub fn set_model_availability_nux_count(mut self, shown_count: &HashMap<String, u32>) -> Self {
self.edits
.extend(model_availability_nux_count_edits(shown_count));
diff --git a/codex-rs/core/src/config/mod.rs b/codex-rs/core/src/config/mod.rs
index fa48bfde86..c6b35e7a01 100644
--- a/codex-rs/core/src/config/mod.rs
+++ b/codex-rs/core/src/config/mod.rs
@@ -797,9 +797,6 @@ pub struct Config {
/// is (1) part of a git repo, (2) a git worktree, or (3) just using the cwd
pub active_project: ProjectConfig,
- /// Tracks whether the Windows onboarding screen has been acknowledged.
- pub windows_wsl_setup_acknowledged: bool,
-
/// Collection of various notices we show the user
pub notices: Notice,
@@ -3261,7 +3258,6 @@ impl Config {
.unwrap_or(false),
active_profile: active_profile_name,
active_project,
- windows_wsl_setup_acknowledged: cfg.windows_wsl_setup_acknowledged.unwrap_or(false),
notices,
check_for_update_on_startup,
disable_paste_burst: cfg.disable_paste_burst.unwrap_or(false),
diff --git a/codex-rs/thread-manager-sample/src/main.rs b/codex-rs/thread-manager-sample/src/main.rs
index a3a9adf266..4dde737922 100644
--- a/codex-rs/thread-manager-sample/src/main.rs
+++ b/codex-rs/thread-manager-sample/src/main.rs
@@ -272,7 +272,6 @@ fn new_config(model: Option<String>, arg0_paths: Arg0DispatchPaths) -> anyhow::R
suppress_unstable_features_warning: false,
active_profile: None,
active_project: ProjectConfig { trust_level: None },
- windows_wsl_setup_acknowledged: false,
notices: Notice::default(),
check_for_update_on_startup: false,
disable_paste_burst: false,