opencode
opencode copied to clipboard
Question tool: custom 'Other' answer migrates/disappears when switching tabs
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
- Trigger the Question tool with multiple questions (tabs visible).
- On Question A, choose Type your own answer and type some text (do not press Enter).
- Click Question B tab with the mouse.
- 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
After
Environment
- OS: macOS
- Branch:
dev