MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / addClipboardPlaceholder

Function addClipboardPlaceholder

cli/src/utils/pending-attachments.ts:125–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 * Use with addPendingImageFromFile's replacePlaceholder parameter.
124 */
125export function addClipboardPlaceholder(): string {
126 const placeholderPath = `clipboard:pending-${++clipboardPlaceholderCounter}`
127 useChatStore.getState().addPendingImage({
128 path: placeholderPath,
129 filename: 'clipboard image',
130 status: 'processing',
131 })
132 return placeholderPath
133}
134
135/**
136 * Add a pending image with an error note (e.g., unsupported format, not found).

Callers 2

ChatFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected