Skip to content

Unanswered question disappears from UI after OpenCode restart #15172

@aklajnert

Description

@aklajnert

Description

When restarting OpenCode with an unanswered question in the session, reopening the same session no longer shows that question in the UI (both GUI and TUI). I can still see in the context that the last message was a question, but the visible conversation omits it, so I cannot continue answering it directly.

Expected behavior:
The unanswered question should still be visible in the conversation UI so I can answer it and continue the tool flow.

Actual behavior:
The last question is present in the context, but it is not rendered in the UI/TUI, so I cannot answer it and must send a new prompt referencing the original question.

Why it matters:
For GitHub Copilot, answering via the question tool does not consume a premium request, but sending a new prompt does, so this bug forces unnecessary extra premium usage.

Plugins

none

OpenCode version

v1.2.14

Steps to reproduce

  1. Create a new session, use a prompt like: "Ask me a question using question tool"
  2. Restart opencode without answering the question
  3. Go back to the same session

Screenshot and/or share link

You can see that the question is there, just not shown by OpenCode:
Image

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions