MCPcopy Index your code
hub / github.com/codeaashu/claude-code / mkSentinel

Function mkSentinel

src/hooks/useAssistantHistory.ts:101–111  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

99 const sentinelUuidRef = useRef(randomUUID())
100
101 function mkSentinel(text: string): SystemInformationalMessage {
102 return {
103 type: 'system',
104 subtype: 'informational',
105 content: text,
106 isMeta: false,
107 timestamp: new Date().toISOString(),
108 uuid: sentinelUuidRef.current,
109 level: 'info',
110 }
111 }
112
113 /** Prepend a page at the front, with scroll-anchor snapshot for non-initial.
114 * Replaces the sentinel (always at index 0 when present) in-place. */

Callers 1

useAssistantHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected