mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
[codex] Lowercase TUI service tier commands (#21906)
## Why Service-tier slash commands are built from model-catalog metadata. If the catalog returns a name like `Fast`, the TUI currently exposes `/Fast` and exact dispatch expects that casing, which is inconsistent with the lowercase command style used elsewhere. ## What - Lowercase service-tier command names when converting catalog tiers into `ServiceTierCommand` values. - Add regression coverage that seeds a catalog tier named `Fast` and expects the generated command to be `fast`. ## Testing Not run locally per repo instruction; PR CI should run the new `service_tier_commands_lowercase_catalog_names` coverage.
This commit is contained in:
1 parent
ebe75bb683
commit
fca81eeb5b
2 files changed
+19
-1
No files matched your search
@@ -88,7 +88,7 @@ impl ChatWidget {
|
||||
.into_iter()
|
||||
.map(|tier| ServiceTierCommand {
|
||||
id: tier.id,
|
||||
name: tier.name,
|
||||
name: tier.name.to_lowercase(),
|
||||
description: tier.description,
|
||||
})
|
||||
.collect()
|
||||
|
||||
Reference in new issue
Block a user