Skip to content

Elicitation: Allow Enter key to submit forms, not just Ctrl+S #1863

@m-nash

Description

@m-nash

Problem

When an MCP server sends an elicitation/create request with a multi-property form (e.g., an enum selector + a text input field) OR just an enum selector, the Copilot CLI requires Ctrl+S to submit the form. This is unintuitive for users accustomed to pressing Enter to confirm a selection.

The v0.0.422 changelog added "Pressing Enter in required enum field now selects the highlighted option" which doesn't seem to work

Use Case

My MCP server presents a form like:

{
  "message": "PR #28 has a new comment. What would you like to do?",
  "requestedSchema": {
    "properties": {
      "choice": {
        "type": "string",
        "oneOf": [
          { "const": "address", "title": "Address this comment" },
          { "const": "explain", "title": "Explain and suggest" },
          { "const": "handle_myself", "title": "I'll handle it myself" }
        ]
      }
    }
  }
}

This renders as a list of choices. The user should be able to:

  1. Select a choice and press Enter to submit (most common path)

Currently, they must use Ctrl+S which is not discoverable and breaks the flow.

Feature Request

One or more of the following:

  1. Allow Enter to submit when the user has made a selection in an enum field (even in multi-property forms)
  2. Add a configurable keybinding for form submission (e.g., elicitation.submitKey in settings.json)

Environment

  • Copilot CLI v0.0.422
  • Windows, PowerShell
  • Using MCP elicitation from a custom MCP server (C# SDK v1.0.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions