benoit lange
db90f0b816
server: a client that stops reading early keeps the engine in step
...
With --batch, a consumer that left mid-answer (a client disconnect, a tool call or a stop string ending the
response) left the engine writing the abandoned answer's tokens, and the next request read them as its own:
it answered the previous question again. Now the solo request is STOPped and read to its DONE, an admission
to its BADM, and a slot is BSTOPped and freed only at its BDONE. STRATA_BATCH_TRACE=1 logs the control lines.
tools/early_close_test.py reproduces it (solo and with a second request running).
2026-10-03 08:04:53 +02:00
..
2026-10-02 22:03:36 +02:00
2026-10-01 08:12:47 +02:00
2026-09-27 10:18:14 +02:00
2026-10-03 08:04:53 +02:00
2026-10-02 09:35:26 +02:00
2026-09-24 18:42:20 +02:00
2026-09-30 17:52:12 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:31:44 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:43:28 +02:00
2026-10-01 08:13:17 +02:00
2026-10-03 08:04:53 +02:00
2026-10-01 08:46:48 +02:00
2026-09-24 18:42:20 +02:00
2026-09-24 18:42:20 +02:00
2026-09-30 20:36:29 +02:00
2026-10-01 08:15:22 +02:00
2026-09-28 14:20:58 +02:00
2026-10-02 18:46:07 +02:00
2026-09-24 18:42:20 +02:00
2026-09-27 10:18:14 +02:00
2026-09-28 14:53:30 +02:00
2026-09-24 18:42:20 +02:00
2026-09-27 10:18:14 +02:00
2026-10-01 10:31:23 +02:00
2026-10-01 20:18:07 +02:00
2026-09-28 17:58:24 -04:00
2026-09-30 20:37:45 +02:00
2026-10-02 09:35:26 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:31:46 +02:00
2026-09-30 16:31:44 +02:00
2026-09-30 16:31:44 +02:00
2026-09-30 16:31:45 +02:00
2026-09-30 16:31:44 +02:00
2026-10-01 08:15:22 +02:00
2026-10-01 08:28:45 +02:00
2026-10-02 09:41:57 +02:00
2026-10-03 01:56:03 +02:00
2026-10-02 11:04:05 +02:00
2026-10-01 20:52:24 +02:00
2026-10-01 21:03:56 +02:00
2026-10-01 21:03:56 +02:00
2026-10-02 18:46:07 +02:00
2026-10-01 20:46:19 +02:00
2026-10-02 09:41:57 +02:00
2026-09-30 16:31:31 +02:00
2026-10-02 18:50:12 +02:00
2026-10-03 01:58:25 +02:00
2026-09-28 17:58:24 -04:00
2026-10-01 20:18:07 +02:00