Teknium
e90aa7f280
fix(agent): notify context engine on commit_memory_session ( #22764 )
...
When session_id rotates (e.g. /new), commit_memory_session was firing
MemoryManager.on_session_end but skipping ContextEngine.on_session_end.
Engines that accumulate per-session state (LCM-style DAGs, summary
stores) leaked that state from the rotated-out session into whatever
continued under the same compressor instance.
Mirror the call shutdown_memory_provider already makes — same
lifecycle moment, same hook contract ("real session boundaries (CLI
exit, /reset, gateway expiry)"). /new is a real boundary for the old
session_id; providers keep their state but the rotated-out session_id
is done.
6 regression tests covering both-hooks-fire, no-memory-manager,
no-context-engine, both failure-tolerant paths.
Closes #22394 .
2026-05-09 12:28:42 -07:00
..
2026-04-07 17:19:07 -07:00
2026-04-17 14:21:22 -07:00
2026-05-04 01:41:51 -07:00
2026-05-01 18:39:12 +05:30
2026-04-17 12:32:03 -07:00
2026-05-04 05:06:33 -07:00
2026-04-07 17:19:07 -07:00
2026-04-07 17:19:07 -07:00
2026-04-07 17:19:07 -07:00
2026-04-19 11:23:00 -07:00
2026-04-29 04:56:55 -07:00
2026-04-19 22:43:09 -07:00
2026-04-23 02:30:05 -07:00
2026-04-23 13:59:32 -07:00
2026-04-27 08:35:50 -07:00
2026-04-24 03:10:19 -07:00
2026-04-29 23:18:55 -07:00
2026-04-30 14:07:22 -07:00
2026-05-09 12:28:42 -07:00
2026-04-25 08:21:14 -07:00
2026-04-26 19:07:18 -07:00
2026-04-07 17:19:07 -07:00
2026-04-25 08:21:14 -07:00
2026-04-17 12:32:03 -07:00
2026-04-20 05:12:10 -07:00
2026-04-07 17:19:07 -07:00
2026-05-08 14:55:40 -07:00
2026-04-19 11:23:00 -07:00
2026-04-27 08:35:50 -07:00
2026-04-17 12:32:03 -07:00
2026-04-24 03:04:42 -07:00
2026-04-17 12:32:03 -07:00
2026-04-30 23:04:23 -07:00
2026-04-30 11:18:39 -07:00
2026-04-13 10:50:24 -07:00
2026-05-07 08:35:10 -07:00
2026-04-17 14:21:22 -07:00
2026-04-17 14:21:22 -07:00
2026-05-08 11:07:38 -07:00
2026-04-27 06:27:59 -07:00
2026-05-02 02:09:46 -07:00
2026-04-07 17:19:07 -07:00
2026-04-20 23:20:33 -07:00
2026-04-15 22:05:21 -07:00
2026-05-04 12:37:28 -07:00
2026-04-24 05:02:58 -07:00
2026-05-05 05:00:05 -07:00
2026-04-07 17:19:07 -07:00
2026-04-18 22:50:55 -07:00
2026-04-29 04:57:22 -07:00
2026-05-07 08:35:10 -07:00
2026-04-07 17:19:07 -07:00
2026-04-10 03:44:43 -07:00
2026-04-17 12:32:03 -07:00
2026-04-24 05:35:43 -07:00
2026-05-08 03:22:11 -07:00
2026-04-24 05:20:05 -07:00
2026-04-29 23:23:50 -07:00
2026-04-13 10:50:24 -07:00
2026-04-07 17:19:07 -07:00
2026-04-24 15:06:41 -07:00
2026-04-24 05:32:08 -07:00
2026-04-28 21:11:48 -07:00
2026-04-27 12:37:33 -07:00
2026-04-22 18:34:25 -07:00
2026-05-07 13:04:42 -07:00
2026-04-16 16:36:33 -07:00
2026-04-07 17:19:07 -07:00
2026-04-07 17:19:07 -07:00
2026-04-20 22:18:49 -07:00
2026-04-25 09:51:39 -07:00
2026-04-24 15:03:07 -07:00
2026-04-28 11:33:07 -07:00
2026-04-07 17:19:07 -07:00
2026-04-22 18:12:42 -07:00
2026-04-10 05:52:45 -07:00
2026-04-24 05:35:43 -07:00
2026-04-28 03:50:51 -07:00
2026-04-17 12:32:03 -07:00
2026-05-04 05:00:37 -07:00
2026-05-04 05:06:33 -07:00
2026-04-30 20:43:15 -07:00
2026-04-30 16:26:26 -07:00
2026-04-15 15:03:28 -07:00
2026-04-27 06:27:59 -07:00