mirror of
https://github.com/openai/codex.git
synced 2026-11-17 14:58:36 +00:00
Update rmcp to 3.1.3 (#39798)
## What changed - Upgrade `rmcp` and `rmcp-macros` from 3.1.2 to 3.1.3. - Preserve authentication-required and retryable transport classifications when modern MCP discovery falls back to legacy initialization. - Prevent unrelated discovery errors from triggering legacy fallback while retaining their diagnostics. ## Testing - Cover authentication challenges and transient initialization failures during legacy fallback. - Verify that a failed OAuth issuer check does not consume the pending authorization state. GitOrigin-RevId: 957c0873fec1148883dd163fbaeb77d7593d8c53
This commit is contained in:
1 parent
cc801d7048
commit
a3bce23f3b
9 files changed
+138
-10
No files matched your search
@@ -20,7 +20,10 @@ pub fn is_authentication_required_error(error: &Error) -> bool {
|
||||
.is_some_and(auth_error_requires_authentication)
|
||||
|| source
|
||||
.downcast_ref::<ClientInitializeError>()
|
||||
.is_some_and(|error| {
|
||||
.is_some_and(|mut error| {
|
||||
while let ClientInitializeError::LegacyFallbackFailed { fallback, .. } = error {
|
||||
error = fallback;
|
||||
}
|
||||
matches!(
|
||||
error,
|
||||
ClientInitializeError::TransportError { error, .. }
|
||||
|
||||
Reference in new issue
Block a user