MCPcopy Create free account
hub / github.com/codeaashu/claude-code / queueMessages

Function queueMessages

src/hooks/useInboxPoller.ts:823–841  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

821
822 // Helper to queue messages in AppState for later delivery
823 const queueMessages = () => {
824 setAppState(prev => ({
825 ...prev,
826 inbox: {
827 messages: [
828 ...prev.inbox.messages,
829 ...regularMessages.map(m => ({
830 id: randomUUID(),
831 from: m.from,
832 text: m.text,
833 timestamp: m.timestamp,
834 status: 'pending' as const,
835 color: m.color,
836 summary: m.summary,
837 })),
838 ],
839 },
840 }))
841 }
842
843 if (!isLoading && !focusedInputDialog) {
844 // IDLE: Submit as new turn immediately

Callers 1

useInboxPollerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected