github / github/copilot-cli

Allow use of system installed Github CLI instead of the bundled installaion (gh.exe)

Đang mở
#4,456 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

area:configuration area:installation
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

Resolve the hard dependency on the bundled Github CLI (gh.exe) by allowing using the system installation

Proposed solution

The current version of copilot app had a hard dependency on the bundled Github CLI (gh.exe).
Unlike copilot.exe and git.exe, there is no environment variable that allow user to override using a system installation.

The result is that, in a company environment that has strict control on where executable can be launched, gh.exe cannot be launched at all.

In an earlier version of copilot app, like 1.0.16, the copilot app still can work fine without major loss of functionality.

With the latest version of copilot app, like 1.1.6, for some reason, I can see toolcall could also result in attempt to trigger gh.exe, and this has no way no disable through a global copilot instruction (such as "do not use gh.exe at all).
Currently, if this happens, under my company environment, it will be caught by our sercutity app and result in an error popup saying something similar to "you have no permission to run gh.exe..." and this cause the copilot app itself stuck in the mid of the task, until I close that popup. (and it will retry opening that gh.exe, which cause this to loop over and over again)

I will expect two things, either:

  1. Allow copilot to run without launching gh.exe (Im not sure why there is such dependency even my task doesn't need talk to github at all. Maybe auth? but this should be done through copilot-cli already?)
  2. Allow copilot to read an environment variable to use that gh.exe installation, instead of the bundle one - similar to COPILOT_CLI_PATH. I think this should be the way to go.

Currently, because of this issue, I need to keep myself on a very old version of copilot app. Otherwise, it is completely unusable in my company's environment.

Example prompts or workflows

No response

Additional context

No response

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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 lần theo cách xử lý COPILOT_CLI_PATH hiện có và các đường dẫn khởi chạy gh.exe đi kèm. Tái hiện workflow bị giới hạn bởi công ty, sau đó xác minh rằng GitHub CLI của hệ thống đã được cấu hình được sử dụng hoặc các tác vụ không cần GitHub có thể tiếp tục mà không liên tục khởi chạy gh.exe.

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
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/100

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.