Closed
Description
Problems
- Copilot will wait for the command to exit before it can even continues. But sometimes, it runs an interactive command, and then ... it will wait for forever.
- VSCode's built-in terminal emulator uses interactive shell by default, and interactive shell is designed for humans, not AI. The shell could contains feature that AI doesn't know, for example, I use Vi mode in Bash, and the AI doesn't know that it must enter insert mode first (by pressing
i
ora
) before it can writes command. I also usesble.sh
, and the AI doesn't know that to run multi-line command, it must pressCtrl-j
instead ofEnter
. Anyway, interactive shell is not friendly to AI agent in my opinion
My proposal
- Should uses Node's API to run shell commands instead. The stdout and stderr of shell command could be streamed to users (and AI as well)