MCPcopy Create free account
hub / github.com/vercel/examples / saveChatState

Function saveChatState

python/vibe-coding-ide/frontend/src/lib/persistence.ts:100–107  ·  view source on GitHub ↗
(state: PersistedChatsState)

Source from the content-addressed store, hash-verified

98}
99
100export function saveChatState(state: PersistedChatsState): void {
101 if (typeof window === 'undefined') return
102 try {
103 window.localStorage.setItem(CHAT_STORAGE_KEY, JSON.stringify(state))
104 } catch {
105 // ignore
106 }
107}
108
109export function getProjectChatThreads(
110 projectId: string

Callers 5

upsertCurrentChatThreadFunction · 0.85
upsertThreadByIdFunction · 0.85
startNewChatThreadFunction · 0.85
setCurrentChatThreadFunction · 0.85
deleteChatThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected