Skip to content

Conversation

@tybradle
Copy link
Contributor

@tybradle tybradle commented Dec 2, 2025

The crypto.randomUUID() API requires a secure context (HTTPS or specific localhost conditions). When running CodeNomad Server on 0.0.0.0:9898 or accessing via LAN/VPN, some browsers don't provide this API, causing attachment creation to fail with TypeError.

Added generateUUID() helper that uses crypto.randomUUID() when available, with a Math.random()-based UUID v4 fallback for compatibility.

Fixes file and agent attachment creation in the @ mention picker when running in headless server mode.

The crypto.randomUUID() API requires a secure context (HTTPS or specific
localhost conditions). When running CodeNomad Server on 0.0.0.0:9898 or
accessing via LAN/VPN, some browsers don't provide this API, causing
attachment creation to fail with TypeError.

Added generateUUID() helper that uses crypto.randomUUID() when available,
with a Math.random()-based UUID v4 fallback for compatibility.

Fixes file and agent attachment creation in the @ mention picker when
running in headless server mode.
@shantur
Copy link
Collaborator

shantur commented Dec 3, 2025

Thanks for the PR, would it be possible to resolve conflicts with latest dev.

@shantur shantur merged commit 91ab2d5 into NeuralNomadsAI:dev Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants