(host: ExtensionHost)
| 256 | } |
| 257 | |
| 258 | function 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 | |
| 267 | async function waitForPostCancelRecovery(host: ExtensionHost): Promise<void> { |
| 268 | const deadline = Date.now() + CANCEL_RECOVERY_WAIT_TIMEOUT_MS |
no test coverage detected