AI SDK SSE heartbeat vs Sume jobs_wait 55s slices
AI SDK 7.0.123 adds optional SSE heartbeats for idle UI streams. Sume's jobs_wait is capped at 55s per call, so you still repeat it with the same ids.

The AI SDK heartbeat keeps your browser-facing UI message stream open while it is idle. It does not change how long one Sume jobs_wait call may block. Over remote MCP each call holds at most 55 seconds, so a long video needs several calls with the same job ids.
The release note is from the Vercel AI releases page (ai@7.0.123: "keep idle UI message streams open with optional SSE heartbeats"). Job behavior is from Sume's Jobs and results, read 2026-09-30. The release note gives no option names, so see the package docs for how to enable it.
Which connection does each one affect?
| Limit | Where it lives | What you do |
|---|---|---|
| Idle UI message stream | Between your server and the browser | Enable the optional SSE heartbeat |
jobs_wait slice | One MCP call to Sume, max 55s (default 50) | On wait_slice_expired, call again |
What do I do when a slice expires?
Retry jobs_wait with the same ids. The docs say never to resubmit the paid create. Resubmitting is the costly mistake, because the first job is still running.
What if I wait on several jobs?
Use job_ids (1 to 20) in one batch wait. With wait_for: "any", the response still reports every id, and the remaining jobs continue and still bill. Related: closing the MCP client in onEnd.
Can a heartbeat make a wait longer?
Nothing in either source says so. The docs add that an HTTP request held for 600 seconds dies at the edge with a 502 or Transport send error before it can answer, which is why the server caps slices.
Sources
Related posts
More in Developers
- Vercel function max duration 800s: Sume wait budget
Vercel Pro and Enterprise allow 800s, with 1800s in beta. Sume still caps a blocking wait at 30s, so video jobs need a poll loop with its own deadline.
- Vercel Queues retry can resubmit a paid Sume job
A Vercel Queues consumer that times out is redelivered, and maxDeliveries is unlimited by default. Reuse one Idempotency-Key per message so Sume bills once.
- Vercel rewrite to an external API times out at 120 seconds
Vercel proxied rewrites to an external destination time out at 120 seconds with ROUTER_EXTERNAL_TARGET_ERROR. A Sume async submit returns at once.
- Video 1.0 4k resolution error: only 720p and 1080p on that URL
Video 1.0 accepts 720p (default) and 1080p from its legacy vocabulary and rejects 4k. For 4K send a sume/auto request to POST /v1/videos instead.
Written by Sume