[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:
Ahmed Ibrahim authored and GitHub committed 2026-05-09 14:29:12 +03:00
1 parent ebe75bb683
commit fca81eeb5b
2 files changed
+19 -1

No files matched your search

+1 -1
View File
@@ -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()