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

Function queueMessages

source code/hooks/useInboxPoller.ts:825–843  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

useInboxPollerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected