Skip to content

Conversation

@nornagon-openai
Copy link
Collaborator

@nornagon-openai nornagon-openai commented Nov 19, 2025

No support for request schema yet, but we'll at least show the message and allow accept/decline.

Screenshot 2025-11-21 at 2 44 05 PM

@nornagon-openai nornagon-openai marked this pull request as ready for review November 21, 2025 01:17
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@nornagon-openai
Copy link
Collaborator Author

@codex review

if matches!(event.msg, EventMsg::Error(_)) {
error_seen = true;
}
if let Some((server_name, request_id)) = elicitation {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not handle this in the above match statement?

@bolinfest bolinfest requested a review from gpeal November 21, 2025 20:05
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 1562 to 1569
let action = match decision {
ElicitationDecision::Accept => ElicitationAction::Accept,
ElicitationDecision::Decline => ElicitationAction::Decline,
ElicitationDecision::Cancel => ElicitationAction::Cancel,
};
let response = ElicitationResponse {
action,
content: None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Don’t send empty elicitation payloads

When the user accepts an elicitation request we still build the response with content: None, so the MCP server never receives the data it asked for via CreateElicitationRequestParam.requested_schema. For any request that actually needs user input (the normal case), the server will either reject the response or stall because we claimed to “provide the requested info” (see approval_overlay.rs:506-524) but sent an empty payload. We either need to collect the requested fields before returning or stop offering the accept option until we can supply content.

Useful? React with 👍 / 👎.

Copy link
Collaborator

@gpeal gpeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty clean to me although I haven't had time to read too deeply. What would happen if an elicitation comes in when using app server and the client doesn't support elicitaitons?

@nornagon-openai nornagon-openai merged commit 7561a6a into main Nov 21, 2025
25 checks passed
@nornagon-openai nornagon-openai deleted the nornagon/elicitations branch November 21, 2025 22:44
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants