fix(copilot): replace crypto.randomUUID() with generateId() per project rule (#4268)

AGENTS.md / CLAUDE.md forbid crypto.randomUUID() (non-secure contexts throw
TypeError in browsers). Four copilot server-side files still violated this
rule, left over after PR #3397 polyfilled the client.

Routes through request lifecycle, OAuth draft insertion, persisted message
normalization, and table-row generation now use generateId from @sim/utils/id,
which is a drop-in UUID v4 producer that falls back to crypto.getRandomValues
when randomUUID is unavailable.

Refs #3393.
This commit is contained in:
d 🔹
2026-04-25 02:59:48 +08:00
committed by GitHub
parent 56044776d5
commit efc868263a

Diff Content Not Available