Copilot engine: tool images never reach the model behind the API proxy
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
調査の方向性
まず src/services/credentials/copilot-credential-env.ts の API プロキシ環境の設定周辺を読み、次に DefaultCopilotVersion の定義箇所と使用箇所を探します。Copilot の認証情報環境と CLI のデフォルトバージョンの動作に関する既存のテストを確認します。GitHub トークンのプロキシモードで vision が有効になり、Copilot CLI のデフォルトバージョンが 1.0.106 以上になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Images from tools are dropped for every Copilot workflow that uses a COPILOT_GITHUB_TOKEN, so screenshot- and image-based workflows can't see anything.
Steps
- Commit any PNG as
test.png. - Add a
workflow_dispatchworkflow withengine: copilotand the prompt "Opentest.pngwith theviewtool and describe it." - Set
COPILOT_GITHUB_TOKEN, compile, and run.
Expected: the model receives the image and describes it.
Actual: the model says it can't see the image. On CLI 1.0.106 the view result is only Viewed image file successfully. (an image attachment was omitted from this request because image input is unavailable for the current model). On the default 1.0.103 the omission note is missing too. With COPILOT_PROVIDER_VISION: "true" in engine.env (CLI 1.0.106), the same run describes the image correctly.
Build: gh aw v1.0.1, Copilot CLI 1.0.103 (default) and 1.0.106, ubuntu-latest.
Cause: in API-proxy mode, AWF runs the CLI as an offline BYOK client pointed at the sidecar (copilot-credential-env.ts). The CLI treats BYOK models as text-only unless COPILOT_PROVIDER_VISION=true, which https://github.com/github/copilot-agent-runtime/pull/32179 added (CLI 1.0.106 and later; documented in copilot help environment).
Suggested fix: set COPILOT_PROVIDER_VISION=true alongside COPILOT_OFFLINE in GitHub-token mode, and move DefaultCopilotVersion to 1.0.106 or later.
Workaround:
engine:
id: copilot
version: "1.0.106"
checksums-sha256: "5e8cf7427cc69cc757d1a08132dac0eb9e7f56c95d269ecbc06799686e996730" # SHA256SUMS.txt
env:
COPILOT_PROVIDER_VISION: "true"
Related: https://github.com/github/gh-aw/issues/74972, https://github.com/github/copilot-cli/issues/4600
🤖 Authored with GitHub Copilot on behalf of @rwoll.
[!NOTE]
Was this description helpful?
Pick a rating, then press Submit.Rate the description, not the code. Humans only, please. Thanks for helping me write clearer descriptions!
- 主要言語
- Go
- スター
- 5.6k
- フォーク
- 615
- 平均マージ
- 5時間 21分
- マージ済み PR(30日)
- 792
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-aw のほかの issue
-
automation documentation
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ai-inspected
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
agent-research cookie
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
automation cli-tools testing
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
GitHub webhook is not subscribed to release events, so `event: release` never triggers対応中かも @qsun が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
woodpecker-ci/woodpecker#7542 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
zilliztech/milvus-backup#1386 ·
メンテナーはふだん 1 日以内に返信
-
Pipelined flush no longer observes kill signals after #2042: flush backoffer is built with nil varsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信