Skip to content

[BUG] Input text typed during a pending permission prompt is lost after accepting/rejecting #21320

@thestbar

Description

@thestbar

Description

When a prompt is submitted and OpenCode is processing a response, the user may start typing a follow-up message in the input field. If OpenCode pauses to request a permission approval during this time, the text already typed in the input field is silently cleared after the user accepts or rejects the permission. There is no draft recovery or restoration of the in-progress text.

Plugins

@mohak34/opencode-notifier@latest

OpenCode version

1.3.17

Steps to reproduce

  1. Send a prompt that will trigger a permission request (e.g. one that involves a bash, edit, or task tool call)
  2. While OpenCode is thinking/processing, start typing a new message in the input field
  3. When the permission prompt appears, accept or reject it — the text you typed is gone

Screenshot and/or share link

https://opncd.ai/share/4cKrhV1Q

Operating System

macOS 26.4

Terminal

Ghostty, iTerm2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions