ui : keep reasoning submenu visible regardless of model state

This commit is contained in:
Aleksander Grygier
2026-08-15 22:53:26 +02:00
parent 4e97ac86eb
commit f140d848ef
2 changed files with 4 additions and 1 deletions
@@ -92,7 +92,7 @@
<ChevronRight class="{ICON_CLASS_DEFAULT} shrink-0" />
{/if}
{#if reasoning.thinkingEnabled}
{#if reasoning.isReasoningActive}
<Lightbulb class="{ICON_CLASS_DEFAULT} shrink-0 text-amber-400" />
{:else if reasoning.isOff}
<LightbulbOff class="{ICON_CLASS_DEFAULT} shrink-0 text-muted-foreground" />
@@ -92,6 +92,9 @@ export function useReasoningMenu(): UseReasoningMenuReturn {
get thinkingEnabled() {
return thinkingEnabled;
},
get isReasoningActive() {
return isReasoningActive;
},
tokenLabel(level: ReasoningEffortLevel): string | null {
if (level.value === ReasoningEffort.DEFAULT) return 'Model default';