codex process title shows as "node", should probably be "codex"
Open 💬 3 comments Opened Mar 19, 2026 by haraschax
This patch fixes:
```diff
diff --git a/codex-cli/bin/codex.js b/codex-cli/bin/codex.js
index 67ab3e2d9..3e0f8570e 100755
--- a/codex-cli/bin/codex.js
+++ b/codex-cli/bin/codex.js
@@ -7,6 +7,9 @@ import { createRequire } from "node:module";
import path from "path";
import { fileURLToPath } from "url";
+process.title = "codex";
+
// __dirname equivalent in ESM
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
```
see in image below my tmux pane one is stock codex. Pane 2 is clode. And pane 3 is my codex fork with the applied patch
<img width="800" height="490" alt="Image" src="https://github.com/user-attachments/assets/c9f36536-6a42-4c10-b06f-aafb10537952" />
3 Comments
Tried to make a PR with the patch, but it seems that I am not allowed to
I've prepared a fix for this in branch
mvanhorn:fix/process-title-codex: addsprocess.title = "codex"after imports incodex-cli/bin/codex.js. PR creation is blocked by org OAuth policy, but the branch is ready at https://github.com/mvanhorn/codex/tree/fix/process-title-codexRepro
main.nodeeven when the Codex launcher was the process users actually invoked.Root Cause
process.title = "codex", keeps the change behind a tiny helper, and adds builtin Node coverage for that helper.Validation
node --check codex-cli/bin/codex.jsnode --check codex-cli/bin/process_title.jsnode --check codex-cli/tests/process_title.test.jsnode --test codex-cli/tests/process_title.test.jsps -o pid=,comm=,command=Risk
psproof because OS-level process-title display is runtime-facing.Maintainer Pickup