MCPcopy Create free account
hub / github.com/experdot/pointer / initRequestState

Method initRequestState

src/main/aiHandler.ts:28–40  ·  view source on GitHub ↗
(
    requestId: string,
    event: Electron.IpcMainInvokeEvent,
    eventChannel: string
  )

Source from the content-addressed store, hash-verified

26 private requestStates = new Map<string, RequestState>()
27
28 private initRequestState(
29 requestId: string,
30 event: Electron.IpcMainInvokeEvent,
31 eventChannel: string
32 ): void {
33 this.requestStates.set(requestId, {
34 event,
35 eventChannel,
36 fullResponse: '',
37 fullReasoning: '',
38 status: 'running'
39 })
40 }
41
42 private cleanupRequest(requestId: string): void {
43 this.abortControllers.delete(requestId)

Callers 1

sendMessageStreamingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected