Administrator
12a8590ada
fix(agent): enhance SubTurn robustness and fix race conditions
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
2026-03-17 12:50:32 +08:00
..
2026-03-03 18:25:00 +08:00
2026-03-06 16:04:31 +08:00
2026-03-10 17:13:44 +01:00
2026-03-16 14:31:32 +08:00
2026-03-01 18:17:32 +11:00
2026-03-10 15:14:09 +08:00
2026-03-13 16:43:00 +08:00
2026-03-14 12:09:11 +08:00
2026-03-14 12:09:11 +08:00
2026-03-17 12:50:32 +08:00
2026-02-27 16:35:07 +08:00
2026-02-19 22:05:15 +02:00
2026-02-18 21:48:23 +02:00
2026-03-10 15:14:09 +08:00
2026-03-16 00:08:16 +08:00
2026-03-17 12:50:32 +08:00
2026-03-17 12:50:32 +08:00
2026-03-17 12:50:32 +08:00
2026-03-05 09:51:18 +08:00
2026-03-05 09:51:18 +08:00