mirror of
https://github.com/openai/codex.git
synced 2026-11-17 14:58:36 +00:00
support MCP elicitations (#6947)
No support for request schema yet, but we'll at least show the message and allow accept/decline. <img width="823" height="551" alt="Screenshot 2025-11-21 at 2 44 05 PM" src="https://github.com/user-attachments/assets/6fbb892d-ca12-4765-921e-9ac4b217534d" />
This commit is contained in:
1 parent
3ea33a0616
commit
7561a6aaf0
16 files changed
+504
-145
No files matched your search
@@ -227,6 +227,19 @@ impl EventProcessor for EventProcessorWithHumanOutput {
|
||||
EventMsg::TaskStarted(_) => {
|
||||
// Ignore.
|
||||
}
|
||||
EventMsg::ElicitationRequest(ev) => {
|
||||
ts_msg!(
|
||||
self,
|
||||
"{} {}",
|
||||
"elicitation request".style(self.magenta),
|
||||
ev.server_name.style(self.dimmed)
|
||||
);
|
||||
ts_msg!(
|
||||
self,
|
||||
"{}",
|
||||
"auto-cancelling (not supported in exec mode)".style(self.dimmed)
|
||||
);
|
||||
}
|
||||
EventMsg::TaskComplete(TaskCompleteEvent { last_agent_message }) => {
|
||||
let last_message = last_agent_message.as_deref();
|
||||
if let Some(output_file) = self.last_message_path.as_deref() {
|
||||
|
||||
Reference in new issue
Block a user