Files
opencode-manager/frontend/src/lib
Chris Scott f20d8ffb71 fix(frontend): add crypto.randomUUID fallback for non-secure contexts (#318)
Introduce a shared randomId() helper in frontend/src/lib/utils that uses
crypto.randomUUID when available and falls back to a unique id for
non-secure contexts (e.g. HTTP origins where Web Crypto is unavailable).
Replace the inline id generator in PromptInput and the direct
crypto.randomUUID call in GitSettings ensureCredentialId with this shared
helper so git credential save no longer throws in non-secure contexts.

- utils: add randomId() with crypto.randomUUID fallback
- PromptInput: replace local generateId with randomId for image attachment ids
- GitSettings: use randomId in ensureCredentialId
- Add unit tests for randomId covering both code paths
2026-07-23 22:51:41 -04:00
..
2026-02-15 19:48:03 -05:00
2026-02-15 19:48:03 -05:00
2026-02-15 19:48:03 -05:00