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-17 12:50:32 +08:00
2026-03-06 19:58:23 +08:00
2026-03-08 18:22:15 +01:00
2026-03-13 23:08:55 +08:00
2026-03-09 16:39:33 +08:00
2026-03-16 00:08:16 +08:00
2026-02-19 11:48:17 +01:00
2026-03-06 20:46:52 +08:00
2026-02-24 21:52:25 +08:00
2026-02-24 23:57:13 +08:00
2026-02-28 12:21:54 +08:00
2026-03-01 18:17:32 +11:00
2026-03-13 15:41:18 +08:00
2026-03-13 14:27:46 +08:00
2026-03-05 14:53:26 +08:00
2026-02-28 12:21:54 +08:00
2026-03-11 14:29:42 +08:00
2026-03-12 09:47:01 +08:00
2026-03-13 14:09:40 +08:00
2026-03-06 13:10:20 +08:00
2026-03-11 19:22:20 +08:00
2026-03-13 14:04:02 +08:00
2026-03-11 19:22:20 +08:00
2026-03-17 12:50:32 +08:00
2026-03-13 14:04:02 +08:00
2026-03-04 10:21:59 +00:00