mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## Why Searching the entire executable for Node shebang text can cause the installer to mistake a native Codex binary for an npm or Bun launcher. ## What changed Require an exact first-line match for `#!/usr/bin/env node` when identifying an existing Codex executable as npm- or Bun-managed. ## Testing Cover a Node launcher and an ELF fixture containing the same shebang text. Verify that only the launcher triggers the npm warning and the shell profile update when the install directory is already on `PATH`. GitOrigin-RevId: 3566a41f2431684aafaf4332a9217ab4f7ceb2a5