Copilot engine: tool images never reach the model behind the API proxy

Aperta Adatta ai principianti
#76,385 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, go
Ambito
devtools

Direzione di ricerca

Inizia leggendo src/services/credentials/copilot-credential-env.ts nella parte relativa alla configurazione dell’ambiente del proxy API, poi cerca dove viene definito e utilizzato DefaultCopilotVersion. Controlla i test esistenti per l’ambiente delle credenziali Copilot e il comportamento della versione CLI predefinita. Il lavoro è completato quando la modalità proxy del token GitHub abilita vision e la versione predefinita di Copilot CLI è almeno 1.0.106.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

awf community

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

  1. Commit any PNG as test.png.
  2. Add a workflow_dispatch workflow with engine: copilot and the prompt "Open test.png with the view tool and describe it."
  3. 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!

Lingua principale
Go
Stelle
5.6k
Fork
615
Merge medio
5h 21m
PR unite (30g)
792

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/gh-aw

Tutte le issue di github/gh-aw

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.