anomalyco / anomalyco/opencode

TUI: If "Type your own answer" in question/ask prompt was selected and then switched to a different option, the answers cannot be submitted

Open
#44,192 1 comment 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Aug 22, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Summary

When the agent prompts the user to choose between several options for clarifications/confirmations including "Type your own answer", if a user accidentally selects "Type your own answer", or changed their mind and then selected one of the preset answer instead, pressing Enter proceeds to the next until the confirmation dialog before submission, but when Enter is pressed again to submit nothing happens.

This can only be rectified by going back to the tab where the user selected "Type your own answer" and then actually type in something in that box (which then overrides the preset selection) before the answers can be submitted.

Expected

  • Should be able to submit when selected "Type your own answer" and then selected a different option.

Actual

  • Unable to submit when selected "Type your own answer" and then selected a different option.
Plugins

N/A

OpenCode version

1.18.21

Steps to reproduce
  1. In an interactive opencode TUI session, trigger any question that allows a custom answer, so the dialog shows numbered options plus a final "Type your own answer" row.
  2. Select "Type your own answer" (it enters edit mode and focuses the text input) and then re-select a different option without typing anything.
  3. Proceed until submission dialog and click Enter.
Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.