-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add POST /v1/responses/{response_id}/cancel endpoint to cancel queued or in-progress background responses.
Motivation
The cancelled status already exists in the response schema but there is no API to trigger it. Users need a way to cancel background responses that are queued or still in progress.
Scope
CancelResponseRequestmodel and protocol method- Task tracking infrastructure to map response_id to asyncio.Task
- Background worker handles CancelledError gracefully
- Proper status transitions and terminal state protection (409 for completed/failed/incomplete responses)
- Idempotent cancellation support
- Integration tests covering all cancel scenarios
Tracking PR: #5051
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request