MCPcopy Index your code
hub / github.com/xerrors/Yuxi / getThreadState

Function getThreadState

web/src/composables/useAgentThreadState.js:21–38  ·  view source on GitHub ↗
(threadId)

Source from the content-addressed store, hash-verified

19 }
20
21 const getThreadState = (threadId) => {
22 if (!threadId) return null
23 if (!chatState.threadStates[threadId]) {
24 chatState.threadStates[threadId] = {
25 isStreaming: false,
26 runStreamAbortController: null,
27 activeRunId: null,
28 runLastSeq: '0-0',
29 lastRetryableJobTry: null,
30 replyLoadingVisible: false,
31 pendingRequestId: null,
32 pendingInterrupt: null,
33 onGoingConv: createOnGoingConvState(),
34 agentState: null
35 }
36 }
37 return chatState.threadStates[threadId]
38 }
39
40 const stopThreadStream = (threadId) => {
41 if (!threadId) return

Callers 15

emitDeltaFunction · 0.85
pushChunkFunction · 0.85
finalizeRunStreamFunction · 0.85
preserveInterruptedRunFunction · 0.85
scheduleRunReconnectFunction · 0.85
startRunStreamFunction · 0.85
resumeActiveRunForThreadFunction · 0.85
resetOnGoingConvFunction · 0.85
processApprovalInStreamFunction · 0.85

Calls 1

createOnGoingConvStateFunction · 0.85

Tested by

no test coverage detected