Teknium
d45bc39667
fix(gateway): resolve the ephemeral personality prompt per turn from the scoped profile
...
GatewayRunner.__init__ snapshotted _ephemeral_system_prompt once from the
launch profile's config and _get_system_prompt_for_channel returned that
string for every source, so under multiplex a routed profile's
display.personality / agent.system_prompt never injected (#89161 ), and
/personality from any chat rewrote the one process-global attribute for
everyone.
Drop the snapshot: _get_system_prompt_for_channel now calls
_load_ephemeral_system_prompt() (env var, then
resolve_ephemeral_system_prompt_from_config(_load_gateway_runtime_config()))
on each call. Its caller run_sync already runs inside
_profile_runtime_scope, so the routed profile's config.yaml is what gets
read; single-profile hot-edits of the personality also take effect on the
next turn instead of requiring a restart. /personality only persists via
persist_personality() (get_hermes_home()/config.yaml = the routed profile)
and no longer touches in-memory state.
Fixes #89161
Co-authored-by: worlldz <101180447+worlldz@users.noreply.github.com >
2026-09-02 06:36:16 -07:00
..
2026-07-29 19:53:17 -07:00
2026-07-31 21:21:20 -07:00
2026-07-29 13:10:23 -07:00
2026-08-08 17:37:26 -07:00
2026-07-29 13:10:23 -07:00
2026-07-08 07:59:24 -07:00
2026-06-19 16:59:43 -07:00
2026-08-29 07:25:17 -07:00
2026-07-14 22:14:10 -07:00
2026-08-29 07:25:17 -07:00
2026-08-29 17:58:46 -07:00
2026-05-28 22:26:25 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 18:13:33 -07:00
2026-09-02 05:34:35 -07:00
2026-07-30 03:39:26 -05:00
2026-07-21 04:29:34 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-06-25 19:57:58 -05:00
2026-07-29 13:10:23 -07:00
2026-08-09 22:09:49 -04:00
2026-08-01 15:34:16 -07:00
2026-08-14 13:09:37 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 23:16:18 -07:00
2026-09-01 12:07:35 -07:00
2026-08-14 21:41:26 -07:00
2026-08-15 01:04:19 -07:00
2026-07-01 00:12:32 -07:00
2026-07-17 20:55:24 +00:00
2026-08-08 19:22:53 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-28 23:38:59 -05:00
2026-07-29 13:10:23 -07:00
2026-08-10 10:40:19 -07:00
2026-08-16 01:51:35 -07:00
2026-07-31 12:04:59 -04:00
2026-07-29 13:10:23 -07:00
2026-08-13 21:38:30 +02:00
2026-07-29 13:10:23 -07:00
2026-05-25 01:20:33 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 18:34:51 -07:00
2026-08-20 04:14:07 -07:00
2026-07-29 13:10:23 -07:00
2026-05-29 00:31:44 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 15:12:28 -07:00
2026-08-02 20:30:06 -07:00
2026-08-19 19:41:59 -07:00
2026-08-20 04:30:33 -07:00
2026-07-29 13:10:23 -07:00
2026-07-23 08:19:14 -07:00
2026-07-23 07:24:46 -07:00
2026-08-09 22:09:49 -04:00
2026-07-29 13:10:23 -07:00
2026-08-20 11:39:03 +05:30
2026-05-28 22:26:25 -07:00
2026-07-29 13:10:23 -07:00
2026-05-24 16:13:03 -07:00
2026-07-29 13:10:23 -07:00
2026-05-25 01:41:54 -07:00
2026-08-16 01:56:43 -07:00
2026-09-02 05:33:13 -07:00
2026-08-15 01:04:19 -07:00
2026-08-17 13:26:29 +05:30
2026-08-29 18:08:55 -07:00
2026-07-31 22:33:16 -07:00
2026-08-14 13:09:37 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-20 03:59:16 -07:00
2026-08-31 10:08:48 -07:00
2026-08-17 16:55:07 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 06:36:16 -07:00
2026-06-03 23:51:44 -06:00
2026-07-29 13:10:23 -07:00
2026-07-31 21:21:16 -07:00
2026-07-31 21:21:16 -07:00
2026-06-19 01:53:32 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-01 22:14:33 -07:00
2026-08-14 14:39:08 +05:30
2026-05-28 22:26:25 -07:00
2026-08-15 02:04:49 -07:00
2026-07-27 21:10:51 -07:00
2026-08-19 19:42:07 -07:00
2026-08-31 10:09:42 -07:00
2026-07-29 13:10:23 -07:00
2026-05-28 22:26:25 -07:00
2026-08-09 22:09:49 -04:00
2026-08-20 01:46:08 -07:00
2026-05-29 19:04:40 -07:00
2026-07-29 13:10:23 -07:00
2026-07-28 23:53:16 -07:00
2026-07-29 13:10:23 -07:00
2026-06-28 01:08:09 -07:00
2026-08-13 14:22:14 -07:00
2026-07-29 15:12:28 -07:00
2026-08-08 14:06:30 +05:30
2026-07-29 13:10:23 -07:00
2026-07-22 16:51:01 -04:00
2026-06-05 18:05:05 -07:00
2026-08-31 07:27:50 -07:00
2026-07-29 23:16:18 -07:00
2026-08-17 03:03:47 -07:00
2026-07-29 15:34:53 -07:00
2026-08-20 00:00:28 -07:00