Bug: Command Code 1.56.0 TUI does not accept keyboard input on Windows
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 58/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- node.js
- 领域
- cli
调研方向
在空目录中使用通过 npm 安装的 Command Code 1.56.0,分别通过 cmd 和 PowerShell 重现该回归,然后将交互式 TUI 的行为与 1.55.0 进行比较。跟踪 cmdc TUI 输入入口,并为键盘输入添加覆盖;当提示和快捷键在 Windows 终端中无需 workaround 即可工作时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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
- Install Command Code 1.56.0:
npm install -g command-code@1.56.0 - Create a completely empty directory:
mkdir test-command-code
cd test-command-code - Run:
cmdc - The TUI starts and displays the Ask your question... prompt.
- Try typing any text.
- 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.
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CommandCodeAI/command-code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/command-code#855 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
CommandCodeAI/command-code#841 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/command-code#655 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/command-code#608 ·
-
难度 3/5 1-2 天 新手友好度 70/100
CommandCodeAI/command-code#893 ·
查看 CommandCodeAI/command-code 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
hust-open-atom-club/hustmirror-cli#52 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
qgis/QGIS-Documentation#11275 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
milvus-io/birdwatcher#545 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
JuliusBrussee/caveman#1102 · 1 条评论 ·