mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
## What changed - Add the under-development `mcp_oauth_refresh_coordination` feature and pin its selected refresh mode to each MCP connection. - Treat the refresh mode as part of OAuth connection identity so runtime and MCP configuration refreshes reconnect when the mode changes. - Keep legacy refresh behavior in builds where coordination is unavailable and emit a warning when coordinated mode is selected. ## Testing - Cover connection replacement when the feature is toggled through both runtime and MCP configuration refresh paths. GitOrigin-RevId: 89596150f0338e6ede0e712badecea4450831766
12 lines
395 B
Rust
12 lines
395 B
Rust
//! Selects the owner of MCP OAuth refresh and credential persistence.
|
|
|
|
/// MCP OAuth policy pinned for the lifetime of a connection.
|
|
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
|
|
pub enum McpOAuthRefreshMode {
|
|
/// Keep Codex's existing refresh and persistence path.
|
|
#[default]
|
|
Legacy,
|
|
/// Let RMCP coordinate refresh through Codex's credential store.
|
|
Coordinated,
|
|
}
|