MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / createDraftThreadId

Function createDraftThreadId

apps/web/components/codex-workspace-context.tsx:92–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92function createDraftThreadId() {
93 const uuid = globalThis.crypto?.randomUUID?.();
94 if (uuid) {
95 return `draft:${uuid}`;
96 }
97 return `draft:${Date.now().toString(36)}:${Math.random().toString(36).slice(2, 10)}`;
98}
99
100function parseActiveThreadId(pathname: string | null) {
101 if (!pathname) {

Callers 1

CodexWorkspaceProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected