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-05 09:57:33 +08:00
2026-03-11 19:22:20 +08:00
2026-03-11 19:22:20 +08:00
2026-02-23 20:09:53 +11:00
2026-03-02 12:22:02 +08:00
2026-03-09 09:32:21 +01:00
2026-03-09 11:02:31 +01:00
2026-02-20 22:35:16 +02:00
2026-02-18 21:48:23 +02:00
2026-02-24 21:52:25 +08:00
2026-03-01 08:53:13 +08:00
2026-03-01 12:00:26 +08:00
2026-03-05 09:57:33 +08:00
2026-03-05 09:57:33 +08:00
2026-03-05 09:57:33 +08:00
2026-03-17 12:50:32 +08:00
2026-02-18 21:48:23 +02:00
2026-02-23 03:10:57 +08:00
2026-03-09 18:21:49 +01:00
2026-03-09 18:21:49 +01:00
2026-03-06 19:42:52 +08:00
2026-03-06 19:42:52 +08:00
2026-02-18 02:01:29 +08:00
2026-02-18 02:01:29 +08:00
2026-03-13 17:16:05 +08:00
2026-02-28 16:24:26 +08:00
2026-03-13 17:16:05 +08:00
2026-02-20 20:03:11 +02:00
2026-02-24 23:57:13 +08:00
2026-02-20 20:03:11 +02:00
2026-02-20 20:03:11 +02:00
2026-03-05 13:07:17 +01:00
2026-03-17 12:50:32 +08:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-24 21:52:25 +08:00
2026-03-05 13:07:17 +01:00
2026-03-17 12:50:32 +08:00
2026-03-04 17:17:28 +08:00
2026-02-18 21:48:23 +02:00
2026-03-13 14:04:02 +08:00
2026-03-13 14:04:02 +08:00