mirror of
https://github.com/openai/codex.git
synced 2026-04-30 09:26:44 +00:00
fix: taking plan type from usage endpoint instead of thru auth token (#7610)
pull plan type from the usage endpoint, persist it in session state / tui state, and propagate through rate limit snapshots
This commit is contained in:
@@ -1195,7 +1195,8 @@ async fn token_count_includes_rate_limits_snapshot() {
|
||||
"window_minutes": 60,
|
||||
"resets_at": 1704074400
|
||||
},
|
||||
"credits": null
|
||||
"credits": null,
|
||||
"plan_type": null
|
||||
}
|
||||
})
|
||||
);
|
||||
@@ -1243,7 +1244,8 @@ async fn token_count_includes_rate_limits_snapshot() {
|
||||
"window_minutes": 60,
|
||||
"resets_at": 1704074400
|
||||
},
|
||||
"credits": null
|
||||
"credits": null,
|
||||
"plan_type": null
|
||||
}
|
||||
})
|
||||
);
|
||||
@@ -1314,7 +1316,8 @@ async fn usage_limit_error_emits_rate_limit_event() -> anyhow::Result<()> {
|
||||
"window_minutes": 60,
|
||||
"resets_at": null
|
||||
},
|
||||
"credits": null
|
||||
"credits": null,
|
||||
"plan_type": null
|
||||
});
|
||||
|
||||
let submission_id = codex
|
||||
|
||||
Reference in New Issue
Block a user