mirror of
https://github.com/openai/codex.git
synced 2026-05-03 12:52:11 +03:00
fix: more std::env::vars -> std::env::vars_os fixes
This commit is contained in:
@@ -214,7 +214,11 @@ impl ServerHandler for TestToolServer {
|
||||
}
|
||||
};
|
||||
|
||||
let env_snapshot: HashMap<String, String> = std::env::vars().collect();
|
||||
let env_snapshot: HashMap<String, String> = std::env::vars_os()
|
||||
.filter_map(|(key, val)| {
|
||||
Some((key.into_string().ok()?, val.into_string().ok()?))
|
||||
})
|
||||
.collect();
|
||||
let structured_content = json!({
|
||||
"echo": format!("ECHOING: {}", args.message),
|
||||
"env": env_snapshot.get("MCP_TEST_VALUE"),
|
||||
|
||||
Reference in New Issue
Block a user