MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / patchTurnState

Function patchTurnState

ui-tui/src/app/turnStore.ts:38–39  ·  view source on GitHub ↗
(next: Partial<TurnState> | ((state: TurnState) => TurnState))

Source from the content-addressed store, hash-verified

36 )
37
38export const patchTurnState = (next: Partial<TurnState> | ((state: TurnState) => TurnState)) =>
39 $turnState.set(typeof next === 'function' ? next($turnState.get()) : { ...$turnState.get(), ...next })
40
41export const toggleTodoCollapsed = () => patchTurnState(state => ({ ...state, todoCollapsed: !state.todoCollapsed }))
42

Callers 15

clearReasoningMethod · 0.85
endReasoningPhaseMethod · 0.85
idleMethod · 0.85
interruptTurnMethod · 0.85
pruneTransientMethod · 0.85
syncReasoningSegmentMethod · 0.85
flushStreamingSegmentMethod · 0.85
recordTodosMethod · 0.85
pushInlineDiffSegmentMethod · 0.85
pushActivityMethod · 0.85

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected