mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 04:44:19 +01:00
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>