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

Function isNewChatDraftKey

src/renderer/features/agents/lib/drafts.ts:110–112  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

108
109// Check if a key is a new chat draft (starts with draft-)
110export function isNewChatDraftKey(key: string): boolean {
111 return key.startsWith(DRAFT_ID_PREFIX)
112}
113
114// Check if a key is a sub-chat draft (contains :)
115export function isSubChatDraftKey(key: string): boolean {

Callers 1

getNewChatDraftsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected