Skip to content

[Demo] Fix streamed recipe/chat SSE session handling and empty input#2301

Closed
chr-hertel wants to merge 1 commit into
symfony:mainfrom
chr-hertel:main2
Closed

[Demo] Fix streamed recipe/chat SSE session handling and empty input#2301
chr-hertel wants to merge 1 commit into
symfony:mainfrom
chr-hertel:main2

Conversation

@chr-hertel

Copy link
Copy Markdown
Member
Q A
Bug fix? yes
New feature? yes
Docs? no
Issues Fix #2299
License MIT

Restores the session-swap in the recipe/stream SSE streamContent() handlers (per @valtzu in #2299) to fix the "Failed to start the session because headers have already been sent" error, and guards getRecipeStream()/getAssistantResponse() against being called with no pending user message (reconnecting/stale SSE connections). Also hardens the OpenAI Responses MessageBagNormalizer to throw a clear InvalidArgumentException when a request would be sent with empty input and no previous_response_id/prompt/conversation_id, instead of an opaque provider 400.

@chr-hertel chr-hertel requested a review from OskarStark as a code owner July 11, 2026 20:06
@carsonbot carsonbot added Bug Something isn't working Demo Issues & PRs about the demo application Feature New feature Status: Needs Review labels Jul 11, 2026
@chr-hertel

Copy link
Copy Markdown
Member Author

Splitting into two focused PRs: a demo bug-fix for #2299 (session handling + empty-message guard) and a separate OpenAI Responses bridge hardening (with its own CHANGELOG entry).

@chr-hertel chr-hertel closed this Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Demo Issues & PRs about the demo application Feature New feature Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Demo] Streamed demos do not work

2 participants