SiYue-ZO
8290c72d44
fix(agent): replace WaitGroup with Cond-based counter and conditionalize panic cleanup
...
Two concurrency bugs identified in PR #2904 review:
1. Replace sync.WaitGroup with sync.Cond-based activeReqCount to avoid
the "WaitGroup is reused before previous Wait has returned" panic that
occurs when Add(1) races with a goroutine-launched Wait().
2. Make panic cleanup conditional: when runTurn panics, only delete the
session's activeTurnStates entry if it still points to our placeholder.
Previously, an unconditional delete could wipe a new message's slot
claimed between the panic and the deferred cleanup.
2026-06-15 01:32:13 +08:00
..
2026-05-19 16:38:47 +08:00
2026-05-19 16:38:47 +08:00
2026-05-04 08:41:17 +02:00
2026-05-11 16:13:27 +08:00
2026-06-15 01:32:13 +08:00
2026-04-21 10:55:50 +08:00
2026-05-08 13:48:47 +02:00
2026-05-08 13:48:47 +02:00
2026-04-30 11:08:00 +08:00
2026-05-09 00:53:23 -07:00
2026-04-26 15:36:03 +08:00
2026-05-20 13:42:21 +08:00
2026-05-05 19:24:15 +02:00
2026-05-04 13:10:02 +02:00
2026-05-21 10:05:58 +08:00
2026-04-21 10:55:50 +08:00
2026-05-05 19:36:09 +08:00
2026-06-15 01:32:13 +08:00
2026-06-15 01:32:13 +08:00
2026-04-05 09:05:16 +08:00
2026-04-05 09:05:16 +08:00
2026-04-03 14:15:20 +08:00
2026-06-15 01:32:13 +08:00
2026-04-26 16:23:58 +08:00
2026-04-13 11:04:45 +08:00
2026-05-20 13:42:21 +08:00
2026-04-08 10:57:22 +08:00
2026-05-20 13:42:21 +08:00
2026-04-15 20:18:09 +08:00
2026-04-21 16:30:02 +08:00
2026-05-11 16:13:27 +08:00
2026-03-29 14:06:19 +02:00
2026-03-29 23:41:32 +02:00
2026-05-08 22:23:50 +02:00
2026-05-08 22:23:50 +02:00
2026-04-13 22:51:44 +08:00
2026-04-13 22:51:44 +08:00
2026-05-11 16:13:27 +08:00
2026-04-26 16:55:02 +08:00
2026-04-27 13:09:03 +08:00
2026-05-11 16:13:27 +08:00
2026-05-11 16:13:27 +08:00
2026-05-11 16:13:27 +08:00
2026-04-27 13:09:03 +08:00
2026-04-27 13:09:03 +08:00
2026-04-26 16:28:41 +08:00
2026-04-26 16:39:35 +08:00
2026-04-26 16:39:35 +08:00
2026-04-26 16:55:02 +08:00
2026-05-09 10:35:13 +02:00
2026-05-08 13:48:47 +02:00
2026-05-11 16:13:27 +08:00
2026-05-11 16:13:27 +08:00
2026-04-30 02:24:29 +08:00
2026-02-27 16:35:07 +08:00
2026-02-19 22:05:15 +02:00
2026-05-20 13:42:21 +08:00
2026-05-20 13:42:21 +08:00
2026-05-11 16:13:27 +08:00
2026-05-20 13:42:21 +08:00
2026-05-20 13:42:21 +08:00
2026-06-15 01:32:13 +08:00
2026-05-20 13:42:21 +08:00
2026-05-20 13:42:21 +08:00
2026-05-20 13:42:21 +08:00
2026-04-21 10:55:50 +08:00
2026-05-07 18:26:09 +02:00
2026-04-25 01:25:17 +08:00
2026-04-25 01:25:17 +08:00
2026-05-07 13:16:30 +02:00
2026-03-29 22:43:20 +02:00
2026-05-08 22:23:50 +02:00
2026-06-15 01:32:13 +08:00
2026-04-26 19:28:26 +08:00
2026-04-26 16:23:58 +08:00
2026-05-08 13:50:14 -07:00
2026-05-04 08:41:17 +02:00
2026-05-07 11:25:41 +08:00
2026-05-07 11:25:41 +08:00
2026-03-05 09:51:18 +08:00
2026-03-05 09:51:18 +08:00
2026-05-09 10:35:13 +02:00
2026-05-09 10:35:13 +02:00
2026-04-26 16:55:02 +08:00
2026-05-20 13:42:21 +08:00
2026-05-11 16:13:27 +08:00
2026-05-21 10:05:58 +08:00