Skip to content

feat(codex): config を template 化しマシン固有の既定を上書き可能に#64

Merged
k35o merged 1 commit into
mainfrom
codex-config-template
Jun 24, 2026
Merged

feat(codex): config を template 化しマシン固有の既定を上書き可能に#64
k35o merged 1 commit into
mainfrom
codex-config-template

Conversation

@k35o

@k35o k35o commented Jun 24, 2026

Copy link
Copy Markdown
Owner

概要

Codex 0.134.0+ で top-level profile = "..." の既定指定と [profiles.*] インラインテーブルが廃止されたため、profile を別ファイル形式へ移行する。あわせて config.toml を chezmoi template 化し、マシン固有の既定モデル/追加プロバイダを上書きできるようにした。

変更点

  • config.tomlconfig.toml.tmpl: 既定は fugu のまま。chezmoi の [data]codexDefault / codexExtraProviders が定義されたマシンでのみ、既定モデルと追加プロバイダを上書きできる。マシン固有の値はリポには載せず ~/.config/chezmoi/chezmoi.toml(各マシンローカル)で持つ。
  • fugu.config.toml / fugu-ultra.config.toml を新規追加: 新方式の <name>.config.toml として分離。codex -p fugu / codex -p fugu-ultra で明示選択する。

背景

これまで [profiles.*] インラインで profile を定義していたが、Codex 0.134.0+ ではロードエラー(legacy profile config is no longer supported)になる。新方式では $CODEX_HOME/<name>.config.toml を置き --profile <name> で base config にオーバーレイする。

検証

  • codex doctor: config ✓ loaded / parse ok
  • 既定 / -p fugu / -p fugu-ultra すべて --strict-config でモデル解決を確認

@k35o k35o force-pushed the codex-config-template branch from 4c3db05 to 175ce69 Compare June 24, 2026 08:13
Codex 0.134.0+ で top-level `profile = "..."` の既定指定と `[profiles.*]`
インラインテーブルが廃止されたため、profile を別ファイル形式へ移行する。

- config.toml を config.toml.tmpl 化。既定は fugu のまま、chezmoi の
  [data] codexDefault / codexExtraProviders が定義されたマシンでのみ
  既定モデルと追加プロバイダを上書きできるようにした(値はリポに載せない)。
- fugu / fugu-ultra を新方式の <name>.config.toml として分離。
  `codex -p fugu` / `codex -p fugu-ultra` で明示選択する。
@k35o k35o force-pushed the codex-config-template branch from 175ce69 to 2d0b772 Compare June 24, 2026 08:19
@k35o k35o merged commit c0b68b5 into main Jun 24, 2026
3 checks passed
@k35o k35o deleted the codex-config-template branch June 24, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant