mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
Fetch account security reminders through app-server (#60082)
## Why Security reminder requests need to use app-server's active authentication and HTTP runtime, with results bound to the login that fetched them. ## What changed - Add `account/securitySetup/read`, returning an optional notice with account and user IDs, plus generated protocol schemas and bindings. - Fetch reminders in app-server only for a matching saved ChatGPT login. Return `notice: null` for ineligible, unavailable, or timed-out reads, and discard results when the login changes during the request. - Route TUI reminder reads through the new method while retaining notice validation and identity checks. Unsupported servers produce no reminder. ## Testing Add coverage for shared runtime use across restarts, ineligible authentication modes, and login changes during a fetch. Update TUI coverage for unavailable, unsupported, and mismatched notices. GitOrigin-RevId: 426fee7ce98df17970957c06876881bc5b005196
This commit is contained in:
@@ -1942,6 +1942,12 @@ impl MessageProcessor {
|
||||
ClientRequest::GetAuthStatus { params, .. } => {
|
||||
self.account_processor.get_auth_status(params).await
|
||||
}
|
||||
ClientRequest::GetAccountSecuritySetup { .. } => Ok(Some(
|
||||
self.account_processor
|
||||
.get_account_security_setup()
|
||||
.await
|
||||
.into(),
|
||||
)),
|
||||
ClientRequest::GetAccountRateLimits { params, .. } => {
|
||||
self.account_processor.get_account_rate_limits(params).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user