fix: update initial_message in context for each interactive turn
This commit is contained in:
@@ -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...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user