Dev
532ee1a199
fix(gateway): persist gateway routing identity on lazily-created session rows
...
When the default/global state.db is corrupt at gateway startup,
SessionStore degrades (_db=None) and record_gateway_session_peer never
self-heals. Under multiplexed profile routes the AIAgent's lazy
_ensure_db_session was then the ONLY durable write for the session, and
it created the row identity-less (session_key/chat_id/chat_type/
thread_id/user_id/origin_json all NULL) — unrecoverable by
find_latest_gateway_session_for_peer, so Telegram chats forgot prior
turns.
Persist the routing identity the agent already carries into
create_session; plain CLI sessions keep the old identity-less shape.
Salvaged leg 1 of #88804 ; the transcript-recovery leg is covered by the
scope-aware session DB resolution already on main.
2026-08-31 12:32:33 -07:00
..
2026-08-23 17:45:47 -05:00
2026-08-31 12:20:02 -07:00
2026-08-31 10:00:55 -07:00
2026-08-31 10:09:42 -07:00
2026-08-26 00:54:36 -07:00
2026-08-24 15:54:23 +05:30
2026-08-31 10:42:39 -07:00
2026-08-26 07:28:10 -07:00
2026-08-24 21:21:34 -07:00
2026-08-31 01:04:11 -07:00
2026-08-31 12:32:33 -07:00
2026-08-31 12:21:46 -07:00
2026-08-31 10:02:22 -07:00
2026-08-31 17:20:45 +05:30
2026-08-28 11:54:33 +05:30
2026-08-31 07:28:30 -07:00
2026-08-29 18:01:25 -07:00
2026-08-20 19:56:01 -07:00
2026-08-31 12:22:55 -07:00
2026-08-30 04:53:39 -07:00
2026-08-31 12:08:30 -07:00
2026-08-31 11:29:17 -07:00
2026-08-31 12:18:00 -07:00
2026-08-19 12:41:45 -05:00
2026-08-31 00:56:41 -07:00
2026-08-24 15:37:22 +05:30
2026-08-31 09:56:43 -07:00
2026-08-24 03:21:07 -07:00
2026-08-24 03:21:07 -07:00
2026-08-23 17:01:31 -07:00
2026-08-23 06:36:57 -07:00
2026-08-30 01:20:27 -07:00
2026-08-30 01:20:27 -07:00
2026-08-17 16:34:02 -07:00
2026-08-20 04:54:14 -07:00
2026-08-26 18:23:33 -07:00
2026-08-20 19:56:28 -07:00
2026-08-26 18:23:33 -07:00
2026-08-31 10:05:13 -07:00
2026-08-28 05:45:00 -07:00
2026-08-28 12:20:40 -07:00
2026-09-01 00:35:29 +05:30
2026-08-31 09:56:43 -07:00
2026-08-27 13:48:51 -07:00
2026-08-25 10:54:42 +10:00
2026-08-31 07:28:22 -07:00
2026-08-31 09:56:04 -07:00
2026-08-23 19:31:35 -07:00
2026-08-29 18:34:35 -07:00
2026-08-31 10:00:38 -07:00
2026-08-23 18:27:21 -07:00
2026-08-16 11:34:40 -07:00
2026-08-31 10:00:55 -07:00
2026-08-31 10:53:18 -07:00
2026-08-31 10:53:18 -07:00
2026-08-28 12:36:15 -07:00
2026-08-27 07:52:26 -07:00
2026-08-27 07:52:26 -07:00
2026-08-17 02:40:59 -07:00
2026-08-23 19:15:28 -07:00
2026-08-16 23:26:10 -07:00
2026-08-23 13:34:32 +05:30
2026-08-31 12:22:17 -07:00
2026-08-20 11:37:01 +05:30
2026-08-31 10:03:34 -07:00
2026-08-17 15:12:53 -05:00
2026-08-17 16:39:47 -07:00
2026-08-16 20:43:13 -07:00
2026-08-31 05:56:18 -07:00
2026-08-31 11:23:48 -07:00
2026-08-31 09:56:04 -07:00
2026-08-25 23:15:49 -07:00
2026-08-31 09:56:54 -07:00
2026-08-21 21:53:11 +05:30
2026-08-31 09:56:43 -07:00
2026-08-23 02:55:03 +05:30
2026-08-22 04:02:29 +05:30
2026-08-22 14:33:20 +05:30
2026-08-23 18:25:12 -07:00
2026-08-23 20:01:41 -07:00
2026-08-23 18:25:12 -07:00
2026-08-27 07:52:26 -07:00
2026-08-31 09:58:40 -07:00
2026-08-27 11:26:57 +05:30
2026-08-31 12:18:00 -07:00
2026-08-24 04:01:53 -07:00
2026-08-23 17:43:39 -07:00
2026-08-31 09:56:43 -07:00