mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-21 13:21:17 +08:00
MessageV2.stream is a synchronous generator, so wrapping it in Effect.promise with `for await` is an unnecessary async roundtrip. Use Effect.sync with a plain `for` loop instead.