-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Problem
The streaming implementation is parsing Server-Sent Events from LangServe but messages still arrive all at once instead of word-by-word streaming.
Current Behavior
- ❌ AI responses appear as complete messages instantly
- ✅ LangServe backend properly streams via
/chatbot/streamendpoint - ✅ SSE parsing logic implemented in Socket.IO server
- ✅ Frontend ready to receive streaming chunks
Expected Behavior
- ✅ AI responses should appear word-by-word in real-time
- ✅ User should see typing indicator during generation
- ✅ Streaming should work when "Enable Streaming" checkbox is checked
Technical Details
LangServe Backend Output (Working)
The backend correctly streams:
event: data
data: "Hello"
event: data
data: " How"
event: data
data: " can"
Current Implementation
- Socket.IO server in
vite.config.tsparses SSE events - Emits
message_chunkevents for each word - Frontend handles streaming with
agent_response_start/complete
Investigation Needed
- Verify SSE parsing logic handles multi-line chunks correctly
- Check if Socket.IO emission timing is correct
- Debug frontend streaming state management
- Test with different message lengths and types
Reproduction Steps
- Start both backend (
uv run serve) and frontend (pnpm dev) - Create conversation with endpoint selected
- Ensure "Enable Streaming" is checked
- Send message like "Write a short poem"
- Observe: Message appears all at once instead of streaming
Environment
- LangServe backend: FastAPI + OpenAI
- Frontend: SvelteKit + Socket.IO + Vite
- Development mode with Vite plugin integration
Related
- Implemented in PR Fix UI and implement real LangServe integration #15
- Part of the broader UI fixes and LangServe integration
🤖 Generated with Claude Code
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request