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

Function parseActiveThreadId

apps/web/components/codex-workspace-context.tsx:100–106  ·  view source on GitHub ↗
(pathname: string | null)

Source from the content-addressed store, hash-verified

98}
99
100function parseActiveThreadId(pathname: string | null) {
101 if (!pathname) {
102 return null;
103 }
104 const match = pathname.match(/^\/sessions\/codex\/([^/]+)$/u);
105 return match?.[1] ? decodeURIComponent(match[1]) : null;
106}
107
108function areThreadListsEqual(
109 left: WebCodexThreadSummary[],

Callers 1

CodexWorkspaceProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected