(response_type: str, request_id: str, approve: bool)
| 362 | |
| 363 | |
| 364 | def match_response(response_type: str, request_id: str, approve: bool): |
| 365 | state = pending_requests.get(request_id) |
| 366 | if not state: |
| 367 | return |
| 368 | if state.type == "shutdown" and response_type != "shutdown_response": |
| 369 | return |
| 370 | if state.type == "plan_approval" and response_type != "plan_approval_response": |
| 371 | return |
| 372 | state.status = "approved" if approve else "rejected" |
| 373 | |
| 374 | |
| 375 | def consume_lead_inbox(route_protocol=True) -> list[dict]: |
no test coverage detected