Teknium
fe8560fc12
feat(api-server): X-Hermes-Session-Key header for long-term memory scoping ( #20199 )
...
* feat(api-server): X-Hermes-Session-Key header for long-term memory scoping
API Server integrations (Open WebUI, custom web UIs) can now pass a stable
per-channel identifier via X-Hermes-Session-Key that scopes long-term memory
(Honcho, etc.) independently of the transcript-scoped X-Hermes-Session-Id.
This matches the native gateway's session_key / session_id split: one stable
key per assistant channel, many independent transcripts that rotate on /new.
- _create_agent and _run_agent accept gateway_session_key and pass it to
AIAgent(gateway_session_key=...), which is already honored by the Honcho
memory provider (plugins/memory/honcho/client.py resolve_session_name).
- New shared helper _parse_session_key_header applies the same API-key
gate, control-character sanitization, and a 256-char length cap as the
existing session-id header.
- All three agent endpoints honor the header: /v1/chat/completions,
/v1/responses, /v1/runs. JSON and SSE responses echo it back.
- /v1/capabilities advertises session_key_header so clients can
feature-detect.
Closes #20060 .
Co-authored-by: Andy Stewart <lazycat.manatee@gmail.com >
* chore: AUTHOR_MAP entry for manateelazycat
---------
Co-authored-by: Andy Stewart <lazycat.manatee@gmail.com >
2026-05-05 05:34:47 -07:00
..
2026-02-26 03:20:08 +03:00
2026-04-30 01:19:34 -07:00
2026-04-30 01:19:34 -07:00
2026-04-30 20:30:31 -07:00
2026-05-03 08:47:49 -07:00
2026-04-30 04:32:33 -07:00
2026-04-29 21:56:47 -07:00
2026-03-29 21:29:13 -07:00
2026-04-10 16:51:44 -07:00
2026-04-21 00:50:58 -07:00
2026-04-20 04:16:13 -07:00
2026-04-12 18:03:16 -07:00
2026-04-30 19:59:38 -07:00
2026-04-07 03:28:44 -07:00
2026-05-05 05:34:47 -07:00
2026-04-30 19:46:27 -07:00
2026-04-24 05:35:43 -07:00
2026-04-14 16:56:49 -07:00
2026-04-16 06:31:23 -07:00
2026-04-15 15:09:23 -07:00
2026-04-10 03:52:00 -07:00
2026-04-24 16:04:37 -07:00
2026-04-26 18:21:29 -07:00
2026-04-30 04:29:15 -07:00
2026-04-19 01:48:42 -07:00
2026-04-26 12:29:02 -07:00
2026-05-03 03:54:03 -07:00
2026-04-24 03:10:52 -07:00
2026-04-23 19:38:33 -05:00
2026-04-30 23:03:54 -07:00
2026-04-24 02:55:43 -07:00
2026-04-24 02:55:43 -07:00
2026-04-29 07:22:33 -07:00
2026-05-02 02:08:06 -07:00
2026-05-01 13:33:06 -07:00
2026-04-22 11:59:39 -07:00
2026-05-01 14:01:26 -07:00
2026-04-17 19:26:53 -07:00
2026-04-24 03:04:42 -07:00
2026-04-17 04:08:42 -07:00
2026-04-17 04:59:03 -07:00
2026-04-17 05:48:26 -07:00
2026-03-09 02:20:57 -07:00
2026-04-09 23:25:27 -07:00
2026-04-19 18:12:55 -07:00
2026-04-10 05:19:26 -07:00
2026-05-03 03:44:55 -07:00
2026-05-02 02:04:14 -07:00
2026-05-04 12:36:47 -07:00
2026-05-01 14:01:26 -07:00
2026-03-14 09:32:05 -07:00
2026-03-13 08:52:54 -07:00
2026-04-24 03:33:29 -07:00
2026-03-14 14:27:21 +03:00
2026-04-19 11:08:10 -07:00
2026-04-10 03:52:00 -07:00
2026-05-05 04:58:23 -07:00
2026-04-17 20:25:48 -07:00
2026-05-03 03:44:55 -07:00
2026-05-03 03:44:55 -07:00
2026-03-23 06:50:09 -07:00
2026-04-11 13:59:52 -07:00
2026-04-26 18:33:35 -07:00
2026-04-20 00:57:53 -07:00
2026-04-03 13:16:26 -07:00
2026-04-30 03:27:08 -07:00
2026-05-04 12:35:22 -07:00
2026-04-30 23:05:48 -07:00
2026-03-17 01:47:34 -07:00
2026-04-10 21:16:56 -07:00
2026-04-28 06:57:23 -07:00
2026-04-14 14:22:11 -07:00
2026-04-30 20:30:31 -07:00
2026-04-30 20:30:31 -07:00
2026-04-17 19:04:11 -07:00
2026-04-17 19:04:11 -07:00
2026-04-12 13:05:56 -07:00
2026-05-02 02:23:37 -07:00
2026-04-30 20:29:19 -07:00
2026-05-03 17:00:09 -07:00
2026-04-08 20:01:06 -07:00
2026-04-27 07:41:42 -07:00
2026-05-03 05:49:12 -07:00
2026-05-03 08:47:49 -07:00
2026-04-17 01:05:09 -07:00
2026-04-22 16:23:21 -07:00
2026-04-15 17:54:16 -07:00
2026-04-21 01:33:10 -07:00
2026-03-15 03:50:45 -07:00
2026-04-30 01:19:34 -07:00
2026-04-27 19:09:32 -07:00
2026-04-27 21:22:44 -07:00
2026-04-27 21:22:44 -07:00
2026-04-16 20:43:41 -07:00
2026-04-29 23:18:55 -07:00
2026-04-17 01:05:09 -07:00
2026-04-26 18:20:17 -07:00
2026-02-28 03:38:27 -05:00
2026-04-26 18:51:51 -07:00
2026-04-26 18:31:24 -07:00
2026-04-10 03:07:00 -07:00
2026-04-10 02:58:42 -07:00
2026-04-30 20:26:35 -07:00
2026-05-01 13:33:06 -07:00
2026-03-05 18:39:37 -08:00
2026-04-30 05:00:25 -07:00
2026-04-18 19:32:26 -07:00
2026-04-19 03:03:57 -07:00
2026-04-10 03:44:43 -07:00
2026-04-30 01:32:31 -07:00
2026-04-29 21:56:51 -07:00
2026-05-02 02:23:37 -07:00
2026-04-29 05:00:37 -07:00
2026-04-29 21:56:51 -07:00
2026-04-29 21:56:51 -07:00
2026-04-24 03:02:03 -07:00
2026-04-24 14:31:04 -07:00
2026-05-04 05:06:09 -07:00
2026-04-26 11:55:09 -07:00
2026-04-30 20:40:46 -07:00
2026-04-29 21:07:47 -07:00
2026-05-02 02:00:11 -07:00
2026-04-21 13:33:02 -07:00
2026-04-26 18:21:29 -07:00
2026-05-03 08:47:49 -07:00
2026-04-17 21:17:33 -07:00
2026-05-03 08:47:49 -07:00
2026-04-29 04:57:22 -07:00
2026-03-14 21:19:22 -07:00
2026-03-10 23:34:52 -07:00
2026-04-26 05:47:37 -07:00
2026-04-29 20:05:32 -07:00
2026-03-28 14:25:12 -07:00
2026-04-23 15:07:06 -07:00
2026-04-26 07:15:23 -07:00
2026-04-28 06:50:04 -07:00
2026-04-18 18:53:31 -07:00
2026-03-27 04:03:13 -07:00
2026-04-30 04:28:08 -07:00
2026-04-04 19:05:34 -07:00
2026-04-25 08:21:14 -07:00
2026-05-03 17:00:31 -07:00
2026-04-10 03:01:59 -07:00
2026-04-16 02:26:14 -07:00
2026-04-28 05:43:12 -07:00
2026-04-25 18:47:53 -07:00
2026-04-26 18:49:48 -07:00
2026-04-25 18:01:31 -07:00
2026-04-26 19:01:50 -07:00
2026-04-30 20:37:27 -07:00
2026-03-22 09:33:39 -07:00
2026-04-23 05:15:52 -07:00
2026-04-17 15:18:23 -07:00
2026-04-20 03:10:19 -07:00
2026-04-30 20:25:52 -07:00
2026-04-12 13:05:56 -07:00
2026-04-21 00:54:46 -07:00
2026-04-26 12:51:53 -07:00
2026-04-27 06:41:16 -07:00
2026-04-29 04:38:17 -07:00
2026-04-30 04:28:08 -07:00
2026-04-30 19:42:59 -07:00
2026-04-26 12:35:16 -07:00
2026-04-26 18:25:41 -07:00
2026-05-01 14:01:26 -07:00
2026-05-03 03:47:49 -07:00
2026-05-04 05:25:09 -07:00
2026-03-27 11:33:19 -07:00
2026-03-15 23:04:34 -07:00
2026-04-30 20:41:18 -07:00
2026-05-04 16:00:49 -07:00
2026-04-18 04:17:18 -07:00
2026-04-02 20:54:27 -07:00
2026-03-01 05:28:12 -08:00
2026-04-26 17:26:37 -07:00
2026-04-28 22:17:33 -07:00
2026-04-11 14:43:53 -07:00
2026-04-14 17:08:35 -07:00
2026-05-04 20:59:18 -07:00
2026-04-30 19:59:31 -07:00
2026-04-07 14:08:59 -07:00
2026-04-11 13:59:52 -07:00
2026-04-30 01:32:31 -07:00
2026-04-28 05:37:50 -07:00
2026-05-03 16:59:46 -07:00
2026-04-20 00:10:22 -07:00
2026-05-02 01:55:04 -07:00
2026-05-05 04:42:59 -07:00
2026-04-13 10:50:24 -07:00
2026-04-10 05:34:33 -07:00
2026-05-05 04:58:23 -07:00
2026-03-17 02:49:57 -07:00
2026-04-15 22:35:19 -07:00
2026-05-04 12:07:17 -07:00
2026-04-21 06:23:09 -07:00
2026-04-19 00:09:38 -07:00
2026-05-04 03:14:50 -07:00
2026-03-04 21:34:40 +03:00
2026-04-30 01:32:31 -07:00
2026-04-29 21:07:55 -07:00
2026-05-02 02:00:09 -07:00
2026-04-22 16:23:21 -07:00
2026-04-30 20:19:23 -07:00
2026-05-05 03:59:39 -07:00
2026-04-21 01:56:35 -07:00
2026-04-30 20:40:46 -07:00
2026-04-27 12:37:33 -07:00
2026-05-03 16:59:21 -07:00
2026-04-19 22:36:00 -07:00
2026-04-12 18:05:41 -07:00
2026-04-07 17:27:09 -07:00
2026-04-19 05:18:19 -07:00
2026-03-28 14:33:35 -07:00
2026-04-07 17:27:09 -07:00
2026-04-19 22:45:08 -07:00
2026-04-11 15:22:49 -07:00
2026-05-04 03:10:36 -07:00
2026-05-04 05:20:13 -07:00
2026-05-02 02:08:06 -07:00
2026-04-12 19:20:13 -07:00
2026-04-20 11:56:19 -07:00
2026-03-17 10:44:37 -07:00
2026-04-14 01:43:45 -07:00
2026-04-13 16:32:04 -07:00