Skip to content

language_models: Activate StreamEnded support in completion streams for Cloud provider#49337

Merged
tomhoule merged 1 commit intomainfrom
tomhoule-ytpwmplvsxrr
Feb 18, 2026
Merged

language_models: Activate StreamEnded support in completion streams for Cloud provider#49337
tomhoule merged 1 commit intomainfrom
tomhoule-ytpwmplvsxrr

Conversation

@tomhoule
Copy link
Copy Markdown
Contributor

@tomhoule tomhoule commented Feb 17, 2026

Now that the cloud-side StreamEnded support has landed, enable it on the Zed client:

  • Send the x-zed-client-supports-stream-ended-request-completion-status header so cloud knows to send StreamEnded status events.
  • Track whether StreamEnded was received during the stream.
  • Emit StreamEndedUnexpectedly error when the stream closes without a StreamEnded status, indicating the response was truncated.

Concretely, this means that the agent panel will now display an abnormally terminated response stream for model calls through a Zed subscription as an error instead of just stopping.

Release Notes:

  • The agent panel now displays an abnormally terminated response stream for model calls through a Zed subscription as an error instead of just stopping.

Now that the cloud-side StreamEnded support has landed (CLO-263),
enable it on the Zed client:

- Send the `x-zed-client-supports-stream-ended-request-completion-status`
  header so cloud knows to send `StreamEnded` status events.
- Track whether `StreamEnded` was received during the stream.
- Emit `StreamEndedUnexpectedly` error when the stream closes without
  a `StreamEnded` status, indicating the response was truncated.

Closes CLO-265, CLO-264, CLO-266
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 17, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Feb 17, 2026
@tomhoule
Copy link
Copy Markdown
Contributor Author

tomhoule commented Feb 17, 2026

Concretely, this means that the agent panel will now display an abnormally terminated response stream for model calls through a Zed subscription as an error instead of just stopping.

Something for the release notes? Or irrelevant internal implementation detail?

edit: feels like release notes relevant, adding it.

@maxdeviant maxdeviant changed the title cloud_provider: Activate StreamEnded support in completion streams language_models: Activate StreamEnded support in completion streams for Cloud provider Feb 17, 2026
@maxdeviant
Copy link
Copy Markdown
Member

@tomhoule We should be good to land this after releases roll tomorrow, so it will have a week to bake on Nightly.

@tomhoule
Copy link
Copy Markdown
Contributor Author

Sounds like a plan

@tomhoule tomhoule merged commit b085d84 into main Feb 18, 2026
41 checks passed
@tomhoule tomhoule deleted the tomhoule-ytpwmplvsxrr branch February 18, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants