Skip to content

Wrong Cursor Placement after pasting Json in Desktop Prompt Input #16906

@OpeOginni

Description

@OpeOginni

Description

When I try to paste in a JSON that was formatted inside the Desktop Prompt input box, the cursor is always put inbetween rather than the end making continuing the prompt have exatra steps (need to use arrow keys or scroll).

It normally should be at the end.

Plugins

None

OpenCode version

v1.2.24

Steps to reproduce

  1. Get a somewhat lengthy and formated JSON and copy to clipboard
  2. Paste in prompt input box on desktop app

Screenshot and/or share link

Screen.Recording.2026-03-10.at.16.25.29.mov

Operating System

macOS

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

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