Browser launches leave zombie processes on Linux

オープン 初心者向け
#62,286 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
83/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
cli

調査の方向性

codex-rs/Cargo.toml の webbrowser 依存関係のエントリーと、codex-rs/Cargo.lock に記録された解決済みバージョンから確認します。issue では、上流のバージョン 1.2.7 が修正として示されています。依存関係を更新し、ロックファイルで 1.2.7 以降に解決されることを確認してください。更新した依存関係によって Linux 上のブラウザの子プロセスがクリーンアップされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug CLI performance
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?
  1. On Linux, set the browser environment variable before starting Codex: export BROWSER=/usr/bin/echo
  2. Start Codex and trigger an action that opens a browser (click a link, multiple times).
  3. 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?

主要言語
Rust
スター
136k
フォーク
21.5k
平均マージ
1分
マージ済み PR(30日)
998

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openai/codex のほかの issue

openai/codex の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。