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

Re-derivation of PR #65645 onto current main: _build_gateway_agent_history
already runs inside a turn whose config was loaded once into
ctx.user_config; re-reading config from disk via _load_gateway_config()
per turn is redundant. Reuse the loaded turn config.
This commit is contained in:
MaartenDMT 2026-08-03 15:57:17 +05:30 committed by kshitij
parent 78e2987e20
commit c8df422422
1 changed files with 1 additions and 1 deletions

View File

@ -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