Files
alzeo/dashboard
Hasan Basbunar 90b10aa47e agent_relay: accept-encoding is dropped only on the credential routes
The v2 migration put accept-encoding in REQUEST_DROP, so the relay never
forwarded it on any request: a box that never passes --opencode lost gzip
on every route, which is not "nothing changes" for a v1 box. The drop is
now per request (forward_request_headers secret=...): on /api/config,
/api/provider, /api/model and /api/credential the relay asks for identity,
because it reads the JSON of the answer to scrub it and a gzip answer it
cannot verify is a 502; everywhere else the client's Accept-Encoding passes,
as it did before the v2 migration. Blind review of 2026-11-20, D6.

Tests: test_accept_encoding_passes_on_every_other_route (new),
test_request_headers_are_rewritten and test_forward_request_headers
(updated) fail on the old code under the CI's invocation (cwd=dashboard,
python3 tests/test_agent_relay.py); test_no_accept_encoding_reaches_opencode
still proves the drop on the secret routes.

Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:50:42 +01:00
..