Skip to content

[Feature Request] Heartbeat Vercel AI SDK streamed model calls only on the timer #515

Closed

Description

@campoy

Is your feature request related to a problem? Please describe.

invokeModelStreaming heartbeats on every stream part, on top of its heartbeat timer. The SDK sends the first heartbeat at once, so every streamed call sends one, however short it is. In Temporal Cloud, that heartbeat is an Action.

It also means heartbeatTimeout: 0 doesn't turn heartbeats off for streamed calls. They still heartbeat on each part.

This breaks the rule from #491: heartbeats come only from the timer, every half of the timeout, starting half the timeout into the call.

Describe the solution you'd like

Remove the per-part heartbeat. The timer already beats every half of the timeout while the call runs, so a slow stream still heartbeats in time. A call shorter than 5 seconds (half the 10-second default) then sends no heartbeat, and heartbeatTimeout: 0 sends none at all.

Additional context

The other two model Activities, invokeModel and invokeEmbeddingModel, already heartbeat only on the timer.

Activity

  1. added
    enhancement
    on Nov 13, 2026
  2. added a commit that references this issue on Nov 15, 2026
    6348259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions