-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
Description
software-agent-sdk/openhands-agent-server/openhands/agent_server/event_router.py
Lines 195 to 204 in e6872fb
| @event_router.post( | |
| "/respond_to_confirmation", responses={404: {"description": "Item not found"}} | |
| ) | |
| async def respond_to_confirmation( | |
| request: ConfirmationResponseRequest, | |
| event_service: EventService = Depends(get_event_service), | |
| ) -> Success: | |
| """Accept or reject a pending action in confirmation mode.""" | |
| await event_service.respond_to_confirmation(request) | |
| return Success() |
We are using the API described above. When request.accept = False, the pause function is currently being called; however, it should instead call the reject_pending_actions function.
Acceptance Criteria:
- When the API is invoked with request.accept = False, the reject_pending_actions function must be called.