[Bug]: ego-browser launched by Codex registers as com.openai.codex Foreground app; duplicate Dock icons and inconsistent badges
Affected component
Native ego-browser CLI / macOS application registration when launched from Codex Desktop.
What happened?
During investigation of duplicate ChatGPT/Codex Dock icons, a minimal, documented ego-browser nodejs invocation was registered by macOS as a second ChatGPT / com.openai.codex / Foreground application, although its executable was the Ego CLI.
The visible symptoms included:
- A pinned ChatGPT icon without a running indicator while other identical icons had running indicators.
- Multiple Dock entries for the same application path and bundle identifier.
- A user-provided screenshot showing simultaneous badge counts 3 and 2 on two identical ChatGPT icons, plus another identical icon without a badge.
The CLI registration behavior below is reproducible. The exact mapping from each visible Dock icon/badge to a PID, and the cause of the divergent badge counts, have not been established.
Environment and version verification
- macOS 27.2, build 26B5091g; Apple Silicon arm64.
- Ego Lite 0.5.1.13 (CFBundleVersion 5.1.13), bundle ID
com.citrolabs.ego.lite. - ChatGPT/Codex Desktop 26.928.31416, build 12553; installed at
/Applications/ChatGPT.app, bundle IDcom.openai.codex. ~/.local/bin/ego-browseris a symlink to:/Applications/ego lite.app/Contents/Frameworks/ego Framework.framework/Versions/0.5.1.13/Helpers/ego-browser.- Bundled and agent-installed
SKILL.mdboth declare version 2.0.0, date 2026-09-09. Both are byte-identical to main at dca7003349c5f7132189ba00547cbbd7ff8e597e, SHA-2569402bf03db895209a755d5e2af9b436dbf98eed0911907110a4ea482c30632de. - Of the 20 files in the Skill directory, 19 match that upstream commit. The only difference is the two DMG URLs in
scripts/install.sh(plainegolite.dmgversusegolite-fHoqgZ74bOEM.dmg). Read-only HEAD requests to both arm64 URLs on 2026-10-02 returned version 0.5.1.13 and the same published SHA-256ce92f00c685e3ae1b3e793ba26804ded88338baf204da77355e947da666f3605; the installers were not downloaded or installed.
Steps to reproduce
- From a Codex Desktop local shell-execution tool, run the documented heredoc form:
ego-browser nodejs <<'EOF' console.log('HEREDOC_PROBE:' + process.pid); await new Promise(resolve => setTimeout(resolve, 15000)); EOF - While the command is still running, inspect the ego-browser CLI PID from another shell/tool call:The PID printed by JavaScript belongs to the embedded Node runtime; it is not necessarily the CLI PID.
for pid in $(pgrep -x ego-browser); do lsappinfo info -only name,bundleid,bundlepath,executablepath,pid,applicationtype "$pid" done - The newly started CLI is reported as ChatGPT,
com.openai.codex, andForeground. - The documented eval form also reproduced the same registration:
ego-browser nodejs -e 'console.log("EVAL_PROBE:" + process.pid); await new Promise(resolve => setTimeout(resolve, 15000));'
These scripts create no TaskSpace or Page and request no navigation, browser action, login, or content change. Both probes exited normally with status 0 and their CLI processes disappeared. Registration must be inspected during execution; checking only after exit misses it.
Observed native registration
Sanitized excerpt from lsappinfo for each new CLI process:
"ChatGPT" ASN:<per-process ASN>:
bundleID="com.openai.codex"
bundle path="/Applications/ChatGPT.app"
executable path="<user-home>/.local/bin/ego-browser"
pid = <cli-pid> !cgsConnection !signalled type="Foreground"AppKit NSWorkspace.runningApplications also reported the longer-lived CLI with activationPolicy == 0, the same bundle ID/path as the real ChatGPT application, and the Ego CLI executable path.
A one-second sample of that longer-lived CLI showed its main thread in -[NSApplication run] and the AppKit event loop. This is an observation, not proof that its browser task had completed or that the process was hung; it was not terminated.
Expected behavior
A CLI used for browser automation should not register as an additional foreground instance of the host ChatGPT/Codex application or produce misleading host-app Dock identity/state.
Please investigate native CLI application identity, activation/registration policy, and lifecycle cleanup. A supported workaround would also help.
Additional context / limits
- A second Mac with the same OS, Ego, and Codex versions also had a pinned and a recent ChatGPT Dock entry pointing to the same bundle ID and application URL. At the time of that snapshot it had only one regular ChatGPT instance and no running Ego CLI. The origin of those retained duplicate entries is not proven.
- No Terminal/non-Codex-host or different-macOS-version control test has been performed, so this report does not assign exclusive responsibility to Ego, Codex, or macOS.
- Business browser operations and TaskSpace cleanup are not required to reproduce the foreground-registration behavior. Why one older CLI remained alive is a separate unresolved question.
- Existing issues were searched for Dock, foreground, badge, com.openai.codex, duplicate icons, and LaunchServices. #284 and #347 appear adjacent but describe different symptoms.
- No application binaries, signatures, Skill files, Dock settings, or existing user task processes were changed as part of preparing this report.
Source: citrolabs/ego-lite