mirror of
https://github.com/openai/codex.git
synced 2026-05-01 18:06:47 +00:00
update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user