Skip to content

Enable Copilot tool images in API-proxy mode - #11417

Merged
lpcox merged 3 commits into
mainfrom
copilot/awf-set-copilot-provider-vision
Nov 10, 2026
Merged

lpcox merged 3 commits into
mainfrom
copilot/awf-set-copilot-provider-vision

Conversation

Copilot AI commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Copilot’s offline BYOK mode treats models as text-only unless vision is explicitly enabled, preventing tool-returned images from reaching the model.

  • Environment: Default COPILOT_PROVIDER_VISION=true alongside COPILOT_OFFLINE, preserving user-supplied overrides.
  • Coverage: Add assertions for the default and explicit overrides in credential and generated agent environments.
  • Compatibility: Document the Copilot CLI 1.0.106+ requirement and the separate gh-aw default-version follow-up.

Text-only providers can opt out with --env COPILOT_PROVIDER_VISION=false.

Copilot AI changed the title [WIP] Set COPILOT_PROVIDER_VISION for tool images visibility Enable Copilot tool images in API-proxy mode Nov 10, 2026
Copilot AI requested a review from lpcox November 10, 2026 16:29
@lpcox
lpcox marked this pull request as ready for review November 10, 2026 16:32
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 16:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the change enabling tool-returned images in Copilot’s API-proxy mode.

No open issues 🎉

What changed in this PR

Enables tool-returned images for Copilot in AWF’s API-proxy mode, addressing #11407 while preserving explicit user overrides.

Changes:

  • Defaults COPILOT_PROVIDER_VISION to true alongside offline mode.
  • Adds tests for the default and explicit true/false overrides.
  • Documents the Copilot CLI 1.0.106+ requirement, gh-aw version selection, and text-only opt-out.
File Description
src/​services/​credentials/​copilot-credential-env.ts Enables vision by default while preserving configured values.
src/​services/​credentials/​copilot-credential-env.test.ts Tests the vision default and explicit overrides.
src/​services/​api-proxy-service-api-targets.test.ts Verifies vision settings in the generated agent environment.
docs/​environment.md Explains version requirements and override options.

Review effort: Balanced (auto)

@lpcox

lpcox commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

Copilot AI commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot merge main and resolve conflicts

Merged latest main in ad89f22; no conflicts occurred. Copilot vision changes are preserved. Build, all 93 targeted tests, lint, and type-check passed. Secret scan passed; CodeQL found no Actions alerts (JavaScript analysis skipped due to database size).

@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

Copy link
Copy Markdown
Contributor

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11417 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit ea5574f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[awf] copilot-credential-env: set COPILOT_PROVIDER_VISION so tool images reach the model

3 participants