mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why MCP forms with numeric fields fell back to a generic approval prompt, where users had no way to enter the requested values. That prompt also offered acceptance for forms whose required fields could not be filled in. ## What changed - Render `integer` and `number` fields with schema defaults, validate minimum and maximum bounds, and submit answers as JSON numbers. - Show the requesting server on forms, allow users to skip blank optional inputs with the submit key, and add `F6` to decline a form. `Esc` cancels the request. - Explain when a form cannot be displayed and offer acceptance without answers only when the form has no required fields. ## Testing Exercise invalid numeric input and defaults, exact large integer submission, blank optional fields, and queue advancement after declining. Snapshot the numeric validation error and the fallback prompts for unsupported forms with and without required fields. GitOrigin-RevId: 1dd65b78fb271a027d9ae479c6fc9754607189f2