CommandCodeAI / CommandCodeAI/command-code

Input issues: Vietnamese Telex composition and slash autocomplete recovery

Abierto
#521 1 comentario 0 reacciones 1 asignado Ver en GitHub

@vipulgupta2048 ya está trabajando en esto.

Desde el 6/7/2026.

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

There are two separate input issues in Command Code interactive mode on macOS/Ghostty.

First, Vietnamese Telex IME composition does not work correctly. When Vietnamese Telex is enabled, composed Vietnamese text does not appear directly inside the Command Code input box. Instead, the IME composition/pre-edit text is rendered separately first, and the text is only committed into the input box after pressing Space.

For example, when I type:

xin chào mọi người

the Vietnamese composition appears outside or detached from the input box first. After pressing Space, the composed text is committed into the Command Code input.

Second, slash command autocomplete does not recover/update after editing a slash command. This issue happens even when Vietnamese Telex is disabled.

For example:

  • Type /clear
  • Delete the last character so it becomes /clea
  • Delete again so it becomes /cle
  • The slash suggestion list does not reappear/update

In other coding CLIs such as Codex, slash autocomplete keeps working while editing /clear, /clea, /cle, /cl, etc.

Expected Behavior

Expected behavior:

  1. Vietnamese Telex IME should compose text directly inside the Command Code input box.

    Example:

    xin chào mọi người

    The text should appear and update normally inside the input box while typing, without rendering the pre-edit/composition text outside or detached from the input area.

Image
  1. Slash command autocomplete should continue to update while editing a slash command.

    Example:

    • Type /clear
    • Suggestions should appear
    • Delete r, so the input becomes /clea
    • Suggestions should still appear/update
    • Delete again, so the input becomes /cle
    • Suggestions should still appear/update

This should work regardless of whether Vietnamese Telex is enabled or disabled.

Image
Actual Behavior

Actual behavior:

  1. With Vietnamese Telex enabled:

    • Vietnamese composition/pre-edit text is rendered outside or detached from the Command Code input box.
    • The composed Vietnamese text is only committed into the input box after pressing Space.
    • This makes Vietnamese prompts awkward and unreliable to type.
Image
  1. Slash command autocomplete does not recover/update after editing:

    • Type /clear
    • Delete the last character so it becomes /clea
    • Delete again so it becomes /cle
    • The slash command suggestion list does not reappear/update.

This slash autocomplete issue happens even when Vietnamese Telex is disabled.

Image
Steps to reproduce the issue
Issue 1: Vietnamese Telex IME composition is detached from the input box
  1. Open Ghostty on macOS.

  2. Enable Vietnamese Telex input method.

  3. Start Command Code by running:

    cmd
    
  4. In the Command Code interactive input box, type a Vietnamese sentence, for example:

    xin chào mọi người
    
  5. Observe that the Vietnamese IME composition/pre-edit text is rendered separately or detached from the Command Code input box.

  6. Press Space.

  7. Observe that the composed Vietnamese text is then committed into the input box.

  8. Expected behavior: Vietnamese Telex composition should happen directly inside the Command Code input box while typing, without showing the pre-edit text outside or detached from the input area.


Issue 2: Slash autocomplete does not recover after editing a slash command
  1. Start Command Code by running:

    cmd
    
  2. Type a slash command:

    /clear
    
  3. Delete the last character so the input becomes:

    /clea
    
  4. Delete again so the input becomes:

    /cle
    
  5. Delete again so the input becomes:

    /cl
    
  6. Observe that the slash command suggestion list does not reappear or update after editing the command text.

  7. Expected behavior: the slash command suggestion list should continue to appear and update while editing /clear, /clea, /cle, /cl, etc.

  8. This slash autocomplete issue also happens when Vietnamese Telex is disabled.

  9. In other coding CLIs such as Codex, slash autocomplete continues to work while editing the slash command text.

Command Code Version

0.40.5

Operating System

macOS

Terminal/IDE

Ghostty

Shell

zsh

Additional context

No response

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.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.