From fb9fcf060f15a314b38440377c8366930fa4abbd Mon Sep 17 00:00:00 2001 From: Celia Chen Date: Thu, 5 Mar 2026 21:32:40 -0800 Subject: [PATCH] chore: remove unused legacy macOS permission types (#13677) ## Summary This PR removes legacy macOS permission model types from `codex-rs/protocol/src/models.rs`: - `MacOsPermissions` - `MacOsPreferencesValue` - `MacOsAutomationValue` The protocol now relies on the current `MacOsSeatbeltProfileExtensions` model for macOS permission data. --- codex-rs/protocol/src/models.rs | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/codex-rs/protocol/src/models.rs b/codex-rs/protocol/src/models.rs index 8a3ac0704..0e5bc7e6d 100644 --- a/codex-rs/protocol/src/models.rs +++ b/codex-rs/protocol/src/models.rs @@ -67,23 +67,6 @@ impl FileSystemPermissions { } } -#[derive(Debug, Clone, Default, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, TS)] -pub struct MacOsPermissions { - pub preferences: Option, - pub automations: Option, - pub accessibility: Option, - pub calendar: Option, -} - -impl MacOsPermissions { - pub fn is_empty(&self) -> bool { - self.preferences.is_none() - && self.automations.is_none() - && self.accessibility.is_none() - && self.calendar.is_none() - } -} - #[derive(Debug, Clone, Default, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, TS)] pub struct NetworkPermissions { pub enabled: Option, @@ -95,20 +78,6 @@ impl NetworkPermissions { } } -#[derive(Debug, Clone, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, TS)] -#[serde(untagged)] -pub enum MacOsPreferencesValue { - Bool(bool), - Mode(String), -} - -#[derive(Debug, Clone, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, TS)] -#[serde(untagged)] -pub enum MacOsAutomationValue { - Bool(bool), - BundleIds(Vec), -} - #[derive( Debug, Clone,