Repository navigation
fix(api-proxy): trace Copilot image content across proxy boundaries - #11265
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified for the request-shape diagnostics and regression-coverage changes.
No open issues 🎉
What changed in this PR
This PR adds diagnostics and regression coverage to help distinguish Copilot client-side image omission from changes made by AWF’s API proxy, without assuming the root cause.
Changes:
- Add payload-free request-shape logs before transforms and each upstream HTTP attempt.
- Add tests for byte-identical image forwarding, exact-limit chunked requests, and oversized-body rejection.
- Document log interpretation, size limits, Squid behavior, and conditional upstream reporting.
| File | Description |
|---|---|
docs/troubleshooting.md |
Explain image diagnostics, request limits, and upstream handoff. |
containers/api-proxy/upstream-http.js |
Log request shape before each upstream HTTP attempt. |
containers/api-proxy/server.multimodal.test.js |
Cover image passthrough and 10 MiB size boundaries. |
containers/api-proxy/proxy-request.js |
Log inbound request shape before body transforms. |
containers/api-proxy/logging.test.js |
Cover type counts, payload exclusion, and malformed bodies. |
containers/api-proxy/logging.js |
Implement Copilot request-shape logging with allowlisted type labels. |
Review effort: Balanced (auto)
|
@copilot merge main and resolve conflicts and review feedback |
…-image-tool-results Co-authored-by: lpcox <[email protected]>
Merged |
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 4e0e8f0 |
Co-authored-by: Copilot App <[email protected]>
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
Copilot
viewcan report PNG success while subsequent inference requests contain only text. This change adds evidence to distinguish client-side image omission from proxy transformation; it does not assume a Copilot CLI root cause.request_shaperecords before transforms and each upstream HTTP attempt. Count allowlisted message and tool-output types; exclude payloads, URLs, credentials, and arbitrary type labels.function_call_outputimage arrays when no rewrite is required.