MCPcopy Create free account
hub / github.com/codeaashu/claude-code / hashMessage

Function hashMessage

src/utils/telemetry/betaSessionTracing.ts:136–139  ·  view source on GitHub ↗

* Generate a hash for a message based on its content.

(message: APIMessage)

Source from the content-addressed store, hash-verified

134 * Generate a hash for a message based on its content.
135 */
136function hashMessage(message: APIMessage): string {
137 const content = jsonStringify(message.message.content)
138 return `msg_${shortHash(content)}`
139}
140
141// Regex to detect content wrapped in <system-reminder> tags
142const SYSTEM_REMINDER_REGEX =

Callers 1

Calls 2

jsonStringifyFunction · 0.85
shortHashFunction · 0.85

Tested by

no test coverage detected