anomalyco / anomalyco/opencode
tui: form answers are lost when switching session tabs
Open
@simonklee is already working on this.
Since Sep 14, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
- In the V2 TUI, an in-progress form answer is cleared after switching to another session tab and returning.
- The active session frame is unmounted during tab navigation, but form state is only stored inside
FormPrompt. - Expected: unfinished answers remain available when returning to the session tab.
- Related: #16172 fixed the same symptom in the web/desktop question dock.
Plugins
- None
OpenCode version
- Current
v2branch
Steps to reproduce
- Open two session tabs in the V2 TUI.
- Trigger a form question in one session.
- Start typing an answer without submitting it.
- Switch to the other session tab.
- Return to the session with the form.
- Observe that the typed answer is gone.
Screenshot and/or share link
https://github.com/user-attachments/assets/8cd237c0-351b-4cc1-967c-616a3c75b92a
Operating System
- All
Terminal
- All
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.