Repository navigation
Commit aa603b1
committed
fix(gui-extensions): fall back when crypto.randomUUID is unavailable
The /btw command generated its chat id with crypto.randomUUID(), which
is undefined outside secure contexts. Opening the web UI over plain
HTTP (e.g. a LAN IP) made every /btw submission throw
"crypto.randomUUID is not a function" and surface a "Failed to send
command" toast.
Fall back to a non-cryptographic id in that case, matching the existing
fallback in packages/app/src/runtime/persistence/uuid.ts.1 parent 775d1d0 commit aa603b1
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
0 commit comments