[Bug] --interactive startup prompt is silently dropped with a local plugin custom agent
Chưa có ai nhận issue này.
- 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 bug
-i/--interactive <prompt> silently drops the startup prompt when Copilot CLI
is launched with a custom agent from local plugins. The TUI starts and the
requested agent is selected, but the prompt supplied on the command line is
never submitted. The session remains at zero turns.
This is using the standard GitHub Copilot provider, not a custom/BYOK provider.
Affected version
GitHub Copilot CLI 1.0.83-5
Windows 11, x86_64
Windows Terminal / PowerShell
Steps to reproduce the behavior
-
Load a local plugin that contributes a custom agent.
-
Start an interactive session with both the agent and an initial prompt:
copilot ` --plugin-dir "$HOME\git\bstack\bstack" ` --plugin-dir "$HOME\git\bstack\workiq" ` --agent bstack:Architect ` --interactive "<ordinary prompt text>" -
Observe that the TUI starts and selects
bstack:Architect, but the supplied
prompt is not executed. -
Manually entering a prompt after startup works.
Expected behavior
The prompt passed to -i/--interactive should automatically execute as the
first turn, as documented by copilot --help:
-i, --interactive <prompt>
Start interactive mode and automatically execute this prompt
Additional context
The debug log confirms that argument processing and custom-agent selection
succeeded:
"agent_name": "bstack:Architect"
"agent_display_name": "Architect"
However, the same process shut down with:
"turn_count": 0
There is no corresponding user.message, assistant turn start, or model call
for the command-line prompt. This rules out prompt interpretation or tool
execution as the failure point: the --interactive argument value never
becomes a user turn.
This resembles #4258, but that report was limited to custom/BYOK providers and
is closed. This reproduction uses the standard GitHub provider and a local
plugin custom agent on 1.0.83-5, so the failure is either a regression or a
broader unfixed startup-argument path.
#4592 may also be related because it documents custom-agent initialization
ordering differences between interactive and prompt modes.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lệnh -i/--interactive đã được ghi trong tài liệu với một custom agent của plugin cục bộ, sau đó theo dõi quá trình xử lý các đối số khởi động của CLI cho đến bước chọn agent. Được xem là hoàn tất khi prompt được cung cấp trở thành lượt người dùng đầu tiên và tự động được thực thi, với phần bao phủ cho đường dẫn custom-agent.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github, shell
- 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
- 65/100