Answer: Stream a run with GET `/v1/agents/{id}/runs/{runId}/stream` to receive Server-Sent Events (SSE). To resume after a disconnect, reconnect with `Last-Event-ID` set to the most recent received event id. Status: Confirmed Entry: tool/cursor/agents-and-automation/stream-and-resume-run Revision: 4 Digest: sha256:875f6be97b4d2ce5 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:52Z Last changed: 2026-11-20T12:36:08Z (Expired stream error: — → 410 stream_expired) Last verified: 2026-11-20T12:36:08Z Next check: 2026-11-21T12:36:08Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Stream endpoint | /v1/agents/{id}/runs/{runId}/stream | [1] | 2026-11-20 Stream type | Server-Sent Events (SSE) | [1] | 2026-11-20 Resume header | Last-Event-ID | [1] | 2026-11-20 Invalid event id error | 400 invalid_last_event_id | [1] | 2026-11-20 Retention header | X-Cursor-Stream-Retention-Seconds | [1] | 2026-11-20 Expired stream error | 410 stream_expired | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/cloud-agent/api/endpoints.md". https://cursor.com/docs/cloud-agent/api/endpoints.md Role: primary. Accessed: 2026-11-20T12:36:08Z Quote: "`/v1/agents/{id}/runs/{runId}/stream`" (Supports: Stream endpoint) Quote: "Stream Server-Sent Events (SSE) for one run." (Supports: Stream type) Quote: "To resume after a disconnect, reconnect with `Last-Event-ID` set to the most recent received event id." (Supports: Resume header) Quote: "otherwise the request returns `400 invalid_last_event_id`" (Supports: Invalid event id error) Quote: "Stream responses include the `X-Cursor-Stream-Retention-Seconds` header." (Supports: Retention header) Quote: "this endpoint may return `410 stream_expired`" (Supports: Expired stream error) Snapshot SHA-256: b95b6ed8e9b6a35f0562fb5dde8d31677b8fe30ec877ea45562cebc3ce565004 (captured 2026-11-20T12:36:07Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:36:08Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:36:08Z Last attempt: 2026-11-20T12:36:08Z Notes and limitations: Extracted automatically from a single official source (section "Stream A Run"). Related: https://latestn.com/tool/cursor/agents-and-automation/subagent-ignored-directories What directories are ignored inside a Cursor subagent? https://latestn.com/tool/cursor/agents-and-automation/test-agent-sdk-hook How do I test a Cursor Agent SDK hook? https://latestn.com/tool/cursor/agents-and-automation/test-github-agent-with-replay How do I test a Cursor GitHub agent using replay? https://latestn.com/tool/cursor/agents-and-automation/skills-vs-instructions-tools How do skills differ from instructions and tools in Cursor Agent SDK? https://latestn.com/tool/cursor/agents-and-automation/start-session-http-api How do I start a new session with the Cursor Agent SDK HTTP API? https://latestn.com/tool/cursor/agents-and-automation/start-stop-channel How do I start and stop a channel in Cursor's Agent SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:36:08Z | changed | Expired stream error: — → 410 stream_expired | [1] 2026-11-20T12:36:08Z | changed | Retention header: — → X-Cursor-Stream-Retention-Seconds | [1] 2026-11-20T12:36:08Z | changed | Invalid event id error: — → 400 invalid_last_event_id | [1] 2026-11-20T12:36:08Z | changed | Resume header: — → Last-Event-ID | [1] 2026-11-20T12:36:08Z | changed | Stream type: — → Server-Sent Events (SSE) | [1] 2026-11-20T12:36:08Z | changed | Stream endpoint: — → /v1/agents/{id}/runs/{runId}/stream | [1] 2026-11-20T12:36:08Z | changed | retention header: X-Cursor-Stream-Retention-Seconds → — | [1] 2026-11-20T12:36:08Z | changed | expired stream error: 410 stream_expired → — | [1] 2026-11-20T12:36:08Z | changed | invalid id error: 400 invalid_last_event_id → — | [1] 2026-11-20T12:36:08Z | changed | resume header: Last-Event-ID → — | [1] 2026-11-20T12:36:08Z | changed | stream endpoint: /v1/agents/{id}/runs/{runId}/stream → — | [1] 2026-11-18T12:30:17Z | changed | expired stream error: — → 410 stream_expired | [1] 2026-11-18T12:30:17Z | changed | expired error: 410 stream_expired → — | [1] 2026-11-15T12:37:53Z | changed | expired error: — → 410 stream_expired | [1] 2026-11-15T12:37:53Z | changed | retention header: — → X-Cursor-Stream-Retention-Seconds | [1] 2026-11-15T12:37:53Z | changed | invalid id error: — → 400 invalid_last_event_id | [1] 2026-11-15T12:37:53Z | changed | resume header: — → Last-Event-ID | [1] 2026-11-15T12:37:53Z | changed | stream endpoint: — → /v1/agents/{id}/runs/{runId}/stream | [1] 2026-11-15T12:37:53Z | changed | Expired stream error: 410 stream_expired → — | [1] 2026-11-15T12:37:53Z | changed | Retention header: X-Cursor-Stream-Retention-Seconds → — | [1] 2026-11-15T12:37:53Z | changed | Invalid event id error: 400 invalid_last_event_id → — | [1] 2026-11-15T12:37:53Z | changed | Resume header: Last-Event-ID → — | [1] 2026-11-15T12:37:53Z | changed | Stream endpoint: /v1/agents/{id}/runs/{runId}/stream → — | [1] 2026-11-13T03:09:52Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/stream-and-resume-run/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/agents-and-automation/stream-and-resume-run POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/stream-and-resume-run with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/stream-and-resume-run?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I stream a Cursor cloud agent run and resume the stream if it disconnects? Revision 4, last verified 2026-11-20T12:36:08Z. https://latestn.com/tool/cursor/agents-and-automation/stream-and-resume-run (accessed 2026-11-21T10:08:29Z). @misc{LatestN_tool_cursor_agents_and_automation_stream_and_resume_run_r4, title = {How do I stream a Cursor cloud agent run and resume the stream if it disconnects?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/stream-and-resume-run}}, note = {Revision 4; digest sha256:875f6be97b4d2ce5; last verified 2026-11-20T12:36:08Z; accessed 2026-11-21T10:08:29Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/agents-and-automation/stream-and-resume-run