From 77b017f67dc37415f6949c452546b1df906c212c Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Thu, 5 Jun 2025 22:11:02 -0700 Subject: [PATCH] fix: truncate auth.json file before rewriting it (#1231) This was missed in https://github.com/openai/codex/pull/1212. Caught by @rizwankce in https://github.com/openai/codex/discussions/1174#discussioncomment-13377475. --- codex-rs/login/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/login/src/lib.rs b/codex-rs/login/src/lib.rs index 34c88f58..390af74a 100644 --- a/codex-rs/login/src/lib.rs +++ b/codex-rs/login/src/lib.rs @@ -75,7 +75,7 @@ pub async fn try_read_openai_api_key(codex_home: &Path) -> std::io::Result