mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-09 20:50:20 +08:00
`parse_codex_websocket_usage_limit_error` backfills `primary_reset_at` and `primary_reset_after_seconds` from the error body whenever the embedded headers did not supply them. Now that a named per-model limit no longer claims the unprefixed window headers, that absence is exactly what a Spark 429 produces — and `resets_at` on such an error is the Spark window's reset, so the backfill put model-scoped timing back on the account's own quota. Gate the backfill on the same ownership rule the window parsing uses. Reported by Cursor Bugbot on the fork PR. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>