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

Function isThinkingMode

packages/tui/src/context/thinking.ts:19–21  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

17}
18
19export function isThinkingMode(value: unknown): value is ThinkingMode {
20 return typeof value === "string" && (MODES as readonly string[]).includes(value)
21}
22
23// Cycle order matches the slash command: show → hide → show.
24export function nextThinkingMode(current: ThinkingMode): ThinkingMode {

Callers 1

useThinkingModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected