story-kit: start 184_story_stream_bot_responses_to_matrix_on_double_newline_boundaries

This commit is contained in:
Dave
2026-02-25 13:51:16 +00:00
parent 23e1830da2
commit f80bc60a61

View File

@@ -0,0 +1,20 @@
---
name: "Stream bot responses to Matrix on double newline boundaries"
---
# Story 184: Stream bot responses to Matrix on double newline boundaries
## User Story
As a user chatting with the bot in Matrix, I want to see incremental responses as the bot generates them, so that I don't have to wait for the entire response to complete before seeing anything.
## Acceptance Criteria
- [ ] Bot sends partial responses to Matrix whenever a double newline (paragraph break) is encountered in the streamed output
- [ ] Remaining buffered text is flushed as a final message when the response completes
- [ ] Each Matrix message is a coherent chunk (no partial words or mid-line breaks)
- [ ] Bot still handles errors gracefully (error messages sent as single messages)
## Out of Scope
- TBD