mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-16 22:57:53 +08:00
Keep the error-only upstream request capture policy on the connection context, before model routing and upstream execution begin. Check it before accessing pooled Gin state so delayed plugin callbacks retain the policy even after cancellation or Gin context reuse. Preserve ordinary HTTP error capture, failed upgrade handling, and full request logging. Cover large repeated requests, late callbacks, real WebSocket logging, and Codex duplex routing with regression tests. Related: #6960