bug: codex module ignores CODEX_HOME when writing configuration
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 86/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bash
- 領域
- tooling
調査の方向性
registry/coder-labs/modules/codex/scripts/install.sh.tftpl の populate_config_toml() から始め、次に CODEX_HOME を設定した状態で再現し、両方の設定ファイルを確認します。CODEX_HOME が空でない場合はモジュールが $CODEX_HOME/config.toml に書き込み、それ以外の場合は $HOME/.codex/config.toml にフォールバックすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Current Behavior
The coder-labs/codex module writes its configuration to $HOME/.codex/config.toml, even when CODEX_HOME points to another directory.
Codex reads its user configuration from $CODEX_HOME/config.toml. As a result, the module can finish successfully while writing settings that the CLI does not use. This affects workspaces that store Codex state in a custom or persistent directory: the module's model settings, MCP servers, trusted projects and AI Gateway configuration are written to the wrong location.
Steps to Reproduce
- Set
CODEX_HOME=/home/coder/state/codexin the environment used by both the module's install script and the Codex CLI. - Create that directory and a
config.tomlcontainingmodel_reasoning_effort = "high". - Configure the module with
base_config_toml = "model_reasoning_effort = \"medium\""and start the workspace. - Check both configuration files:
$HOME/.codex/config.tomlcontains the module'smediumsetting, while$CODEX_HOME/config.tomlstill containshigh.
Expected Behavior
The module should write its configuration under CODEX_HOME when it is set to a non-empty value, and use $HOME/.codex otherwise.
Currently, populate_config_toml() hardcodes the default path rather than following Codex's configuration directory.
- 主要言語
- HCL
- スター
- 81
- フォーク
- 169
- 平均マージ
- 3日 7時間
- マージ済み PR(30日)
- 30
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/registry のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
coder/registry#1142 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 68/100
coder/registry#1120 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Dependency Dashboardオープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
coder/registry#1195 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
coder/registry#1187 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
sharkymark/templates/docker-claude: workspaces start with an error because tmux is not installedオープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
coder/registry#1186 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
似ている issue
-
documentation enhancement SIEM
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ADORSYS-GIS/wazuh-agent-status#265 ·
メンテナーはふだん 2 日以内に返信
-
syncheck regressionオープンregression
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dracut-ng/dracut#2805 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
external-plugin ready-for-review third party
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/awesome-copilot#5713 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
manuscript-lang/manuscript#1625 ·
メンテナーはふだん 1 日以内に返信
-
🐞 bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
nannou-org/gantz#475 ·
メンテナーはふだん 1 日以内に返信