1 Commits
Author SHA1 Message Date
SaladDay ea420cc070 refactor(codex): split Codex TOML editing out of providerConfigUtils (#9795)
* refactor(codex): rename providerConfigUtils to codexConfigUtils

Of providerConfigUtils.ts's 1795 lines, 1567 are Codex config.toml editing
(base_url, wire_api, model, model_provider, [agents], top-level ints) and 22 of
its 26 importers only use those. Rename the file (and its tests) to say what
it is. Pure rename plus import paths; the next commit moves the four
API-key helpers back out.

* refactor: move API-key template helpers back to providerConfigUtils

getApiKeyFromConfig, applyTemplateValues, hasApiKeyField and setApiKeyInConfig
serve Claude, Codex and Gemini forms alike, so they stay in
providerConfigUtils.ts; codexConfigUtils.ts keeps only Codex TOML editing.
Code moves verbatim.
2026-11-21 19:21:22 -08:00