MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / loadDraft

Function loadDraft

apps/kimi-web/src/composables/useComposerDraft.ts:22–24  ·  view source on GitHub ↗
(sid: string | undefined)

Source from the content-addressed store, hash-verified

20 const { sessionId } = deps;
21
22 function loadDraft(sid: string | undefined): string {
23 return safeGetString(draftStorageKey(sid)) ?? '';
24 }
25 function saveDraft(sid: string | undefined, value: string): void {
26 const key = draftStorageKey(sid);
27 if (value) safeSetString(key, value);

Callers 1

useComposerDraftFunction · 0.85

Calls 2

safeGetStringFunction · 0.90
draftStorageKeyFunction · 0.90

Tested by

no test coverage detected