fix: log turn errors before context is cleared
Add logError call inside the setLogContext scope so stream failures (e.g. silent provider disconnects mid-tool-loop) are captured in the session logs for debugging. Previously the error was only caught after the log context was nulled, so nothing was recorded.
xonecas2026-03-21
1e8c453bc608de309831481a3b5d3fa3a6941d22
parent ba9632c