Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: set otid for all approval request message (#9655)
cthomas9422b2d99372
diff --git a/letta/server/rest_api/utils.py b/letta/server/rest_api/utils.pyindex bfbbe505c..8d2fff69e 100644--- a/letta/server/rest_api/utils.py+++ b/letta/server/rest_api/utils.py@@ -364,6 +364,8 @@ def create_approval_request_message_from_llm_response()if pre_computed_assistant_message_id:approval_message.id = decrement_message_uuid(pre_computed_assistant_message_id)+ # Set otid to match streaming interface pattern (index -1 returns id unchanged)+ approval_message.otid = Message.generate_otid_from_id(approval_message.id, -1)messages.append(approval_message)return messages