CommandCodeAI / CommandCodeAI/command-code

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

Đang mở
#884 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4k
Fork
350
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Tái hiện hồi quy với Command Code 1.56.0 được cài đặt bằng npm trong một thư mục trống bằng cmd và PowerShell, sau đó so sánh hành vi TUI tương tác với 1.55.0. Truy vết điểm vào của phần nhập liệu TUI của cmdc và bổ sung coverage cho thao tác nhập bằng bàn phím; hoàn tất khi các prompt và phím tắt hoạt động trên các terminal Windows mà không cần workaround.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
node.js
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
58/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.