Files
apes-sidebar/tests
Menghuan1918 ddfcb67017 fix(client): mint tab ids without crypto.randomUUID (closes #1166)
Side Chat and the bottom terminal called crypto.randomUUID() unguarded. In an insecure context — a GUI served over plain http:// on a LAN address — that throws, so the host left a dead data-slot-error instead of a tab. Mint both ids through one local freshId() helper: randomUUID when available, otherwise a base36 timestamp plus two getRandomValues draws (getRandomValues is exempt from the secure-context restriction). The helper stays internal; the public service surface is unchanged.

The regression test drives the real built-in createTab factories with randomUUID removed and checks unique ids plus a non-empty meta[INSTANCE_FIELD].
2026-11-18 00:07:48 +08:00
..