codexmate
codexmate copied to clipboard
Provider names containing dots are accepted by CLI but become unusable after TOML serialization
Impact Scope
- CLI provider creation flow (
add) - Provider listing and switching (
list,switch) - Any feature that assumes provider names round-trip correctly through
config.toml
Reproduction Steps
- Initialize a clean environment:
tmp=$(mktemp -d) HOME=$tmp USERPROFILE=$tmp node cli.js status - Add a provider whose name contains a dot:
HOME=$tmp USERPROFILE=$tmp node cli.js add foo.bar https://api.example.com/v1 sk-test - Inspect the config file:
cat "$tmp/.codex/config.toml" - List providers:
HOME=$tmp USERPROFILE=$tmp node cli.js list - Try switching to that provider:
HOME=$tmp USERPROFILE=$tmp node cli.js switch foo.bar
Expected Result
- Either names containing
.should be rejected up front, - or the provider should be stored and retrieved as the same logical name (
foo.bar).