Allow use of system installed Github CLI instead of the bundled installaion (gh.exe)
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
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:
- 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?)
- 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、既存の COPILOT_CLI_PATH の処理と、同梱された gh.exe を起動するパスを追跡します。会社による制限下のワークフローを再現し、そのうえで、設定済みのシステム GitHub CLI が使用されること、または GitHub を必要としないタスクが gh.exe を繰り返し起動せずに進行できることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github, shell
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100