anomalyco / anomalyco/opencode

tui: form answers are lost when switching session tabs

Open
#48,950 0 comments 0 reactions 1 assignee View on GitHub

@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 v2 branch
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.