Description
The JSON output for commit-echo config --json is described in code as script-friendly, but the provider field is currently rendered as a human-facing label like OpenAI or Custom (OpenAI-compatible) rather than the saved provider key.
Location
src/commands/config.ts:112
src/commands/config.ts:124
Problematic code
function formatProvider(config: Config): string {
provider: formatProvider(config),
Suggested fix
Return the raw provider key in JSON output and keep the friendly label only for interactive CLI output. If backward compatibility matters, an additional field such as providerLabel could preserve both forms.
Impact
Scripts cannot reliably round-trip or compare provider values against config keys.
Description
The JSON output for
commit-echo config --jsonis described in code as script-friendly, but theproviderfield is currently rendered as a human-facing label likeOpenAIorCustom (OpenAI-compatible)rather than the saved provider key.Location
src/commands/config.ts:112src/commands/config.ts:124Problematic code
Suggested fix
Return the raw provider key in JSON output and keep the friendly label only for interactive CLI output. If backward compatibility matters, an additional field such as
providerLabelcould preserve both forms.Impact
Scripts cannot reliably round-trip or compare provider values against config keys.