MCPcopy Index your code
hub / github.com/coder/mux / computeTranscriptHash

Function computeTranscriptHash

src/node/services/agentStatusService.ts:583–585  ·  view source on GitHub ↗

* Stable hash of the transcript bytes alone. This is the input the * history-catch-up guard uses to detect "transcript unchanged since the * last look" so a freshly-bumped `observedRecency` can wait one tick for * the corresponding history write to land. Folding `streaming` in here * would make

(transcript: string)

Source from the content-addressed store, hash-verified

581 * change and bypass the guard.
582 */
583function computeTranscriptHash(transcript: string): string {
584 return createHash("sha256").update(transcript).digest("hex");
585}
586
587/**
588 * Dedup key for generation: combines the transcript hash with the

Callers 1

runForWorkspaceMethod · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected