Skip to content

The agent that grows with you

fix(gateway): resolve a turn's display settings and toolsets off the event loop

Tekniume31245237895
diff --git a/gateway/run_turn.py b/gateway/run_turn.py
index e081f2984d2..6da1f61bdb4 100644
--- a/gateway/run_turn.py
+++ b/gateway/run_turn.py
@@ -2321,7 +2321,7 @@ class GatewayTurnMixin(GatewayTurnPrepareMixin, GatewayTurnHygieneMixin, Gateway
from run_agent import AIAgent
- disp = self._run_agent_display_settings(source)
+ disp = await asyncio.to_thread(self._run_agent_display_settings, source) # auth lock + config I/O; scope rides the copied context
if scheduled_heartbeat:
# A heartbeat is proactive work: tool chrome, drafts, thinking and periodic
# liveness notices would create a user-visible ping before its final result is known.