CommandCodeAI / CommandCodeAI/command-code

Korean IME composition (marked) text renders at bottom of screen instead of at the input position

Abierto
#570 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Sin datos de lenguaje
Estrellas
4k
Forks
350
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Summary

When typing Korean text with the macOS built-in Korean input source (2-Set Hangul), the in-progress IME composition (marked text) is rendered at the bottom of the terminal screen instead of at the prompt input position. This affects all CJK input methods that rely on inline composition and makes Korean input hard to use, since the user cannot see the composing characters next to the text already entered in the input box.

Expected Behavior

The IME composition (marked) text should appear inline at the input cursor position, inside the prompt input box — i.e. the TUI should move the hardware terminal cursor to the input position while composing so the terminal emulator renders the composition view there.

Actual Behavior

The composition string appears at the bottom-left area of the screen, detached from the input box. After the composition is committed, the finalized text correctly appears in the input box — only the in-progress composition is misplaced. This suggests the TUI never repositions the hardware cursor to the input field (no cursor positioning during input), so the terminal emulator draws its IME composition view wherever the cursor happens to be parked.

Steps to reproduce the issue

  1. On macOS, enable the Korean input source (System Settings > Keyboard > Input Sources > Korean - 2-Set Hangul).
  2. Start cmd in a terminal (reproduced in the Orca embedded terminal; likely affects other terminals as well).
  3. Switch to the Korean input source and type any Korean syllable, e.g. press gks (한) slowly without committing.
  4. Observe that the composing character appears at the bottom of the screen rather than in the input box.

Environment

  • Command Code Version: 0.52.1
  • Operating System: macOS 26.5.2 (arm64)
  • Terminal: Orca (embedded terminal)
  • Shell: zsh (/bin/zsh)

Additional context

  • Reproduces with the stock macOS Korean IME; no third-party IME involved.
  • The same inline-composition mechanism is used by Japanese and Chinese input methods, so those users are likely affected too.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza reproduciendo el problema a través del punto de entrada cmd en la TUI con el IME coreano de macOS; después, sigue el manejo de la entrada del prompt y del cursor de hardware descrito en el informe. Se considera terminado cuando la composición marcada en coreano, japonés y chino aparece en la posición del cursor de entrada, mientras el texto confirmado sigue siendo correcto.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Área
cli, internationalization
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
55/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.