Skip to content

feat(core): Implement lifecycle hooks to support streaming responses (no-changelog) #16391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

schrothbn
Copy link
Contributor

Summary

This PR adds infrastructure to support streaming responses:

  • Add new response mode streaming
  • Add response to execution data while streaming
  • Add lifecycle hooks to send a chunk to the response
  • Add message and hook for workers to support streaming in queue mode
  • Close an open response at the end of execution

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/AI-1033/add-response-mode-streaming
https://linear.app/n8n/issue/AI-1032/add-lifecycle-hooks-for-sending-chunks

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jun 16, 2025
Copy link

codecov bot commented Jun 16, 2025

@schrothbn schrothbn force-pushed the ai-1033-add-response-mode-streaming branch from bb961d3 to a3b7527 Compare June 16, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant