Skip to content

Commit c58c652

Browse files
committed
SEP-2663: Clarify state retention after task cancellation
1 parent a1ed070 commit c58c652

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/seps/2663-tasks-extension.mdx

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seps/2663-tasks-extension.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,8 @@ On success, the server **MUST** acknowledge the request with an empty result. Se
489489

490490
Cancellation is **cooperative**: The request signals intent, and the server decides whether and when to honor it. A server is not obligated to actually stop the work; it is only obligated to acknowledge the request. Eventual transition to `cancelled` is not guaranteed.
491491

492+
Clients **MAY** delete all state associated with the task as soon as they send a cancellation (e.g., it no longer needs to retain the most recent `requestState` value or the list of `inputRequests` keys that it has already responded to). The client does not need to poll `tasks/get` again to wait for the task to reach the `cancelled` state.
493+
492494
The `resultType` field **MUST** be set to `"complete"` on `CancelTaskResult` as it is the standard result shape for the `tasks/cancel` request.
493495

494496
### Task Status Notifications

0 commit comments

Comments
 (0)