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

Function savePinnedThreads

src/features/threads/utils/threadStorage.ts:168–180  ·  view source on GitHub ↗
(pinned: PinnedThreadsMap)

Source from the content-addressed store, hash-verified

166}
167
168export function savePinnedThreads(pinned: PinnedThreadsMap) {
169 if (typeof window === "undefined") {
170 return;
171 }
172 try {
173 window.localStorage.setItem(
174 STORAGE_KEY_PINNED_THREADS,
175 JSON.stringify(pinned),
176 );
177 } catch {
178 // Best-effort persistence; ignore write failures.
179 }
180}
181
182export function loadDetachedReviewLinks(): DetachedReviewLinksMap {
183 if (typeof window === "undefined") {

Callers 1

useThreadStorageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected