Files
opencode2api/internal
Jason Xu 953310117d fix(free-tier): keep ses_ session timestamps inside the upstream window
The upstream decodes ses_ as ~((ms << 12) | counter) and rejects an
implausible timestamp with the same 429 Free usage limit it returns for an
exhausted quota, so a hash-derived id made healthy egresses look blocked.
Anchor the timestamp to the current UTC day minus a hash-chosen offset of
at most 30 days, keeping the id deterministic for a given request signal
while staying inside the accepted window.
2026-10-25 06:48:54 +08:00
..
2026-10-19 05:27:50 +08:00