LearnNewsExamplesServices
Frontmatter
id7828
titleUse crypto.randomUUID() for windowId generation
stateClosed
labels
enhancementai
assigneestobiu
createdAtNov 20, 2025, 9:49 PM
updatedAtNov 20, 2025, 9:54 PM
githubUrlhttps://github.com/neomjs/neo/issues/7828
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 20, 2025, 9:54 PM

Use crypto.randomUUID() for windowId generation

Closed v11.8.0 enhancementai
tobiu
tobiu commented on Nov 20, 2025, 9:49 PM

In src/worker/Manager.mjs, the windowId is currently generated using new Date().getTime(). This can be improved by using crypto.randomUUID(), providing a more robust unique identifier.

Proposed Change: Update the windowId config in Neo.worker.Manager to prefer crypto.randomUUID(). Update the JSDoc type definition to reflect that windowId now is a String.

Files to Modify:

  • src/worker/Manager.mjs
tobiu added the enhancement label on Nov 20, 2025, 9:49 PM
tobiu added the ai label on Nov 20, 2025, 9:49 PM
tobiu assigned to @tobiu on Nov 20, 2025, 9:49 PM
tobiu referenced in commit b583820 - "Use crypto.randomUUID() for windowId generation #7828" on Nov 20, 2025, 9:53 PM
tobiu closed this issue on Nov 20, 2025, 9:54 PM