Skip to content

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

Closed

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

Activity

  1. nicobao commented on Apr 7, 2026

    @nicobao

    Reproduced in Kitty terminal. I don't have the OP's plugin.

  2. OverHash commented on Apr 10, 2026

    @OverHash

    This applies to more than just a permission request. If you switch to a subagent output while you have some draft text written in the message bar, then switching back to the main agent to send it will also lose the state.

  3. OverHash commented on Apr 10, 2026

    @OverHash

    See #21120, this issue is a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions