mirror of
https://github.com/openai/codex.git
synced 2026-05-04 05:11:37 +03:00
[elicitations] Switch to use MCP style elicitation payload for mcp tool approvals. (#13621)
- [x] Switch to use MCP style elicitation payload for mcp tool approvals. - [ ] TODO: Update the UI to support the full spec.
This commit is contained in:
@@ -42,6 +42,7 @@ impl ClientHandler for LoggingClientHandler {
|
||||
) -> Result<CreateElicitationResult, rmcp::ErrorData> {
|
||||
(self.send_elicitation)(context.id, request)
|
||||
.await
|
||||
.map(Into::into)
|
||||
.map_err(|err| rmcp::ErrorData::internal_error(err.to_string(), None))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user