MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / idle

Method idle

ui-tui/src/app/turnController.ts:271–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269 }
270
271 idle() {
272 this.endReasoningPhase()
273 this.activeTools = []
274 this.streamTimer = clear(this.streamTimer)
275 this.bufRef = ''
276 this.pendingSegmentTools = []
277 this.segmentMessages = []
278
279 patchTurnState({
280 streamPendingTools: [],
281 streamSegments: [],
282 streaming: '',
283 subagents: [],
284 tools: [],
285 turnTrail: []
286 })
287 patchUiState({ busy: false })
288 resetFlowOverlays()
289 }
290
291 // `keepBusy` holds the session busy after interrupting so a queued message
292 // drains on the gateway's real settle edge (message.complete, suppressed

Callers 5

interruptTurnMethod · 0.95
recordErrorMethod · 0.95
recordMessageCompleteMethod · 0.95
resetMethod · 0.95
useSessionLifecycleFunction · 0.80

Calls 5

endReasoningPhaseMethod · 0.95
patchTurnStateFunction · 0.85
patchUiStateFunction · 0.85
resetFlowOverlaysFunction · 0.85
clearFunction · 0.70

Tested by

no test coverage detected