fix(codex): return no content for URL elicitation confirmation

This commit is contained in:
2026-10-20 17:43:14 +01:00
parent 35329e4022
commit e374e8ef03
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -28,6 +28,7 @@ func (c *Chat) receiveElicitation(msg rpcMessage) {
}
form := protocol.ChatForm{ID: "mcp_" + base64.RawURLEncoding.EncodeToString(msg.ID), SessionID: p.ThreadID, Kind: "elicitation", Title: p.Message, Actions: []string{"accept", "decline", "cancel"}}
if p.Mode == "url" {
form.Kind = "elicitation-url"
form.Fields = []protocol.ChatFormField{{Key: "external", Type: "external", URL: p.URL, Title: "Continue in the external form"}}
} else {
if p.Schema.Type != "object" || p.Schema.Properties == nil {