[Bug] Codex config still writes removed disable_response_storage, causing startup warning
Summary
magpie 0.1.4291 still writes disable_response_storage = true into
~/.codex/config.toml when connecting Codex. Codex CLI 0.169.0 no longer
recognizes this key and prints a startup warning on every launch.
Environment
- magpie 0.1.4291 (current latest release)
- Codex CLI 0.169.0 (
codex-cli 0.169.0) - Linux x86_64
Details
Codex removed disable_response_storage in openai/codex#3212 (v0.30.0) and now
always sends store: false. The key has no replacement and is ignored by
current Codex.
magpie still emits:
disable_response_storage = true
As a result Codex reports:
Codex is ignoring 1 unrecognized configuration setting.
user (~/.codex/config.toml): `disable_response_storage` is ignored.
codex --strict-config turns this into a hard failure.
Steps to reproduce
- Connect Codex through magpie so magpie rewrites
~/.codex/config.toml. - Inspect the generated config; it contains
disable_response_storage = true. - Launch Codex or run
codex doctor; the startup warning appears.
Expected
- Do not write
disable_response_storagefor Codex. - Optionally remove the legacy key during magpie's config sync/migration.
- Add a regression test that generated Codex config contains no removed/deprecated keys.
Notes
This is warning-only today and low priority. I found the same compatibility note in a comment on #994, but filed separately because #994 is about provider-id/login behavior and this is a small, separately fixable config cleanup.
谢谢报告。查下来这一行不是 magpie 写的:
- magpie 的任何版本都没有写过
disable_response_storage(git log --all -S disable_response_storage在所有提交里都找不到)。Codex 在 0.30.0 已经去掉了这个键(openai/codex#3212),magpie 支持的 Codex 都比这新,没有哪条路径需要它。 - 它来自 CC Switch 4.0.28 之前 的 Codex 预设/模板(有些中转站的接入文档也让手动加这行)。CC Switch 4.0.28 起不再写,并会在下一次切换时清掉它。magpie 导入 CC Switch 时只读模型提供方,不会把它带进来。
- magpie 同步配置时会保留你自己
config.toml里的其他行,所以这行一直留着。因为没法证明是 magpie 写的,magpie 不会替你删它。
解决办法(二选一):
- 把 CC Switch 升级到 4.0.28 或更高,再切换一次;
- 或者直接在
~/.codex/config.toml里删掉disable_response_storage = true这一行。
另外加了一个守护测试(c4d64a70b):用 Codex 0.169.0 自己的 config schema 检查 magpie 写出的 Codex 配置(原地接入和 magpie.config.toml 两种方式),只要出现 Codex 不认识或已删除的键,测试就会失败。
删掉那一行后 codex --strict-config 能正常启动的话,麻烦回复一下,我再关闭这个 issue。
抱歉,是我误报了,给你添麻烦了。🙏
确认这一行确实不是 magpie 写的:我 WSL 里装的是 CC Switch 3.16.5(早于 4.0.28),disable_response_storage = true 是它早期 Codex 预设留下的。重装 Codex 后该键不再出现、警告也随之消失,我之前误以为是 magpie 0.1.4291 写入的。
目前我已经在 WSL 内卸载了 CC Switch 并清理了它的配置,~/.codex/config.toml 中不再包含该键;Codex 0.169.0 下运行 codex --strict-config doctor 可以正常加载配置(config.toml parse ok,exit 0)。
感谢你耐心排查,也感谢补充的守护测试。这个 issue 可以关闭了。