github / github/copilot-cli

Copilot CLI cannot see the commands you run via `!` prefix

Đang mở
#1,411 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:tools
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the feature or problem you'd like to solve

Copilot CLI cannot see the commands you run via `!` prefix

### Proposed solution

Copilot CLI cannot see `!` prefixed commands that I run. This goes for the command itself nor the command output. Not sure if this is a bug or a feature, but it's definitely a limitation of using it for productive workflows. The agent context should have access to your command output.

```
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ╭─╮╭─╮ │
│ ╰─╯╰─╯ GitHub Copilot v0.0.406 │
│ █ ▘▝ █ Describe a task to get started. │
│ ▔▔▔▔ │
│ Pick a model with /model. Send this session to GitHub with /delegate, and Copilot will create │
│ a PR. Enter ? to see all commands. Copilot uses AI, so always check for mistakes. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

● 💡 No copilot instructions found. Run /init to generate a copilot-instructions.md file for this project.

● Folder C:\test has been added to trusted folders.

● $ ls
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ No Content │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

❯ do you see the output of the command i just ran?

● List shells

● No, I don't see any previous command output. There are no active shell sessions in my context, and I don't have visibility into commands you ran outside of this session.

Could you paste the output here or re-run the command so I can help?

❯ Can i run commands in copilot cli that you can see the output of?

● Checking my documentation
└ # GitHub Copilot CLI Documentation

● Yes! You can run commands directly inside the Copilot CLI that I can see. There are two ways:

1. Use ! prefix — Type ! followed by your command (e.g., !git status) to execute it in your local shell. However, this runs outside my context and I won't see the output.
2. Ask me to run it — Just tell me what command you'd like to run (e.g., "run git status"), and I'll execute it using my tools. This way I can see the output and help you with it.

So the best approach is to ask me to run the command rather than running it yourself outside the session.
```

### Example prompts or workflows

See above

### Additional context

GitHub Copilot CLI 0.0.406.

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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.