Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

try fix 2 (#12264)

jif-oaif6c06108b124
diff --git a/codex-rs/core/tests/suite/rmcp_client.rs b/codex-rs/core/tests/suite/rmcp_client.rs
index d1394f7a74..4268077338 100644
--- a/codex-rs/core/tests/suite/rmcp_client.rs
+++ b/codex-rs/core/tests/suite/rmcp_client.rs
@@ -912,6 +912,11 @@ async fn streamable_http_with_oauth_round_trip() -> anyhow::Result<()> {
let fixture = test_codex()
.with_config(move |config| {
+ // This test seeds OAuth tokens in CODEX_HOME/.credentials.json and
+ // validates file-backed OAuth loading. Force file mode so Linux
+ // keyring backend quirks do not affect this test.
+ config.mcp_oauth_credentials_store_mode = serde_json::from_value(json!("file"))
+ .expect("`file` should deserialize as OAuthCredentialsStoreMode");
let mut servers = config.mcp_servers.get().clone();
servers.insert(
server_name.to_string(),