MCPcopy
hub / github.com/Dimillian/CodexMonitor / saveThreadActivity

Function saveThreadActivity

src/features/threads/utils/threadStorage.ts:91–103  ·  view source on GitHub ↗
(activity: ThreadActivityMap)

Source from the content-addressed store, hash-verified

89}
90
91export function saveThreadActivity(activity: ThreadActivityMap) {
92 if (typeof window === "undefined") {
93 return;
94 }
95 try {
96 window.localStorage.setItem(
97 STORAGE_KEY_THREAD_ACTIVITY,
98 JSON.stringify(activity),
99 );
100 } catch {
101 // Best-effort persistence; ignore write failures.
102 }
103}
104
105export function makeCustomNameKey(workspaceId: string, threadId: string): string {
106 return `${workspaceId}:${threadId}`;

Callers 2

useThreadStorageFunction · 0.90
useThreadActionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected