From 35e140b941619452eacb0f4d588735855ea70e66 Mon Sep 17 00:00:00 2001 From: Haileyesus Dessie <118998054+blackmammoth@users.noreply.github.com> Date: Sat, 10 Jan 2026 15:00:46 +0300 Subject: [PATCH] add a clarification comment about crypto.randomUUID() --- server/claude-sdk.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/claude-sdk.js b/server/claude-sdk.js index 5ebcd0d..8366691 100644 --- a/server/claude-sdk.js +++ b/server/claude-sdk.js @@ -37,6 +37,7 @@ const TOOL_APPROVAL_TIMEOUT_MS = parseInt(process.env.CLAUDE_TOOL_APPROVAL_TIMEO // This does not encode tool details or get shown to users; it exists so the UI // can respond to the correct pending request without collisions. function createRequestId() { + // if clause is used because randomUUID is not available in older Node.js versions if (typeof crypto.randomUUID === 'function') { return crypto.randomUUID(); }