Skip to content

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

Closed as not planned

Description

@huangfanglong

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

Activity

  1. github-actions commented on Aug 22, 2026

    @github-actions
    Contributor

    This issue might be related to existing issues. Please check:

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

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