You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Guidance for streaming chat responses in DevTools integrations #306
I’m working on improving the DX of Chat SDK usage in Nitro v3 and want to add a DevTools page for inspecting and interacting with chats.
A key use case is streaming assistant deltas into the DevTools iframe so chat responses render incrementally. This can be built today with an action call plus delta/done/error events, but then every integration has to invent its own stream ids, cancellation, error handling, and recovery conventions.
I’m open to contributing the necessary PRs in DevTools/devframe or birpc, depending on the preferred direction.
Suggested solution
I’d like guidance on the recommended pattern:
Document action + events as the preferred approach.
Add a small DevTools/devframe helper that exposes an AsyncIterable-style API over action + events.
Explore explicit streaming support in birpc, such as $stream() / asStream().
Alternative
Each integration can keep implementing its own action + event streaming protocol.
Additional context
Related birpc discussion: antfu-collective/birpc#20. I understand the concerns about cancellation, disconnects, timeouts, and keeping birpc small.
Activity
antfu commentedon May 7, 2026
Thanks for the issue, that's indeed an important feature to provide. I will have a look and see what we can do to offer such utility/helper
docs: fix broken vitejs/devframe URLs