Skip to content

Extend multimodal proxy diagnostics and passthrough coverage to OpenAI - #11290

Merged
lpcox merged 3 commits into
mainfrom
copilot/awf-fix-image-results-forwarding
Nov 8, 2026
Merged

lpcox merged 3 commits into
mainfrom
copilot/awf-fix-image-results-forwarding

Conversation

Copilot AI commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Copilot view can record PNG output while the subsequent Responses request contains only success text. This change extends existing Copilot diagnostics and regression coverage to OpenAI without changing request forwarding.

  • Diagnostics: Emit inbound/upstream content-part type counts on both proxy ports—no prompts, tool outputs, image data, or credentials.
  • Regression coverage: Compare direct loopback delivery against the real proxy byte-for-byte for message and tool-result images. Cover both Responses routes, chunked 10 MiB bodies, and oversized-body rejection.
  • Troubleshooting: Document both ports, coverage limits, and upstream handoff criteria. Missing inbound image parts indicate client-side omission; live Copilot CLI behavior and model image support remain unverified.

Copilot AI changed the title [WIP] Fix image results forwarding from view tool to model Extend multimodal proxy diagnostics and passthrough coverage to OpenAI Nov 8, 2026
Copilot AI requested a review from lpcox November 8, 2026 02:40
@lpcox
lpcox marked this pull request as ready for review November 8, 2026 03:02
Copilot AI adaptive review requested due to automatic review settings November 8, 2026 03:02

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.

🟡 Changes recommended

The troubleshooting guidance omits that request_shape records are emitted only by the buffered HTTP path, not WebSocket Responses sessions.

1 open issue
What changed in this PR

Extends AWF’s multimodal proxy diagnostics and regression coverage from Copilot to OpenAI without changing request forwarding. This helps distinguish missing client-side image parts from proxy body changes.

Changes:

  • Enable payload-free request-shape diagnostics for OpenAI alongside Copilot.
  • Compare direct and proxied delivery across both Responses routes, including image tool outputs and request-size limits.
  • Update troubleshooting guidance with test commands and coverage limitations.
File Description
docs/​troubleshooting.md Documents both proxy ports, regression tests, and diagnostic limitations.
containers/​api-proxy/​server.multimodal.test.js Extends passthrough and size-limit tests to OpenAI and adds direct-delivery comparisons.
containers/​api-proxy/​logging.test.js Checks payload-free content-part logging for both providers.
containers/​api-proxy/​logging.js Enables request-shape logging for OpenAI requests.

Review effort: Max (auto)

Comment thread docs/troubleshooting.md
Comment on lines +153 to +154
These credential-free tests do not run Copilot CLI or establish model image
support or the cause in an uninspected live workflow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Documented that request_shape records are emitted only for buffered HTTP requests; WebSocket Responses sessions do not emit them. Commit: 0778d80.

@lpcox

lpcox commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

⏳ Copilot review left inline comments.

@copilot To proceed:

  1. Ask @copilot to address the review feedback (reply to this comment or the review thread)
  2. Once the fix is pushed, add the ready-for-aw label to trigger agentic CI smoke tests

@github-actions

github-actions Bot commented Nov 8, 2026

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-11290 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit ee6e52a

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 93.80% 93.81% 📈 +0.01%
Statements 92.35% 92.36% 📈 +0.01%
Functions 93.02% 93.02% ➡️ +0.00%
Branches 86.68% 86.68% ➡️ +0.00%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/enclave/host-executor-server.ts 91.2% → 91.2% (+0.00%) 89.8% → 90.1% (+0.29%)
src/commands/main-action.ts 91.7% → 92.0% (+0.25%) 91.4% → 91.7% (+0.24%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

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] api-proxy/Copilot CLI: image results from view tool not forwarded to model

3 participants