From c3e4f920b4e965085164d6ee0249a873ef96da77 Mon Sep 17 00:00:00 2001 From: Shijie Rao Date: Wed, 3 Dec 2025 10:23:45 -0800 Subject: [PATCH] chore: remove bun env var detect (#7534) ### Summary [Thread](https://openai.slack.com/archives/C08JZTV654K/p1764780129457519) We were a bit aggressive on assuming package installer based on env variables for BUN. Here we are removing those checks. --- codex-cli/bin/codex.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/codex-cli/bin/codex.js b/codex-cli/bin/codex.js index 805be85af8..138796e5d6 100644 --- a/codex-cli/bin/codex.js +++ b/codex-cli/bin/codex.js @@ -95,14 +95,6 @@ function detectPackageManager() { return "bun"; } - if ( - process.env.BUN_INSTALL || - process.env.BUN_INSTALL_GLOBAL_DIR || - process.env.BUN_INSTALL_BIN_DIR - ) { - return "bun"; - } - return userAgent ? "npm" : null; }