diff --git a/codex-rs/tui/src/config_rpc.rs b/codex-rs/tui/src/config_rpc.rs index 272cf45e36..44c7ca9314 100644 --- a/codex-rs/tui/src/config_rpc.rs +++ b/codex-rs/tui/src/config_rpc.rs @@ -11,9 +11,6 @@ use codex_app_server_protocol::ConfigEdit; use codex_app_server_protocol::ConfigWriteResponse; use codex_app_server_protocol::MergeStrategy; use codex_app_server_protocol::RequestId; -use codex_app_server_protocol::SkillsConfigWriteParams; -use codex_app_server_protocol::SkillsConfigWriteResponse; -use codex_utils_absolute_path::AbsolutePathBuf; use color_eyre::eyre::Result; use color_eyre::eyre::WrapErr; use serde_json::Value as JsonValue; @@ -27,14 +24,6 @@ pub(crate) fn replace_config_value(key_path: impl Into, value: JsonValue } } -pub(crate) fn upsert_config_value(key_path: impl Into, value: JsonValue) -> ConfigEdit { - ConfigEdit { - key_path: key_path.into(), - value, - merge_strategy: MergeStrategy::Upsert, - } -} - pub(crate) fn clear_config_value(key_path: impl Into) -> ConfigEdit { replace_config_value(key_path, JsonValue::Null) } @@ -58,22 +47,3 @@ pub(crate) async fn write_config_batch( .await .wrap_err("config/batchWrite failed in TUI") } - -pub(crate) async fn write_skill_enabled( - request_handle: AppServerRequestHandle, - path: AbsolutePathBuf, - enabled: bool, -) -> Result { - let request_id = RequestId::String(format!("tui-skill-config-write-{}", Uuid::new_v4())); - request_handle - .request_typed(ClientRequest::SkillsConfigWrite { - request_id, - params: SkillsConfigWriteParams { - path: Some(path), - name: None, - enabled, - }, - }) - .await - .wrap_err("skills/config/write failed in TUI") -}