codexmate icon indicating copy to clipboard operation
codexmate copied to clipboard

Provider names containing dots are accepted by CLI but become unusable after TOML serialization

Open awsldev opened this issue 8 months ago • 0 comments

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

  1. Initialize a clean environment:
    tmp=$(mktemp -d)
    HOME=$tmp USERPROFILE=$tmp node cli.js status
    
  2. 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
    
  3. Inspect the config file:
    cat "$tmp/.codex/config.toml"
    
  4. List providers:
    HOME=$tmp USERPROFILE=$tmp node cli.js list
    
  5. 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).

awsldev avatar Mar 20 '26 14:03 awsldev