Fix streaming subscription race

This commit is contained in:
ajaynomics committed 2026-07-18 13:18:18 -07:00
1 parent de14d57634
commit 5113a953db
5 files changed
+246 -9

No files matched your search

+12
View File
@@ -1,5 +1,17 @@
# Changelog
## 0.0.1.alpha6 - 2026-07-18
### Fixed
- Make `Opencode::Client#stream` wait for OpenCode's initial
`server.connected` SSE readiness frame before submitting `prompt_async`,
closing the fast-response window where a turn could emit events before the
client was listening.
- Keep prompt submission at-most-once across automatic SSE reconnects. A
reconnect now reopens only the event stream; it never posts the user prompt
again, and prompt transport failures remain visible to the caller.
## 0.0.1.alpha5 - 2026-07-15
### Added