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
- Open the app on macOS with text substitution enabled (System Settings → Keyboard → Text Replacements)
- Focus the prompt input in normal mode
- Type
--- (three consecutive hyphens)
- 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

Operating System
macOS 26.3.1
Terminal
iTerm2
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
---(three consecutive hyphens)---with—and the cursor position jumps to near---'s original cursorScreenshot and/or share link
Operating System
macOS 26.3.1
Terminal
iTerm2