anomalyco / anomalyco/opencode

[BUG] Interactive response prompt freezes intermittently on Confirm or Esc

Open
#48,047 1 comment 0 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Sep 9, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

###-Description:
When an agent generates a question prompt with selectable choices, the UI intermittently freezes. Clicking the Confirm button does not submit the selected response, and pressing the Esc key fails to dismiss or cancel the prompt.

###-Environment:
OpenCode Version: 1.18.29
OS: Windows 11
Interface: Terminal UI

###-Steps to Reproduce:
1)Trigger an agent action that results in an interactive question prompt with selectable options.
2)Select a response from the available choices.
3)Attempt to submit the choice by clicking Confirm, or attempt to cancel by pressing Esc.
4)Observe that the prompt occasionally becomes unresponsive and ignores both inputs.

###-Expected Behavior:
Clicking Confirm should immediately submit the chosen response and proceed with the agent's workflow. Pressing Esc should consistently dismiss the prompt and cleanly cancel the interaction.

###-Actual Behavior:
The prompt occasionally freezes, ignoring both Confirm clicks and Esc key presses, effectively blocking the agent workflow.

###-Frequency:
Intermittent (occurs sometimes, but not consistently on every prompt).

###-Additional Notes:
I am interested in contributing to OpenCode and would like to work on fixing this bug. Any initial guidance or pointers to the relevant UI event handlers or state logic managing these interactive prompts would be highly appreciated

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.