mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
Every anonymous-lane session draws from one shared upstream IP bucket, but nothing showed which conversation was draining it. Carry the canonical ses_ ID into RequestMeta and the request_routed line, the recent-request ring, and per-model/per-tier style usageSessions maps in both lifetime and hourly snapshots. The lifetime sessions map is capped at 500 entries (smallest-first eviction): session IDs are high-cardinality and an unbounded map grows forever. Buckets and snapshots are short-lived and stay uncapped.