Why it matters
Bi-di enables rich UX (interruption, voice). Understanding shapes advanced UI.
Advertisement
The architecture
Input stream: user + tool events.
Output stream: tokens + events.
Merge + arbitrate.
Advertisement
How it works end to end
Reactive Flux both ways.
Interruption: cancel current gen.
Tool results merge into input.
State machine per session.