CommandCodeAI / CommandCodeAI/command-code

Bug: Command Code 1.56.0 TUI does not accept keyboard input on Windows

Ouverte
#884 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
Aucune donnée de langage
Étoiles
4k
Forks
350
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Summary

After upgrading from Command Code 1.55.0 to 1.56.0, the interactive TUI starts and renders correctly, but it no longer accepts keyboard input.

The prompt is displayed normally, but typing does not enter any text. The TUI appears to be running, but keyboard input is not being processed.

I initially suspected corrupted project/session data, but testing with a completely empty project reproduced the same issue.

This appears to be a regression in Command Code 1.56.0.

Expected Behavior

After running cmdc, the TUI should accept keyboard input in the Ask your question... prompt and respond normally to keyboard shortcuts.

Actual Behavior

The TUI renders correctly, for example:

Command Code v1.56.0

models: glm-5.3-flash with low effort · taste-1

~

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Ask your question...
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
? for shortcuts · taste on

However, keyboard input is not accepted. I cannot type a prompt into the input field.

The CLI itself starts correctly:

cmdc --version

and:

cmdc --help

work normally.

The problem is specifically with the interactive TUI and keyboard input.

I also tested an empty project, so the problem does not appear to be caused by corrupted sessions or project data.

Steps to reproduce the issue
  1. Install Command Code 1.56.0:
    npm install -g command-code@1.56.0
  2. Create a completely empty directory:
    mkdir test-command-code
    cd test-command-code
  3. Run:
    cmdc
  4. The TUI starts and displays the Ask your question... prompt.
  5. Try typing any text.
  6. The TUI does not accept the keyboard input.
Command Code Version

1.56.0

Operating System

Windows

Terminal/IDE

both cmd & PowerShell

Shell

No response

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

I completely reinstalled Command Code and also cleared the npm cache:

npm uninstall -g command-code
npm cache clean --force
npm install -g command-code@latest

The problem remained with 1.56.0.

I also tested my existing projects and initially suspected that the projects directory or session files might be corrupted. However, the same problem occurs with a completely empty project.

Regression test

I downgraded to Command Code 1.55.0:

npm install -g command-code@1.55.0

and disabled automatic updates using:

COMMANDCODE_SKIP_UPDATES=1

With 1.55.0, the TUI works normally and accepts keyboard input.

The same environment, terminal, and projects work correctly with 1.55.0.

Workaround

For now, I am using Command Code 1.55.0 with automatic updates disabled:

COMMANDCODE_SKIP_UPDATES=1

This completely restores normal TUI keyboard input.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Reproduisez la régression avec Command Code 1.56.0 installé via npm dans un répertoire vide en utilisant cmd et PowerShell, puis comparez le comportement de la TUI interactive avec 1.55.0. Suivez le point d’entrée de la saisie de la TUI de cmdc et ajoutez une couverture pour la saisie au clavier ; c’est terminé lorsque les prompts et les raccourcis fonctionnent dans les terminaux Windows sans le workaround.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
node.js
Domaine
cli
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
58/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.