MCPcopy Index your code
hub / github.com/codeaashu/claude-code / writeSdkMessages

Function writeSdkMessages

src/bridge/remoteBridgeCore.ts:813–823  ·  view source on GitHub ↗
(messages: SDKMessage[])

Source from the content-addressed store, hash-verified

811 void transport.writeBatch(events)
812 },
813 writeSdkMessages(messages: SDKMessage[]) {
814 const filtered = messages.filter(
815 m => !m.uuid || !recentPostedUUIDs.has(m.uuid),
816 )
817 if (filtered.length === 0) return
818 for (const msg of filtered) {
819 if (msg.uuid) recentPostedUUIDs.add(msg.uuid)
820 }
821 const events = filtered.map(m => ({ ...m, session_id: sessionId }))
822 void transport.writeBatch(events)
823 },
824 sendControlRequest(request: SDKControlRequest) {
825 if (authRecoveryInFlight) {
826 logForDebugging(

Callers

nothing calls this directly

Calls 3

writeBatchMethod · 0.80
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected