Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: codex module ignores CODEX_HOME when writing configuration

クローズ 初心者向け
#1,157 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@kdcokenny がすでに取り組んでいます。

2026年10月1日 から。

  • #1163 @kdcokenny による — オープン

評価

難易度
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
  1. Set CODEX_HOME=/home/coder/state/codex in the environment used by both the module's install script and the Codex CLI.
  2. Create that directory and a config.toml containing model_reasoning_effort = "high".
  3. Configure the module with base_config_toml = "model_reasoning_effort = \"medium\"" and start the workspace.
  4. Check both configuration files: $HOME/.codex/config.toml contains the module's medium setting, while $CODEX_HOME/config.toml still contains high.
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

環境構築

はじめの一歩

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

coder/registry のほかの issue

coder/registry の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

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

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