MCPcopy
hub / github.com/21st-dev/1code / getSubChatDraft

Function getSubChatDraft

src/renderer/features/agents/lib/drafts.ts:176–181  ·  view source on GitHub ↗
(chatId: string, subChatId: string)

Source from the content-addressed store, hash-verified

174
175// Get sub-chat draft text
176export function getSubChatDraft(chatId: string, subChatId: string): string | null {
177 const globalDrafts = loadGlobalDrafts()
178 const key = getSubChatDraftKey(chatId, subChatId)
179 const draft = globalDrafts[key] as DraftContent | undefined
180 return draft?.text || null
181}
182
183// Save sub-chat draft
184export function saveSubChatDraft(

Callers

nothing calls this directly

Calls 2

loadGlobalDraftsFunction · 0.85
getSubChatDraftKeyFunction · 0.85

Tested by

no test coverage detected