test(gateway): on_session_finalize fires on idle-expiry + AUTHOR_MAP

Regression test for #14981. Verifies that _session_expiry_watcher fires
on_session_finalize for each session swept out of the store, matching
the contract documented for /new, /reset, CLI shutdown, and gateway stop.

Verified the test fails cleanly on pre-fix code (hook call list missing
sess-expired) and passes with the fix applied.
This commit is contained in:
Teknium 2026-04-24 05:33:03 -07:00 committed by Teknium
parent 260ae62134
commit 25465fd8d7
2 changed files with 78 additions and 0 deletions

View file

@ -214,6 +214,7 @@ AUTHOR_MAP = {
"ntconguit@gmail.com": "0xharryriddle",
"agent@wildcat.local": "ericnicolaides",
"georgex8001@gmail.com": "georgex8001",
"stefan@dimagents.ai": "dimitrovi",
"hermes@noushq.ai": "benbarclay",
"chinmingcock@gmail.com": "ChimingLiu",
"openclaw@sparklab.ai": "openclaw",