Skip to content

Korean characters disappear in the input prompt when using WezTerm/Ghostty #2013

@MunsuBahk

Description

@MunsuBahk

1. Bug Description : When I type Korean (Hangul) characters in the opencode input prompt using terminals like
WezTerm or Ghostty, the completed characters are displayed for a moment and then disappear. This issue does not occur in the
default macOS Terminal.app. It seems to be a rendering or character width calculation issue with full-width characters.

2. Environment

• opencode Version: 0.5.5
• Operating System: macOS Sequoia 15.6
• Terminal Emulator: wezterm 20240203-110809-5046fc22 / Ghostty 1.1.3
• Shell: Zsh 5.9
• LANG Environment Variable: ko_KR.UTF-8

3. Steps to Reproduce

  1. Open WezTerm or Ghostty.
  2. Run the opencode application.
  3. Switch the input method to Korean.
  4. Type any Korean word, for example, "안녕하세요".
  5. Press space or enter.

4. Expected Behavior : The text "안녕하세요" should remain visible in the input prompt.

5. Actual Behavior (실제 결과) The text "안녕하세요" appears correctly as it's being typed, but disappears immediately after
the composition is finished (e.g., after pressing space).

  1. Additional Context (추가 정보)

• A screen recording of the issue is attached. (문제를 녹화한 영상을 첨부합니다.)

2025-08-17.4.42.05.mov

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions