0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Codex v0.141.0 で `web_search = "enabled"` が読めず起動できなかった時のメモ

0
Posted at

Codex CLI を v0.141.0 に更新した後、codex login が失敗するようになりました。

最初はまた OAuth や Cloudflare 周りの問題だと思っていましたが、実際には設定ファイルの互換性問題でした。

▼OAuth や Cloudflare 周りの問題
https://qiita.com/kiwsdiv/items/12be8bfea02fa862116c

発生したエラー

Error loading configuration:
/mnt/c/Users/<user>/.codex/config.toml

unknown variant `enabled`
expected one of `disabled`, `cached`, `live`

設定ファイルには以下の記述がありました。

web_search = "enabled"

対処

以下へ変更。

web_search = "live"

変更後は正常に起動しました。

環境

  • Codex CLI v0.141.0
  • Windows 11
  • WSL2 Ubuntu 24.04

起動画面:

OpenAI Codex (v0.141.0)
model: gpt-5.5 medium

原因の見立て

Codex のバージョンアップに伴い、web_search の設定値仕様が変更された可能性があります。

Codex v0.141.0
↓
config.toml 読み込み
↓
web_search = "enabled"
が不正値扱い
↓
設定パース失敗
↓
起動失敗

類似事例

現時点では同一事例を見つけられていません。

ただし、設定値として要求されている値が

disabled
cached
live

となっているため、少なくとも v0.141.0 時点では enabled は有効な設定値ではないようです。

メモ

Codex 更新後に起動できなくなった場合は、~/.codex/config.toml の互換性も確認したほうがよさそうです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?