* 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)
| 592 | * already-computed transcript hash. |
| 593 | */ |
| 594 | function 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 |