fix: update initial_message in context for each interactive turn

This commit is contained in:
2025-07-07 15:05:38 +00:00
parent 2f72c92147
commit f4e8f4dca1
+4
View File
@@ -178,6 +178,10 @@ class InteractiveSession:
# Process the message
self.add_to_history("user", user_input)
# Update the per-turn initial message so that routers and
# template transforms always reference the latest user input.
self.context["initial_message"] = user_input
if self.verbose:
print("Processing message...")