opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Question tool: custom 'Other' answer migrates/disappears when switching tabs

Open luispl77 opened this issue 2 days ago • 1 comments

Summary

In the TUI Question tool, typing a custom answer via Type your own answer and switching question tabs with the mouse can cause the answer to be applied to the wrong tab/question (or appear missing on Confirm). Also, when re-opening the custom input, the cursor jumps to the start of the line.

Repro

  1. Trigger the Question tool with multiple questions (tabs visible).
  2. On Question A, choose Type your own answer and type some text (do not press Enter).
  3. Click Question B tab with the mouse.
  4. Go to Confirm.

Expected

  • The custom answer stays attached to Question A.
  • Re-opening Type your own answer places the cursor at the end of the existing text.

Actual

  • The custom answer can migrate to Question B or be missing on Confirm.
  • Cursor starts at the beginning when re-opening the custom input.

Videos

Before

Image

After

Image

Environment

  • OS: macOS
  • Branch: dev

luispl77 avatar Jan 13 '26 11:01 luispl77