mirror of
https://github.com/openai/codex.git
synced 2026-05-26 22:15:13 +00:00
codex: fix CI failure on PR #22913
This commit is contained in:
@@ -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<String>, value: JsonValue
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn upsert_config_value(key_path: impl Into<String>, value: JsonValue) -> ConfigEdit {
|
||||
ConfigEdit {
|
||||
key_path: key_path.into(),
|
||||
value,
|
||||
merge_strategy: MergeStrategy::Upsert,
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn clear_config_value(key_path: impl Into<String>) -> 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<SkillsConfigWriteResponse> {
|
||||
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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user