@@ -382,24 +382,25 @@ export const TraitsMenuContent = memo(function TraitsMenuContentImpl({
382382
383383/**
384384 * Build the traits trigger's text label plus whether the fast-mode bolt should
385- * render. Fast mode is a lightning bolt when on and nothing at all when off —
386- * "Normal" is the near-universal case and isn't worth the horizontal space. The
387- * one exception is when fast mode is the only trait, where a bare bolt (or bare
388- * chevron) would leave the trigger unreadable.
385+ * render. Claude and Cursor expose fast mode as a boolean, while Codex exposes
386+ * it through the Standard/Fast service tiers. In either form, fast mode is a
387+ * lightning bolt when on and nothing at all when off. The one exception is when
388+ * fast mode is the only trait, where a bare bolt (or bare chevron) would leave
389+ * the trigger unreadable.
389390 */
390391export function buildTraitsTriggerDisplay ( input : {
391392 provider : ProviderDriverKind ;
392393 descriptors : ReadonlyArray < ProviderOptionDescriptor > ;
393394 primarySelectDescriptorId : string | null ;
394395 ultrathinkPromptControlled : boolean ;
395396} ) : { label : string ; showFastModeIcon : boolean } {
396- let hasFastMode = false ;
397+ let fastModeFallbackLabel : string | null = null ;
397398 let fastModeEnabled = false ;
398399 const labels : Array < string > = [ ] ;
399400 for ( const descriptor of input . descriptors ) {
400401 if ( descriptor . id === "fastMode" && descriptor . type === "boolean" ) {
401- hasFastMode = true ;
402402 fastModeEnabled = descriptor . currentValue === true ;
403+ fastModeFallbackLabel = fastModeEnabled ? "Fast" : "Normal" ;
403404 continue ;
404405 }
405406 if (
@@ -410,8 +411,10 @@ export function buildTraitsTriggerDisplay(input: {
410411 const currentValue = getProviderOptionCurrentValue ( descriptor ) ;
411412 const fastTier = descriptor . options . find ( ( { label } ) => label === "Fast" ) ;
412413 if ( fastTier && ( currentValue === "default" || currentValue === fastTier . id ) ) {
413- hasFastMode = true ;
414414 fastModeEnabled = currentValue === fastTier . id ;
415+ fastModeFallbackLabel =
416+ descriptor . options . find ( ( { id } ) => id === currentValue ) ?. label ??
417+ ( fastModeEnabled ? "Fast" : "Normal" ) ;
415418 continue ;
416419 }
417420 }
@@ -429,8 +432,8 @@ export function buildTraitsTriggerDisplay(input: {
429432 // Only fall back to text when fast mode is genuinely the sole trait. Keying
430433 // off an empty label list alone would also catch descriptors that resolved to
431434 // no label at all, printing a bogus "Normal" for a model without fast mode.
432- if ( labels . length === 0 && hasFastMode ) {
433- return { label : fastModeEnabled ? "Fast" : "Normal" , showFastModeIcon : false } ;
435+ if ( labels . length === 0 && fastModeFallbackLabel !== null ) {
436+ return { label : fastModeFallbackLabel , showFastModeIcon : false } ;
434437 }
435438 return { label : labels . join ( " · " ) , showFastModeIcon : fastModeEnabled } ;
436439}
0 commit comments