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

Function getPendingImages

cli/src/utils/__tests__/pending-attachments.test.ts:13–19  ·  view source on GitHub ↗

Helper to get only image attachments from the unified pendingAttachments array

()

Source from the content-addressed store, hash-verified

11
12/** Helper to get only image attachments from the unified pendingAttachments array */
13function getPendingImages(): PendingImageAttachment[] {
14 return useChatStore
15 .getState()
16 .pendingAttachments.filter(
17 (att): att is PendingImageAttachment => att.kind === 'image',
18 )
19}
20
21describe('pending-attachments', () => {
22 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected