Skip to content

TUI: support multi-select (array) fields in ink-form forms #2904

Closed

Description

@cliffhall

The TUI builds its tool and elicitation forms with schemaToForm (clients/tui/src/utils/schemaToForm.ts). ink-form has no multi-select, so a { type: "array", items: { enum: [...] } } property becomes a single select. That means:

Expected: the user can choose several values (a custom ink-form field manager, or a comma/JSON-array text input as a fallback), and minItems/maxItems are checked before the call or the elicitation answer is sent.

Raised by Copilot review on #2903 and declined there as out of scope: #2829 asked for the elicitation form to reuse the existing tool form, which has this limitation for tool arguments too.

Activity

  1. added this to the v2.15.0 milestone on Nov 5, 2026
  2. added
    enhancement
    v2
    on Nov 5, 2026
  3. self-assigned this
    on Nov 5, 2026
  4. cliffhall commented on Nov 5, 2026

    @cliffhall
    MemberAuthor

    Shipped in #2919.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions