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

Function patchOverlayState

ui-tui/src/app/overlayStore.ts:60–61  ·  view source on GitHub ↗
(next: Partial<OverlayState> | ((state: OverlayState) => OverlayState))

Source from the content-addressed store, hash-verified

58export const getOverlayState = () => $overlayState.get()
59
60export const patchOverlayState = (next: Partial<OverlayState> | ((state: OverlayState) => OverlayState)) =>
61 $overlayState.set(typeof next === 'function' ? next($overlayState.get()) : { ...$overlayState.get(), ...next })
62
63/** Full reset — used by session/turn teardown and tests. */
64export const resetOverlayState = () => $overlayState.set(buildOverlayState())

Callers 15

onPatchFunction · 0.85
onCloseFunction · 0.85
onConfirmFunction · 0.85
onCancelFunction · 0.85
FloatingOverlaysFunction · 0.85
appLayout.tsxFile · 0.85
closeAgentsOverlayFunction · 0.85
openAgentsOverlayFunction · 0.85
useMainAppFunction · 0.85
flushAbandonedClarifyFunction · 0.85
useSessionLifecycleFunction · 0.85

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected