mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-07-01 18:13:03 +08:00
add a clarification comment about crypto.randomUUID()
This commit is contained in:
@@ -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
|
// 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.
|
// can respond to the correct pending request without collisions.
|
||||||
function createRequestId() {
|
function createRequestId() {
|
||||||
|
// if clause is used because randomUUID is not available in older Node.js versions
|
||||||
if (typeof crypto.randomUUID === 'function') {
|
if (typeof crypto.randomUUID === 'function') {
|
||||||
return crypto.randomUUID();
|
return crypto.randomUUID();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user