mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
12a8590ada
Major improvements to SubTurn implementation: **Fixes:** - Channel close race condition (sync.Once) - Semaphore blocking timeout (30s) - Redundant context wrapping - Memory accumulation (auto-truncate at 50 msgs) - Channel draining on Finish() - Missing depth limit logging - Model validation **Enhancements:** - Comprehensive documentation (150+ lines) - 11 new tests covering edge cases - Improved error messages All tests pass. Production-ready. Related: #1316