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

Function computeDedupHash

src/node/services/agentStatusService.ts:594–599  ·  view source on GitHub ↗

* Dedup key for generation: combines the transcript hash with the * streaming bit, because `streaming` changes the prompt's tense guidance * (and therefore the generated status). Same transcript + different * streaming → must regenerate. Cheap: hashes a 3-byte prefix + the * already-computed tra

(transcriptHash: string, streaming: boolean)

Source from the content-addressed store, hash-verified

592 * already-computed transcript hash.
593 */
594function computeDedupHash(transcriptHash: string, streaming: boolean): string {
595 return createHash("sha256")
596 .update(streaming ? "S1\n" : "S0\n")
597 .update(transcriptHash)
598 .digest("hex");
599}
600
601/**
602 * Generic non-informative status messages. Even with the prompt steering

Callers 1

runForWorkspaceMethod · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected