Ian Ker-Seymer
246eacea7b
fix(gateway): deliver kanban/delegate wake-ups to api_server sessions
...
Wake-ups for kanban notifications and background delegation completions were
injected via handle_message() using a build_session_key()-derived key, which
can never match the raw X-Hermes-Session-Id key that api_server sessions run
under — so the wake landed in a session nobody was reading. On top of that,
ApiServerAdapter.send() reports failure without raising, and that was treated
as a successful delivery, so the notify cursor advanced past events that were
permanently lost; and background delegation was forced synchronous on
api_server since there was no way to wake the session afterward.
Fix: route wake-ups for non-push adapters through a self-post to
/v1/chat/completions with the original session id, treat non-raising send
failures as failures (rewind instead of advancing the cursor), and re-enable
background delegation whenever a session id is available to wake.
The origin session id is captured from the request-scoped api_server chat_id
binding rather than HERMES_SESSION_ID: constructing a child agent calls
set_current_session_id() with the subagent's internal id, clobbering that
variable right before dispatch would read it and misrouting the wake into
the subagent's own session.
Related: #56580 , #64609 , #53027 , #63169 , #56531 , #50319 , #64113
2026-07-23 11:55:17 -07:00
..
2026-07-17 04:53:38 -07:00
2026-07-05 14:48:40 -07:00
2026-07-12 22:43:57 -07:00
2026-07-13 04:31:55 -07:00
2026-07-17 04:53:04 -07:00
2026-07-06 04:58:42 -07:00
2026-07-23 08:33:55 -07:00
2026-07-16 01:28:24 -07:00
2026-04-08 13:44:58 -07:00
2026-07-16 23:41:26 -07:00
2026-07-16 23:41:26 -07:00
2026-07-16 23:41:26 -07:00
2026-07-18 10:07:46 -07:00
2026-07-22 23:25:13 -05:00
2026-07-16 04:24:07 -07:00
2026-07-16 04:25:19 -07:00
2026-07-21 12:04:47 -07:00
2026-07-23 08:11:58 -07:00
2026-07-18 15:07:04 -07:00
2026-07-04 02:37:33 -07:00
2026-07-23 08:11:58 -07:00
2026-07-14 02:59:39 +05:30
2026-07-16 00:18:38 -07:00
2026-07-20 09:21:08 -07:00
2026-07-23 11:55:17 -07:00
2026-05-28 22:26:25 -07:00
2026-07-23 07:33:36 -07:00
2026-07-22 06:58:45 -07:00
2026-07-20 06:50:31 -07:00
2026-07-22 12:13:01 -05:00
2026-07-09 15:38:32 +05:30
2026-07-07 02:40:04 -07:00
2026-06-29 11:01:08 +10:00
2026-07-17 20:55:24 +00:00
2026-07-05 14:41:51 -07:00
2026-07-16 08:52:47 +10:00
2026-07-20 06:50:11 -07:00
2026-07-23 07:33:36 -07:00
2026-07-17 20:55:24 +00:00
2026-07-13 01:59:58 -04:00
2026-07-05 14:42:05 -07:00
2026-07-16 00:18:38 -07:00
2026-07-06 01:55:58 -07:00
2026-07-20 02:25:53 -07:00
2026-07-16 00:18:38 -07:00
2026-07-16 00:18:38 -07:00
2026-07-16 00:18:38 -07:00
2026-07-14 17:09:40 +05:30
2026-07-16 22:46:46 -04:00
2026-07-22 12:13:01 -05:00
2026-07-05 02:24:00 -07:00
2026-07-23 07:33:36 -07:00
2026-07-05 13:51:26 -07:00
2026-06-18 22:13:07 -07:00
2026-07-14 02:59:39 +05:30
2026-07-04 15:30:50 -07:00
2026-07-17 20:55:24 +00:00
2026-07-23 08:34:06 -07:00
2026-07-16 12:48:48 -07:00
2026-07-17 20:55:24 +00:00
2026-07-17 06:54:51 -07:00
2026-07-16 01:28:24 -07:00
2026-07-16 01:28:13 -07:00
2026-07-16 01:28:24 -07:00
2026-07-17 20:55:24 +00:00
2026-07-03 05:30:16 -05:00
2026-07-21 12:43:27 -07:00
2026-07-17 20:55:24 +00:00
2026-07-17 20:55:24 +00:00
2026-05-28 22:26:25 -07:00
2026-07-17 04:50:47 -07:00
2026-07-05 13:40:21 -07:00
2026-07-21 12:42:33 -07:00
2026-05-28 22:26:25 -07:00
2026-07-17 04:57:12 -07:00
2026-07-17 04:50:47 -07:00
2026-07-17 04:50:47 -07:00
2026-07-21 12:43:00 -07:00
2026-07-18 18:49:56 -04:00
2026-07-05 21:36:19 -07:00
2026-07-21 12:42:33 -07:00
2026-07-21 12:42:33 -07:00
2026-07-17 20:55:24 +00:00
2026-07-05 21:48:36 -07:00
2026-07-21 12:43:27 -07:00
2026-07-05 02:06:39 -07:00
2026-07-17 20:55:24 +00:00
2026-07-07 15:16:00 -07:00
2026-07-18 04:15:13 -07:00
2026-07-07 15:16:00 -07:00
2026-07-21 19:54:40 -05:00
2026-07-22 03:19:42 -07:00
2026-07-21 12:42:33 -07:00
2026-07-09 15:38:32 +05:30
2026-07-07 02:10:43 -07:00
2026-07-09 20:03:11 -07:00
2026-07-22 12:13:01 -05:00
2026-07-13 02:42:18 -07:00
2026-07-17 20:55:24 +00:00
2026-07-17 20:55:24 +00:00
2026-07-07 15:14:30 -07:00
2026-07-16 00:18:38 -07:00
2026-07-14 22:14:10 -07:00
2026-07-07 02:52:17 -07:00
2026-07-22 21:58:13 -07:00
2026-07-16 00:18:38 -07:00
2026-07-22 16:59:09 -07:00
2026-07-23 11:44:43 -07:00
2026-07-18 20:17:22 +05:30
2026-07-05 13:42:46 -07:00
2026-07-23 11:44:43 -07:00
2026-07-23 11:44:43 -07:00
2026-07-09 15:38:14 +05:30
2026-07-07 05:14:00 -07:00
2026-07-17 04:52:02 -07:00
2026-07-22 21:58:13 -07:00
2026-07-09 15:38:32 +05:30
2026-07-16 08:55:10 -07:00
2026-07-14 22:00:28 -07:00
2026-07-16 00:18:38 -07:00
2026-07-04 14:17:11 +05:30
2026-05-31 00:50:19 -07:00
2026-07-21 05:27:23 -07:00
2026-07-14 02:59:39 +05:30
2026-07-22 17:47:04 -05:00
2026-07-14 02:59:39 +05:30
2026-07-14 02:59:39 +05:30
2026-07-14 02:59:39 +05:30
2026-07-13 22:26:19 -07:00
2026-07-14 02:59:39 +05:30
2026-07-14 02:59:39 +05:30
2026-07-22 17:53:06 -05:00
2026-07-23 11:44:43 -07:00
2026-07-05 00:47:54 -07:00
2026-07-14 02:59:39 +05:30
2026-07-04 15:30:50 -07:00
2026-07-05 00:47:54 -07:00
2026-07-22 17:47:15 -05:00
2026-07-23 07:33:36 -07:00
2026-07-21 11:51:01 +05:30
2026-07-17 11:37:25 +05:30
2026-07-06 04:38:17 -07:00
2026-07-09 20:28:44 -07:00
2026-07-10 19:14:06 +05:30
2026-07-09 15:38:32 +05:30
2026-07-23 11:13:14 -07:00
2026-07-08 06:17:56 -07:00
2026-07-22 04:40:07 -07:00
2026-07-07 22:14:33 -07:00
2026-07-19 23:58:33 -07:00