Skip to content

The agent that grows with you

perf(gateway): reuse loaded turn config for timestamp check

MaartenDMTc8df4224220b
diff --git a/gateway/run.py b/gateway/run.py
index a3c5d8536ef..4df2227ae4f 100644
--- a/gateway/run.py
+++ b/gateway/run.py
@@ -4965,7 +4965,7 @@ class TurnRunner:
agent_history, observed_group_context = _build_gateway_agent_history(
ctx.history,
channel_prompt=ctx.channel_prompt,
- inject_timestamps=_message_timestamps_enabled(_load_gateway_config()),
+ inject_timestamps=_message_timestamps_enabled(ctx.user_config),
)
# FTS write-corruption guard (#50502): when message persistence