Skip to content

Commit 7565acf

Browse files
committed
Add note clarifying SSE disconnect behavior still applies to tasks
1 parent 0e48da0 commit 7565acf

File tree

1 file changed

+16
-0
lines changed
  • docs/specification/draft/basic/utilities

1 file changed

+16
-0
lines changed

docs/specification/draft/basic/utilities/tasks.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ This guidance is non-binding and is provisional logic intended to account for th
182182

183183
### Getting Tasks
184184

185+
<Note>
186+
187+
In the Streamable HTTP (SSE) transport, clients **MAY** disconnect from an SSE stream opened by the server in response to a `tasks/get` request at any time.
188+
189+
While this note is not prescriptive regarding the specific usage of SSE streams, all implementations **MUST** continue to comply with the existing [Streamable HTTP transport specification](../transports#sending-messages-to-the-server).
190+
191+
</Note>
192+
185193
Requestors poll for task completion by sending [`tasks/get`](/specification/draft/schema#tasks%2Fget) requests.
186194
Requestors **SHOULD** respect the `pollInterval` provided in responses when determining polling frequency.
187195

@@ -219,6 +227,14 @@ Requestors **SHOULD** continue polling until the task reaches a terminal status
219227

220228
### Retrieving Task Results
221229

230+
<Note>
231+
232+
In the Streamable HTTP (SSE) transport, clients **MAY** disconnect from an SSE stream opened by the server in response to a `tasks/result` request at any time.
233+
234+
While this note is not prescriptive regarding the specific usage of SSE streams, all implementations **MUST** continue to comply with the existing [Streamable HTTP transport specification](../transports#sending-messages-to-the-server).
235+
236+
</Note>
237+
222238
After a task completes the operation result is retrieved via [`tasks/result`](/specification/draft/schema#tasks%2Fresult). This is distinct from the initial `CreateTaskResult` response, which contains only task data. The result structure matches the original request type (e.g., `CallToolResult` for `tools/call`).
223239

224240
To retrieve the result of a completed task, requestors can send a `tasks/result` request:

0 commit comments

Comments
 (0)