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

Function capturePendingAttachments

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

Source from the content-addressed store, hash-verified

350 * without duplicating state handling logic in multiple callers.
351 */
352export function capturePendingAttachments(): PendingAttachment[] {
353 const pendingAttachments = [...useChatStore.getState().pendingAttachments]
354 if (pendingAttachments.length > 0) {
355 useChatStore.getState().clearPendingAttachments()
356 }
357 return pendingAttachments
358}
359
360

Callers 4

createSkillCommandFunction · 0.90
routeUserPromptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected