Copilot engine: tool images never reach the model behind the API proxy
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
Línea de trabajo
Empieza leyendo src/services/credentials/copilot-credential-env.ts en torno a la configuración del entorno del proxy de API y, después, busca dónde se define y se usa DefaultCopilotVersion. Revisa las pruebas existentes del entorno de credenciales de Copilot y del comportamiento de la versión CLI predeterminada. La tarea estará terminada cuando el modo proxy del token de GitHub habilite vision y la versión predeterminada de Copilot CLI sea al menos 1.0.106.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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!
- Lenguaje dominante
- Go
- Estrellas
- 5.6k
- Forks
- 615
- Merge medio
- 5 h 21 min
- PR fusionados (30 d)
- 792
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/gh-aw
-
automation documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
ai-inspected
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
agent-research cookie
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
automation cli-tools testing
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de github/gh-aw
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
GitHub webhook is not subscribed to release events, so `event: release` never triggersPosiblemente ocupada @qsun la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
woodpecker-ci/woodpecker#7542 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
zilliztech/milvus-backup#1386 ·
Los mantenedores suelen responder en 1 día
-
Pipelined flush no longer observes kill signals after #2042: flush backoffer is built with nil varsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día