This commit is contained in:
Matthew Zeng
2026-01-31 23:36:16 -08:00
parent 8660ad6c64
commit 90e9ad5ffb
23 changed files with 5491 additions and 221 deletions

View File

@@ -7,8 +7,8 @@ use codex_core::protocol::ReviewDecision;
use codex_protocol::ThreadId;
use codex_protocol::parse_command::ParsedCommand;
use mcp_types::ElicitRequest;
use mcp_types::ElicitRequestParamsRequestedSchema;
use mcp_types::JSONRPCErrorError;
use mcp_types::ElicitRequestFormParamsRequestedSchema;
use mcp_types::Error;
use mcp_types::ModelContextProtocolRequest;
use mcp_types::RequestId;
use serde::Deserialize;
@@ -27,7 +27,7 @@ pub struct ExecApprovalElicitRequestParams {
pub message: String,
#[serde(rename = "requestedSchema")]
pub requested_schema: ElicitRequestParamsRequestedSchema,
pub requested_schema: ElicitRequestFormParamsRequestedSchema,
// These are additional fields the client can use to
// correlate the request with the codex tool call.
@@ -73,7 +73,8 @@ pub(crate) async fn handle_exec_approval_request(
let params = ExecApprovalElicitRequestParams {
message,
requested_schema: ElicitRequestParamsRequestedSchema {
requested_schema: ElicitRequestFormParamsRequestedSchema {
schema: None,
r#type: "object".to_string(),
properties: json!({}),
required: None,
@@ -96,7 +97,7 @@ pub(crate) async fn handle_exec_approval_request(
outgoing
.send_error(
request_id.clone(),
JSONRPCErrorError {
Error {
code: INVALID_PARAMS_ERROR_CODE,
message,
data: None,