Skip to content

Input text disappears after permission-modal is shown #21120

Closed

Description

@stickyburn

Description

This started happening after a new update, but if there's any text in the input as the agent is working, anytime it shows a permission modal, the input text is now cleared.

This was useful to write ongoing comments/questions as the agent was finishing a current task.

version: 1.3.15
arch: MacOS

Plugins

No response

OpenCode version

1.3.15

Steps to reproduce

  1. Start a task

  2. Write something in the input

  3. Wait for a permission modal to showup. Accept/Reject, and the input text disappears.

Screenshot and/or share link

No response

Operating System

MacOS

Terminal

Kitty

Activity

  1. nicobao commented on Apr 9, 2026

    @nicobao

    Also Kitty. Also happens in 1.4.2.

  2. OverHash commented on Apr 10, 2026

    @OverHash

    29f7dc073#diff-ac546dd32bc846999ff811172f32c802b0a0c224dd92d712027c38b260be4c78 is probably where this broke

    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. added 2 commits that reference this issue on Apr 15, 2026
    413eb30
    5fbfcad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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