From cc3c4f39ab352bea8855ed819ab46bc85e62add2 Mon Sep 17 00:00:00 2001 From: Bereket Terefe Date: Mon, 13 Jul 2026 21:57:26 +0300 Subject: [PATCH] fix(agent): inline phase transition = true causing silence to be skipped, transition between welcome and education not happening [pulumi up] --- .../app/agent/agent_director/llm_agent_director.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/backend/app/agent/agent_director/llm_agent_director.py b/backend/app/agent/agent_director/llm_agent_director.py index 62f00276c..140ec09fb 100644 --- a/backend/app/agent/agent_director/llm_agent_director.py +++ b/backend/app/agent/agent_director/llm_agent_director.py @@ -279,15 +279,10 @@ async def execute(self, user_input: AgentInput) -> AgentOutput: transitioned_to_new_phase = True user_input = AgentInput(message="", is_artificial=True) elif transitioned_to_new_phase: - if get_application_config().inline_phase_transition: - # Inline transition: skip the (silence) loop re-invocation. - # The next user message will be routed deterministically via sub-phase. - transitioned_to_new_phase = False - else: - user_input = AgentInput( - message="(silence)", - is_artificial=True - ) + user_input = AgentInput( + message="(silence)", + is_artificial=True + ) # Clear agent_type after all operations and logging for this iteration # This ensures observability logs capture the agent type throughout execution