Skip to content

Prompt input is cleared when a permission or question dock appears #22301

@nkootstra

Description

@nkootstra

Description

Description

When the AI triggers a permission request or question tool mid-session, any text you have typed into the prompt input is silently cleared. After dismissing the dock, the prompt is empty and you have to retype your message.

Steps to reproduce

  1. Start a session
  2. Type some text into the prompt (do not submit)
  3. Wait for the AI to trigger a permission request or question tool
  4. Dismiss the dock
  5. Prompt input is empty

Expected behaviour

Text typed into the prompt should be preserved while a permission or question dock is shown.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

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