The best way to control Claude Code, Codex and more from any computer or phone
perf(cursor): stop tracing the per-event account usage hash (#31017)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Nov 6, 2026 at 11:55 UTC
c76f94e16a5a6ba22d9f60680efe9b78fd6c64b7
1 file changed
+2
-1
packages/provider-cursor/src/server/accountUsage.ts
+2
-1
@@ -58,7 +58,8 @@ const billedEventIdentity = (...fields: readonly unknown[]) => JSON.stringify(fi
58
59
const textEncoder = new TextEncoder();
60
61
-const accountHash = Effect.fn("accountHash")(function* (value: string) {
61
+// Untraced: each usage scan hashes every billed event.
62
+const accountHash = Effect.fnUntraced(function* (value: string) {
63
const digest = yield* Digest.Digest;
64
return Hex.encode(yield* digest.digest(Digest.sha256, textEncoder.encode(value)));
65
});