Elicitation form: typed text disappears from free-text field when input wraps
Status Open
Reported on v2.1.246
Maintainer reply None cached
Activity 0 comments · opened Aug 26, 2026
Environment
- Claude Code 2.1.246, macOS (Darwin 25.5.0), terminal CLI
- MCP stdio server (Python SDK v2) using elicitation (
ctx.elicit) with a schema containing a free-textstringproperty
Bug
In the native elicitation form dialog, while typing into a free-text string field: once the typed text exceeds the visible field width and wraps, the field starts a new line and the previously typed text disappears from view. With ~3 wrapped lines this happened twice in one entry. The text is not lost — after pressing Accept, the full submitted value is intact — but during typing the user can no longer see (or visually verify) what they already wrote.
Steps to reproduce
- Register a stdio MCP server whose tool calls elicitation with a schema including a plain
stringfield (no maxLength). - Invoke the tool so the form dialog renders.
- Type continuously into the string field until the text wraps past the field width (2-3 lines' worth).
Expected
Wrapped text stays visible (multi-line rendering or horizontal scroll keeping context), similar to the main prompt input.
Actual
On each wrap, previously typed text vanishes from the visible field until submission.