diff options
| author | Adam Malczewski <[email protected]> | 2026-06-21 23:12:32 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-21 23:12:32 +0900 |
| commit | 62ea07f56ff066bbf05041aadf8006cbc65e5c53 (patch) | |
| tree | 4fd89929053fb853e4f6d904b7f89a399ffc90f5 /GLOSSARY.md | |
| parent | e2f7ce2782b46619442d422743ecb8959fd4fc59 (diff) | |
| download | dispatch-62ea07f56ff066bbf05041aadf8006cbc65e5c53.tar.gz dispatch-62ea07f56ff066bbf05041aadf8006cbc65e5c53.zip | |
fix(transport-http): stream /chat response instead of buffering
The /chat endpoint was buffering the entire turn before returning
the response, which meant X-Conversation-Id was not available until
the turn finished. This prevented the CLI --open flag from firing
until after the turn completed.
Now the response is a ReadableStream that:
- Returns X-Conversation-Id header immediately
- Streams NDJSON events as they arrive from the orchestrator
- Closes the stream when the turn completes (or errors)
- Records throughput after stream close (non-blocking)
This fixes: dispatch <model> --text '...' --open now opens the
frontend tab immediately, not after the turn finishes.
Diffstat (limited to 'GLOSSARY.md')
0 files changed, 0 insertions, 0 deletions
