Skip to content

Copilot Agent shouldn't run command inside terminal emulator #251058

Closed
@brianhuster

Description

@brianhuster

Problems

  1. 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.
  2. 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 or a) before it can writes command. I also uses ble.sh, and the AI doesn't know that to run multi-line command, it must press Ctrl-j instead of Enter. 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)

Metadata

Metadata

Labels

*as-designedDescribed behavior is as designed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions