Teknium
b8aecc63ba
fix(mcp): form elicitation asks the user for the requested fields on every surface
...
An MCP server that elicits a form (strings, numbers, enums, booleans) got a
yes/no approval card and then `accept` with empty content, which fails the
server's own schema. Form-mode elicitation now asks the user for each field
through the turn's clarify callback, which the classic CLI, Ink TUI, Desktop
and every messaging platform already render, validates the answers against
the requested schema (types, enum values, min/max, length, email/uri/date
formats), re-asks a wrong answer up to twice, and returns accept with typed
content, decline or cancel.
- The executor binds the agent's clarify callback per dispatched tool call
(ContextVar); the elicitation reads it inside the call's contextvars
snapshot on the MCP worker thread.
- A form with no fields is asked as the server's own question with Yes / No
(the intent of #140136 , delivered through the clarify surface so no
gateway facade grows).
- No clarify callback, or a session nobody can answer (cron, -q, unattended
platforms): the existing approval path runs and declines headless; an
approval there fills only the consent content it can honestly fill (#105496 ).
- Answers go to the MCP server only; they reach the model only when the
server echoes them in its tool result.
Co-authored-by: David Lepaux <d.lepaux@gmail.com >
2026-11-14 11:26:33 -08:00
..
2026-11-13 17:30:59 -08:00
2026-11-06 23:02:29 -05:00
2026-11-10 12:05:32 +05:30
2026-11-01 10:14:58 -08:00
2026-11-13 17:33:19 -08:00
2026-11-13 18:45:32 +00:00
2026-11-14 01:28:18 -08:00
2026-10-29 16:58:09 +05:30
2026-10-26 00:32:19 -07:00
2026-10-25 22:55:11 -07:00
2026-10-25 18:23:40 -07:00
2026-11-07 01:23:45 +05:30
2026-11-14 05:44:33 +05:30
2026-11-05 19:55:33 -06:00
2026-11-14 15:35:25 +01:00
2026-11-14 15:35:25 +01:00
2026-11-02 20:21:36 -05:00
2026-11-14 15:35:25 +01:00
2026-10-28 19:21:51 -07:00
2026-10-31 22:06:50 -07:00
2026-11-14 15:35:26 +01:00
2026-11-13 20:37:31 +01:00
2026-11-08 21:36:09 +05:30
2026-11-08 13:18:54 +05:30
2026-11-08 13:18:54 +05:30
2026-11-13 15:30:30 -08:00
2026-11-02 00:18:00 +05:30
2026-11-14 02:24:06 -08:00
2026-11-08 13:18:54 +05:30
2026-11-09 18:05:55 +05:30
2026-11-08 13:18:54 +05:30
2026-11-14 05:44:33 +05:30
2026-11-13 15:30:30 -08:00
2026-11-13 17:24:06 -08:00
2026-11-09 22:02:08 -05:00
2026-11-13 17:25:23 -08:00
2026-11-04 21:01:10 -08:00
2026-10-28 19:00:07 -07:00
2026-10-28 19:00:07 -07:00
2026-11-01 21:53:36 -08:00
2026-10-25 18:20:23 -07:00
2026-11-14 05:01:11 -08:00
2026-11-14 05:44:33 +05:30
2026-11-14 15:35:26 +01:00
2026-10-25 22:22:47 -07:00
2026-11-13 16:41:36 -08:00
2026-11-02 15:06:27 -05:00
2026-11-11 10:22:54 -05:00
2026-11-06 22:07:09 -05:00
2026-11-04 21:01:10 -08:00
2026-10-25 11:35:06 -04:00
2026-11-04 21:31:47 -08:00
2026-11-05 19:55:33 -06:00
2026-10-31 22:59:20 -07:00
2026-11-09 23:23:46 -08:00
2026-10-25 22:55:11 -07:00
2026-11-11 18:29:48 -08:00
2026-11-14 15:11:44 +01:00
2026-11-04 12:56:04 -05:00
2026-11-13 16:52:24 +05:30
2026-11-14 16:16:34 +01:00
2026-11-04 12:56:04 -05:00
2026-11-13 17:47:22 -08:00
2026-11-05 19:55:33 -06:00
2026-11-05 12:09:34 +01:00
2026-11-08 00:41:35 +05:30
2026-10-25 22:55:11 -07:00
2026-11-13 16:52:24 +05:30
2026-11-12 23:25:28 +01:00
2026-10-25 22:22:43 -07:00
2026-11-02 06:57:53 -08:00
2026-11-13 17:20:18 -08:00
2026-11-14 02:24:06 -08:00
2026-11-14 02:24:06 -08:00
2026-10-25 18:04:13 -07:00
2026-11-13 17:29:32 -08:00
2026-11-13 15:30:30 -08:00
2026-11-13 20:21:55 +01:00
2026-10-27 16:30:14 +05:30
2026-11-05 15:44:58 -05:00
2026-10-25 11:34:11 -04:00
2026-11-05 15:44:58 -05:00
2026-11-13 18:45:31 +00:00
2026-11-13 16:48:04 -08:00
2026-11-08 17:34:10 +05:30
2026-10-30 08:02:40 -07:00
2026-11-08 13:18:54 +05:30
2026-11-11 22:47:47 -08:00
2026-11-02 15:06:27 -05:00
2026-11-14 14:31:05 +01:00
2026-11-14 15:11:41 +01:00
2026-11-12 23:25:30 +01:00
2026-11-01 18:12:56 +05:30
2026-11-01 18:12:56 +05:30
2026-11-13 18:45:31 +00:00
2026-11-13 15:30:30 -08:00
2026-11-14 05:44:33 +05:30
2026-11-13 15:30:30 -08:00
2026-11-13 18:45:31 +00:00
2026-11-14 02:23:19 -08:00
2026-11-10 13:16:03 -08:00
2026-11-13 16:54:39 +01:00
2026-11-12 23:25:28 +01:00
2026-11-13 17:25:07 -08:00
2026-11-13 16:54:39 +01:00
2026-11-08 00:41:35 +05:30
2026-11-09 23:23:46 -08:00
2026-11-14 02:52:41 -08:00
2026-10-27 12:57:09 -07:00
2026-10-28 07:23:10 -07:00
2026-11-01 21:53:36 -08:00
2026-11-12 15:55:34 -05:00
2026-11-01 22:27:58 -08:00
2026-11-14 05:44:33 +05:30
2026-10-28 07:23:10 -07:00
2026-10-25 18:20:23 -07:00
2026-11-11 23:36:18 -08:00
2026-10-28 21:24:43 -07:00
2026-11-09 18:07:31 +05:30
2026-11-06 20:38:46 -05:00
2026-10-27 16:30:14 +05:30
2026-11-01 22:07:56 -08:00
2026-11-06 20:38:46 -05:00
2026-11-13 17:24:06 -08:00
2026-10-26 00:10:23 -07:00
2026-11-14 05:44:33 +05:30
2026-11-14 16:16:34 +01:00
2026-11-11 18:29:48 -08:00
2026-11-11 18:30:54 -08:00
2026-10-28 19:30:48 -07:00
2026-11-06 12:45:21 -05:00
2026-10-26 01:34:59 -07:00
2026-10-25 22:22:47 -07:00
2026-11-12 14:14:11 -05:00
2026-11-09 23:23:46 -08:00
2026-11-13 17:51:55 -08:00
2026-11-09 22:19:43 -05:00
2026-11-13 16:48:04 -08:00
2026-11-05 04:05:45 -08:00
2026-11-13 17:52:33 -08:00
2026-11-08 11:44:20 -08:00
2026-11-12 21:34:14 +01:00
2026-11-14 05:01:11 -08:00
2026-11-14 17:12:39 +01:00
2026-11-14 20:25:37 +01:00
2026-11-08 00:41:35 +05:30
2026-11-09 23:23:46 -08:00
2026-11-13 15:30:30 -08:00
2026-11-13 15:30:30 -08:00
2026-11-14 02:24:06 -08:00
2026-11-08 17:34:10 +05:30
2026-11-07 01:17:21 -05:00
2026-11-11 09:54:19 -05:00
2026-11-11 10:22:54 -05:00
2026-11-06 10:41:13 -05:00
2026-10-31 22:59:20 -07:00
2026-10-28 17:06:43 +05:30
2026-11-13 16:51:54 +01:00
2026-11-11 10:22:54 -05:00
2026-11-06 19:39:21 -05:00
2026-11-11 10:22:54 -05:00
2026-11-13 15:30:30 -08:00
2026-11-14 02:36:49 -08:00
2026-11-11 10:22:54 -05:00
2026-11-02 19:08:46 -05:00
2026-11-12 01:25:10 -08:00
2026-11-10 13:35:27 -08:00
2026-11-12 23:26:27 +01:00
2026-10-31 22:44:47 -07:00
2026-10-31 22:44:47 -07:00
2026-11-14 16:16:33 +01:00
2026-11-08 22:46:20 -08:00
2026-11-11 10:22:54 -05:00
2026-11-04 13:38:09 -08:00
2026-11-09 09:26:51 -08:00
2026-10-31 22:06:50 -07:00
2026-11-14 02:39:46 -08:00
2026-11-10 22:28:55 -08:00
2026-11-14 11:26:33 -08:00
2026-11-14 12:43:56 +01:00
2026-11-08 00:41:35 +05:30
2026-11-10 02:26:26 +05:30
2026-11-08 17:34:10 +05:30
2026-11-13 15:30:30 -08:00
2026-11-04 21:01:10 -08:00
2026-11-09 23:23:46 -08:00
2026-11-11 23:51:56 -08:00
2026-11-11 10:22:54 -05:00
2026-11-02 18:53:39 -08:00
2026-11-05 22:23:44 -08:00
2026-11-10 02:01:58 +05:30
2026-10-28 19:29:23 -07:00
2026-11-13 15:30:30 -08:00
2026-11-14 05:44:33 +05:30
2026-11-05 19:55:33 -06:00
2026-11-08 13:18:54 +05:30
2026-11-08 17:34:10 +05:30
2026-11-10 13:35:27 -08:00
2026-11-11 18:30:54 -08:00
2026-11-09 23:23:46 -08:00
2026-11-13 15:30:30 -08:00
2026-11-08 17:34:10 +05:30
2026-10-25 06:18:48 -07:00
2026-11-09 18:28:09 -08:00
2026-11-10 22:28:55 -08:00
2026-11-09 23:23:46 -08:00
2026-11-09 23:23:46 -08:00
2026-11-12 14:32:53 -05:00
2026-10-25 05:45:51 -07:00
2026-10-28 19:00:07 -07:00
2026-10-25 05:45:51 -07:00
2026-11-11 10:22:54 -05:00
2026-11-08 17:35:12 +05:30
2026-11-14 02:24:06 -08:00