MCPcopy Index your code
hub / github.com/21st-dev/1code / markDraftVisible

Function markDraftVisible

src/renderer/features/agents/lib/drafts.ts:162–168  ·  view source on GitHub ↗
(draftId: string)

Source from the content-addressed store, hash-verified

160
161// Mark a draft as visible (called when user navigates away from the form)
162export function markDraftVisible(draftId: string): void {
163 const globalDrafts = loadGlobalDrafts()
164 if (globalDrafts[draftId]) {
165 ;(globalDrafts[draftId] as NewChatDraft).isVisible = true
166 saveGlobalDrafts(globalDrafts)
167 }
168}
169
170// Get sub-chat draft key
171export function getSubChatDraftKey(chatId: string, subChatId: string): string {

Callers 1

NewChatFormFunction · 0.90

Calls 2

loadGlobalDraftsFunction · 0.85
saveGlobalDraftsFunction · 0.85

Tested by

no test coverage detected