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 -1
View File
@@ -515,7 +515,7 @@ func (c *Chat) Answer(ctx context.Context, request protocol.ChatAnswerRequest) e
action = "accept"
}
var content any = request.Answers
if action != "accept" {
if action != "accept" || pending.form.Kind == "elicitation-url" {
content = nil
}
result = map[string]any{"action": action, "content": content, "_meta": nil}