Browser launches leave zombie processes on Linux
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 83/100
Research direction
Start with the webbrowser dependency entry in codex-rs/Cargo.toml and its resolved version in codex-rs/Cargo.lock; the issue identifies upstream version 1.2.7 as the fix. Update the dependency and check that the lockfile resolves to 1.2.7 or later. Done means the updated dependency cleans up browser child processes on Linux.
Written by the indexing model from the issue text.
Description
What version of Codex CLI is running?
codex-cli 0.162.1
What issue are you seeing?
When using Codex CLI with a custom BROWSER script, each browser launch leaves a defunct process after the script exits. These processes remain until Codex exits.
What steps can reproduce the bug?
- On Linux, set the browser environment variable before starting Codex:
export BROWSER=/usr/bin/echo - Start Codex and trigger an action that opens a browser (click a link, multiple times).
- Check the process list while Codex is still running. Each browser launch leaves a
[echo] <defunct>process.
What is the expected behavior?
Processes are cleaned up.
Additional information
This is caused by amodm/webbrowser-rs#126. The background launch path drops the child handle without waiting for it.
Codex currently specifies webbrowser = "1.2.2" in Cargo.toml, with version 1.2.4 resolved in Cargo.lock.
This is fixed upstream in 1.2.7. Could webbrowser be updated to 1.2.7 or later?
- Dominant language
- Rust
- Stars
- 136k
- Forks
- 21.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 998
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
bug extension mcp
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
app documentation skills
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
openai/codex#62895 · 1 comment ·
Maintainers usually reply within 1 day
-
app bug sandbox windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
CLI enhancement sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
Maintainers usually reply within 1 day
-
CLI config custom-model enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
topgrade-rs/topgrade#2540 ·
Maintainers usually reply within 1 day
-
Invalid JSON options for ngram and edge_ngram silently use defaultsPossibly taken @Tilendlesa claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
noemaforge/vimanam#153 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day