Skip to content

Desktop app on macOS text substitution breaks cursor position in prompt input #17931

@colus001

Description

@colus001

Description

When typing in the prompt input (normal mode), macOS (desktop app) text substitution (e.g. --- → —) causes the cursor position to jump unexpectedly. The text replacement itself is a minor annoyance, but the real issue is that it disrupts cursor tracking, making the input difficult to use.

Plugins

No response

OpenCode version

1.2.27

Steps to reproduce

  1. Open the app on macOS with text substitution enabled (System Settings → Keyboard → Text Replacements)
  2. Focus the prompt input in normal mode
  3. Type --- (three consecutive hyphens)
  4. Trying to type anything and observe that macOS replaces --- with and the cursor position jumps to near ---'s original cursor

Screenshot and/or share link

Image

Operating System

macOS 26.3.1

Terminal

iTerm2

Metadata

Metadata

Labels

No labels
No labels

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