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

Open
opened 2026-02-16 17:50:55 -05:00 by yindo · 0 comments
Owner

Originally created by @luispl77 on GitHub (Jan 13, 2026).

Originally assigned to: @rekram1-node on GitHub.

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
Originally created by @luispl77 on GitHub (Jan 13, 2026). Originally assigned to: @rekram1-node on GitHub. ## 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](https://github.com/user-attachments/assets/294d796e-fc72-4404-9d20-d1bd3382bf8f) After ![Image](https://github.com/user-attachments/assets/9be24bc2-732e-4b1f-88de-63eea6327705) ## Environment - OS: macOS - Branch: `dev`
yindo added the opentui label 2026-02-16 17:50:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5288