MCPcopy Create free account
hub / github.com/anomalyco/opencode / nextThinkingMode

Function nextThinkingMode

packages/tui/src/context/thinking.ts:24–27  ·  view source on GitHub ↗
(current: ThinkingMode)

Source from the content-addressed store, hash-verified

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

Callers 1

SessionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected