Skip to content

[FEATURE]: use "space" instead of "enter" to toggle multi-select answers in questions #11471

Description

@IdrisGit

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

issue

currently, when the questions tool is invoked by the agent and it includes a multi-select questions, answers are toggled using "enter", and you have to press "tab" to move to the next section. However, for all other question types, "enter" both selects and submits, moving you on to the next section or question.

this breaks the natural flow where "enter" is used to submit but for multi-select questions, "enter" becomes a toggle action and "tab" effectively becomes the submit action, even though it is intended to be a navigation key only.

proposal

for multi-select questions, use "space" to toggle answers and keep "enter" for its natural submit behavior, this fit with expected keyboard interactions and is more consistent with the typical, "space" to toggle selections in TUIs and CLIs.

screen recording trying to explain the issue

question_tool_multi_select_issue.mp4

Activity

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

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions