(current: ThinkingMode)
| 22 | |
| 23 | // Cycle order matches the slash command: show → hide → show. |
| 24 | export function nextThinkingMode(current: ThinkingMode): ThinkingMode { |
| 25 | const idx = MODES.indexOf(current) |
| 26 | return MODES[(idx + 1) % MODES.length] ?? "show" |
| 27 | } |
| 28 | |
| 29 | export function useThinkingMode() { |
| 30 | const kv = useKV() |