MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / isResumableState

Function isResumableState

apps/cli/src/commands/cli/stdin-stream.ts:258–265  ·  view source on GitHub ↗
(host: ExtensionHost)

Source from the content-addressed store, hash-verified

256}
257
258function isResumableState(host: ExtensionHost): boolean {
259 const agentState = host.client.getAgentState()
260 return (
261 agentState.isWaitingForInput &&
262 typeof agentState.currentAsk === "string" &&
263 RESUME_ASKS.has(agentState.currentAsk)
264 )
265}
266
267async function waitForPostCancelRecovery(host: ExtensionHost): Promise<void> {
268 const deadline = Date.now() + CANCEL_RECOVERY_WAIT_TIMEOUT_MS

Callers 2

runStdinStreamModeFunction · 0.85

Calls 2

hasMethod · 0.65
getAgentStateMethod · 0.45

Tested by

no test coverage detected